Browse Source

Move "More" button on comments left of Reply

I'm not sure about this, but want to try it. I like Reply being the last
button.
merge-requests/102/head
Deimos 5 years ago
parent
commit
c63e6e0fd2
  1. 26
      tildes/tildes/templates/macros/comments.jinja2

26
tildes/tildes/templates/macros/comments.jinja2

@ -197,19 +197,6 @@
<li>{{ post_action_toggle_button("remove", comment, comment.is_removed) }}</li>
{% endif %}
{% if request.has_permission('reply', comment) %}
<li>
<button
class="btn-post-action"
name="reply"
data-js-comment-reply-button
{% if comment.age.days >= 7 %}
data-js-old-warning-age="{{ comment.age|vague_timedelta_description }}"
{% endif %}
>Reply</button>
</li>
{% endif %}
{# Don't show the "View Markdown" button (or dropdown) if the user can edit #}
{% if not request.has_permission("edit", comment) %}
<li>
@ -233,6 +220,19 @@
</div>
</li>
{% endif %}
{% if request.has_permission('reply', comment) %}
<li>
<button
class="btn-post-action"
name="reply"
data-js-comment-reply-button
{% if comment.age.days >= 7 %}
data-js-old-warning-age="{{ comment.age|vague_timedelta_description }}"
{% endif %}
>Reply</button>
</li>
{% endif %}
</menu>
<div class="btn-post-settings"></div>
{% endif %}

Loading…
Cancel
Save