Commits

Anonymous committed efaa6e5

adding icons to scrollspy menu - towards #174 (from olemis)

  • Participants
  • Parent commits ea78268

Comments (0)

Files changed (1)

bhtheme/templates/bh_ticket.html

             </div>
             <div class="navbar visible-affix" py:if="ticket.exists"
                 py:with="sections = (
-                        (_('Overview'), 'content', True, _('View ticket fields and description')),
-                        (_('Attachments'), 'attachments', True, _('Go to the list of attachments')),
-                        (_('Comments'), 'changelog', True, _('Go to the changelog')),
-                        (_('Add comment'), 'propertyform', ticket.exists and can_append, _('Go to the ticket editor')),
-                        (_('Modify Ticket'), 'modify', can_modify or can_edit or can_create, _('Modify ticket fields and description')),
+                        (_('Overview'), 'content', True, _('View ticket fields and description'), 'icon-list'),
+                        (_('Attachments'), 'attachments', True, _('Go to the list of attachments'), 'icon-file'),
+                        (_('Comments'), 'changelog', True, _('Go to the changelog'), 'icon-comment'),
+                        (_('Add comment'), 'propertyform', ticket.exists and can_append, _('Go to the ticket editor'), 'icon-plus-sign'),
+                        (_('Modify Ticket'), 'modify', can_modify or can_edit or can_create, _('Modify ticket fields and description'), 'icon-edit'),
                     )">
               <div class="navbar-inner">
-                <ul class="nav">
-                  <li py:for="s in sections" py:if="s[2]">
-                    <a href="#${s[1]}" title="${s[3]}">${s[0]}</a>
-                  </li>
-                </ul>
+                <small>
+                  <ul class="nav">
+                    <li py:for="s in sections" py:if="s[2]">
+                      <a href="#${s[1]}" title="${s[3]}">
+                        <i class="${s[4]}"></i>
+                        ${s[0]}
+                      </a>
+                    </li>
+                  </ul>
+                </small>
               </div>
             </div>
             <div class="stickyEndMark"></div>