From e2c116b1850f64993ea8fc5359134b7988b9affd Mon Sep 17 00:00:00 2001 From: Deimos Date: Sat, 2 Mar 2019 15:48:17 -0700 Subject: [PATCH] Convert post buttons from to {% endif %} {% if request.has_permission('edit', comment) %} -
  • + >Edit {% endif %} {% if request.has_permission('delete', comment) %} -
  • + >Delete {% endif %} {% if request.has_permission('bookmark', comment) %} {% if comment.bookmark_created_time %} -
  • + {% endif %} {% if request.has_permission("remove", comment) %}
  • {% if not comment.is_removed %} - Remove + >Remove {% else %} - Un-remove + >Un-remove {% endif %}
  • {% endif %} {% if request.has_permission('reply', comment) %} -
  • Reply
  • +
  • {% endif %} {% endif %} diff --git a/tildes/tildes/templates/topic.jinja2 b/tildes/tildes/templates/topic.jinja2 index e3a41f1..e3a2915 100644 --- a/tildes/tildes/templates/topic.jinja2 +++ b/tildes/tildes/templates/topic.jinja2 @@ -67,81 +67,81 @@ {% endif %} {% if request.has_any_permission(('edit', 'delete', 'tag', 'lock', 'move', 'edit_title', 'remove', 'bookmark'), topic) %} - + {% if request.has_permission('edit', topic) %} -
  • + >Edit {% endif %} {% if request.has_permission('tag', topic) %} -
  • + data-ic-target=".topic-full .btn-post:first + .btn-post-settings" + >Tag {% endif %} {% if request.has_permission('delete', topic) %} -
  • + >Delete {% endif %} {% if request.has_permission('move', topic) %} -
  • {% endif %} {% if request.has_permission('edit_title', topic) %} -
  • {% endif %} {% if request.has_permission('lock', topic) %}
  • {% if not topic.is_locked %} - Lock + >Lock {% else %} - Unlock + >Unlock {% endif %}
  • {% endif %} @@ -149,21 +149,21 @@ {% if request.has_permission('bookmark', topic) %}
  • {% if not topic.bookmark_created_time %} - Bookmark + >Bookmark {% else %} - Unbookmark + >Unbookmark {% endif %}
  • {% endif %} @@ -171,28 +171,28 @@ {% if request.has_permission("remove", topic) %}
  • {% if not topic.is_removed %} - Remove + >Remove {% else %} - Un-remove + >Un-remove {% endif %}
  • {% endif %}
    -
    +
    {% endif %} {% if topic.is_locked %}