[PATCH 44/51] toolbar: Provide a way to switch between Series and Patches views

Damien Lespiau damien.lespiau at intel.com
Sat Sep 12 01:55:17 AEST 2015


Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
---
 patchwork/templates/patchwork/list.html        | 4 ++++
 patchwork/templates/patchwork/series-list.html | 4 ++++
 templates/base.html                            | 1 +
 3 files changed, 9 insertions(+)

diff --git a/patchwork/templates/patchwork/list.html b/patchwork/templates/patchwork/list.html
index f4650ae..d63dc41 100644
--- a/patchwork/templates/patchwork/list.html
+++ b/patchwork/templates/patchwork/list.html
@@ -5,6 +5,10 @@
 
 {% block title %}{{project.name}}{% endblock %}
 {% block heading %}{{project.name}}{% endblock %}
+{% block alternate_list %}
+     <li><a href="{% url 'series_list' project=project.linkname %}?ordering=-submitted">View series</a></li>
+     <li><p class="navbar-text">|</p></li>
+{% endblock %}
 {% block breadcrumb %}{{ project.linkname }} patches{% endblock %}
 
 {% block body %}
diff --git a/patchwork/templates/patchwork/series-list.html b/patchwork/templates/patchwork/series-list.html
index ab83d11..809f5af 100644
--- a/patchwork/templates/patchwork/series-list.html
+++ b/patchwork/templates/patchwork/series-list.html
@@ -11,6 +11,10 @@ $(function () {
 });
 </script>
 {% endblock %}
+{% block alternate_list %}
+     <li><a href="{% url 'patchwork.views.patch.list' project_id=project.linkname %}">View Patches</a></li>
+     <li><p class="navbar-text">|</p></li>
+{% endblock %}
 {% block breadcrumb %}{{ project.name }} series{% endblock %}
 
 {% block body %}
diff --git a/templates/base.html b/templates/base.html
index a03459f..bd2a6ea 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -57,6 +57,7 @@
       >About {{ project.linkname }}</a></li>
     <li><p class="navbar-text">|</p></li>
 {% endif %}
+{% block alternate_list %}{% endblock %}
 {% if user.is_authenticated %}
      <li><a href="{% url 'patchwork.views.user.todo_lists' %}">Todo
       <span class="badge">{{ user.profile.n_todo }}</span></a>
-- 
2.1.0



More information about the Patchwork mailing list