]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
base: Move the project info into the navigation bar
authorDamien Lespiau <damien.lespiau@intel.com>
Sat, 20 Sep 2014 22:00:16 +0000 (23:00 +0100)
committerStephen Finucane <stephen.finucane@intel.com>
Thu, 5 Nov 2015 03:51:33 +0000 (03:51 +0000)
The goal is still to have a proper breadcrumb bar. One more little step
towards it.

v2: Rename "About ${project}" to "Project Info" (Stephen Finucane)

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
templates/base.html

index bf01fcf352e0b4c9378daf10db6ae013e40b40b5..f992f944e6582c34fad1c41e5a31cfccf4805e7b 100644 (file)
     </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 %}"
+      >Project Info</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>
@@ -61,9 +66,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' %}"