[PATCH 13/46] base: Move the project info into the navigation bar

Damien Lespiau damien.lespiau at intel.com
Sun Nov 9 06:08:31 AEDT 2014


The goal is still to have a proper breadcrumb bar. One more little step
towards it.

Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
---
 templates/base.html | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/templates/base.html b/templates/base.html
index c304b15..4733e2d 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -39,6 +39,11 @@
     </div>
     <div class="collapse navbar-collapse" id="navbar-collapse">
      <ul class="nav navbar-nav navbar-right">
+{% if project %}
+     <li><a href="{% url 'patchwork.views.project.project' project_id=project.linkname %}"
+      >about {{ project.linkname }}</a></li>
+    <li><p class="navbar-text">|</p></li>
+{% endif %}
 {% if user.is_authenticated %}
      <li><p class="navbar-text">Logged in as <a href="{% url 'patchwork.views.user.profile' %}"
      ><strong>{{ user.username }}</strong></a></p></li>
@@ -65,9 +70,6 @@
      :
      <a href="{% url 'patchwork.views.patch.list' project_id=project.linkname %}"
       >patches</a>
-     :
-     <a href="{% url 'patchwork.views.project.project' project_id=project.linkname %}"
-      >project info</a>
     {% if other_projects %}
      :
      <a href="{% url 'patchwork.views.projects' %}"
-- 
1.8.3.1



More information about the Patchwork mailing list