mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 01:38:19 +08:00
ui-default: init
将ui-default合并至主存储库便于维护
This commit is contained in:
1 parent
6317c9057f
commit
5faa54c7ca
564 files changed
+23083
-14
No files matched your search
@@ -0,0 +1,48 @@
|
||||
{% extends "layout/basic.html" %}
|
||||
{% import "components/comments_solution.html" as comments with context %}
|
||||
{% block content %}
|
||||
<div class="row">
|
||||
<div class="medium-9 columns">
|
||||
<div class="section">
|
||||
<div class="section__header">
|
||||
<h1 class="section__title">{{ _('{0} solutions').format(pscount) }}</h1>
|
||||
</div>
|
||||
<div class="section__body">
|
||||
{{ comments.render(
|
||||
view = 'solution',
|
||||
docs = psdocs,
|
||||
udict = udict,
|
||||
comment_ref = 'psid',
|
||||
reply_ref = 'psrid',
|
||||
comment_placeholder = 'Write Your Solution',
|
||||
comment_post_op = 'submit',
|
||||
comment_edit_op = 'edit_solution',
|
||||
comment_post_text = 'Share',
|
||||
reply_post_op = 'reply',
|
||||
reply_edit_op = 'edit_reply',
|
||||
comment_delete_op = 'delete_solution',
|
||||
reply_delete_op = 'delete_reply',
|
||||
comment_post_perm = perm.PERM_CREATE_PROBLEM_SOLUTION,
|
||||
comment_edit_perm = perm.PERM_NEVER,
|
||||
comment_edit_self_perm = perm.PERM_EDIT_PROBLEM_SOLUTION_SELF,
|
||||
comment_delete_perm = perm.PERM_DELETE_PROBLEM_SOLUTION,
|
||||
comment_delete_self_perm = perm.PERM_DELETE_PROBLEM_SOLUTION_SELF,
|
||||
reply_post_perm = perm.PERM_REPLY_PROBLEM_SOLUTION,
|
||||
reply_edit_perm = perm.PERM_NEVER,
|
||||
reply_edit_self_perm = perm.PERM_EDIT_PROBLEM_SOLUTION_REPLY_SELF,
|
||||
reply_delete_perm = perm.PERM_DELETE_PROBLEM_SOLUTION_REPLY,
|
||||
reply_delete_self_perm = perm.PERM_DELETE_PROBLEM_SOLUTION_REPLY_SELF
|
||||
) }}
|
||||
{{ paginator.render(page, pcount) }}
|
||||
{% if drcount == 0 %}
|
||||
{{ nothing.render('No solutions so far...') }}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="medium-3 columns">
|
||||
{% set owner_udoc = udict[pdoc.owner] %}
|
||||
{% include "partials/problem_sidebar.html" %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in new issue
Block a user