Browse Source

#410: added icons to moderation actions

Rafał Pitoń 10 years ago
parent
commit
a67d9ecb46

+ 1 - 1
misago/templates/misago/threads/actions.html

@@ -13,7 +13,7 @@
       {% for action in list_actions %}
       {% for action in list_actions %}
       <li>
       <li>
         <button type="submit" name="action" value="{{ action.action }}" {% if action.confirmation %}data-confirmation="{{ action.confirmation }}"{% endif %}>
         <button type="submit" name="action" value="{{ action.action }}" {% if action.confirmation %}data-confirmation="{{ action.confirmation }}"{% endif %}>
-          <span class="{{ action.icon }}"></span>
+          <span class="fa fa-{{ action.icon }} fa-fw"></span>
           {{ action.name }}
           {{ action.name }}
         </button>
         </button>
       </li>
       </li>

+ 3 - 0
misago/threads/views/generic/forum.py

@@ -25,15 +25,18 @@ class ForumActions(Actions):
         if forum.acl['can_change_threads_weight'] == 2:
         if forum.acl['can_change_threads_weight'] == 2:
             actions.append({
             actions.append({
                 'action': 'announce',
                 'action': 'announce',
+                'icon': 'star',
                 'name': _("Change to announcements")
                 'name': _("Change to announcements")
             })
             })
         if forum.acl['can_change_threads_weight']:
         if forum.acl['can_change_threads_weight']:
             actions.append({
             actions.append({
                 'action': 'pin',
                 'action': 'pin',
+                'icon': 'bookmark',
                 'name': _("Change to pinned")
                 'name': _("Change to pinned")
             })
             })
             actions.append({
             actions.append({
                 'action': 'reset',
                 'action': 'reset',
+                'icon': 'circle',
                 'name': _("Reset weight")
                 'name': _("Reset weight")
             })
             })
         return actions
         return actions