changeset 7096:f4dc6962f467

templates: change the order of Pull Requests and Options in context bar I feel like Options are semantically different, so they should stand at the end of the list.
author domruf <dominikruf@gmail.com>
date Mon, 31 Jul 2017 19:42:41 +0200
parents 53df5d6f0862
children faaefd08f790
files kallithea/templates/base/base.html
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/templates/base/base.html	Wed Jul 12 19:45:53 2017 +0200
+++ b/kallithea/templates/base/base.html	Mon Jul 31 19:42:41 2017 +0200
@@ -131,6 +131,13 @@
         <li class="${'active' if current == 'changelog' else ''}" data-context="changelog"><a href="${h.url('changelog_home', repo_name=c.repo_name)}"><i class="icon-clock"></i>${_('Changelog')}</a></li>
         %endif
         <li class="${'active' if current == 'files' else ''}" data-context="files"><a href="${h.url('files_home', repo_name=c.repo_name, revision=rev or 'tip')}"><i class="icon-doc-inv"></i>${_('Files')}</a></li>
+        <li class="${'active' if current == 'showpullrequest' else ''}" data-context="showpullrequest">
+          <a href="${h.url('pullrequest_show_all',repo_name=c.repo_name)}" title="${_('Show Pull Requests for %s') % c.repo_name}"> <i class="icon-git-pull-request"></i>${_('Pull Requests')}
+            %if c.repository_pull_requests:
+              <span class="badge">${c.repository_pull_requests}</span>
+            %endif
+          </a>
+        </li>
         <li class="${'active' if current == 'switch-to' else ''}" data-context="switch-to">
           <input id="branch_switcher" name="branch_switcher" type="hidden">
         </li>
@@ -173,13 +180,6 @@
               %endif
              </ul>
         </li>
-        <li class="${'active' if current == 'showpullrequest' else ''}" data-context="showpullrequest">
-          <a href="${h.url('pullrequest_show_all',repo_name=c.repo_name)}" title="${_('Show Pull Requests for %s') % c.repo_name}"> <i class="icon-git-pull-request"></i>${_('Pull Requests')}
-            %if c.repository_pull_requests:
-              <span class="badge">${c.repository_pull_requests}</span>
-            %endif
-          </a>
-        </li>
     </ul>
     </div>
     </div>