mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: allow lock topic
This commit is contained in:
1 parent
931e96a6b4
commit
c305e57860
11 files changed
+49
-18
No files matched your search
@@ -34,7 +34,8 @@
|
||||
reply_edit_text = 'Update',
|
||||
comment_delete_op = 'delete_reply',
|
||||
reply_delete_op = 'delete_tail_reply',
|
||||
reactions = {}
|
||||
reactions = {},
|
||||
ddoc = {}
|
||||
) %}
|
||||
<ul class="dczcomments__list view--discussion">
|
||||
{% if handler.user.hasPerm(comment_post_perm) %}
|
||||
@@ -44,6 +45,9 @@
|
||||
<img src="{{ avatarUrl(handler.user.avatar, 60) }}" width="60" height="60" class="medium user-profile-avatar">
|
||||
</div>
|
||||
<div class="media__body top">
|
||||
{% if ddoc.lock %}
|
||||
<textarea class="textbox" name="dczcomments__dummy-box" readonly placeholder="{{ _('The discussion is locked, you can not reply anymore.') }}"></textarea>
|
||||
{% else %}
|
||||
<div class="hasjs--hide">
|
||||
<form method="post" class="dczcomments__box" name="dczcomments__box__form" data-hotkey="ctrl+enter:submit,esc:vjCommentBoxCancel">
|
||||
<div>
|
||||
@@ -73,6 +77,7 @@
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
Reference in new issue
Block a user