]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
ui: Make "All Projects" on the main page consistent with the rest
authorDamien Lespiau <damien.lespiau@intel.com>
Mon, 21 Dec 2015 12:07:02 +0000 (12:07 +0000)
committerStephen Finucane <stephen.finucane@intel.com>
Mon, 8 Feb 2016 19:03:49 +0000 (19:03 +0000)
The pages we're on are now represented with a little icon and active.
Make the one on the main page look like the rest.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Acked-by: Stephen Finucane <stephen.finucane@intel.com>
patchwork/templates/patchwork/projects.html
templates/base.html

index 3743d499076961080c2bad46f79e4e80651bb074..afaf6aba952b1902007526d2c45ab88a04f9f074 100644 (file)
@@ -1,8 +1,15 @@
 {% extends "base.html" %}
 
 {% block title %}Project List{% endblock %}
-{% block heading %}Project List{% endblock %}
-
+{% block navbarmenu %}
+      <ul class="nav navbar-nav">
+        <li class="active">
+          <a href="{% url 'project-list' %}">
+            <span class="glyphicon glyphicon-home"></span>
+            All projects</a>
+        </li>
+     </ul>
+{% endblock %}
 {% block body %}
 
 <div style="margin-top:20px;"></div>
index 625da851ec7ad80a0014ca90cb2bcde498c9dc6a..2a1dca17ca0e3bdf59e614c96c433ee0f52080d2 100644 (file)
@@ -38,6 +38,7 @@
       </span>
     </div>
     <div class="collapse navbar-collapse" id="navbar-collapse">
+{% block navbarmenu %}
 {% if project %}
       <ul class="nav navbar-nav">
         <li class="{% block patch_active %}{% endblock %}">
@@ -66,6 +67,7 @@
         </li>
      </ul>
 {% endif %}
+{% endblock %}
      <ul class="nav navbar-nav navbar-right">
 {% if user.is_authenticated %}
      <li class="dropdown">