diff options
author | Belén Barros Peña <belen.barros.pena@intel.com> | 2014-09-20 23:33:57 +0100 |
---|---|---|
committer | Stephen Finucane <stephen.finucane@intel.com> | 2015-11-05 03:51:34 +0000 |
commit | ea1bd625c438d98b65c57b1264814408140dc2b4 (patch) | |
tree | fa4285ae2bd7cc1090de6f86cbe476c91459d2fe /templates | |
parent | 3813b420175720ea4dea0baf0a2ccce380ac8ef0 (diff) | |
download | patchwork-ea1bd625c438d98b65c57b1264814408140dc2b4.tar patchwork-ea1bd625c438d98b65c57b1264814408140dc2b4.tar.gz |
html: Turn the navbar into a breadcrumb bar
So we can have a somewhat of a hierarchical progression:
All projects -> $project patches -> patch name
That should also help when we add series, we'll be able to just add the
series in there.
By default, we have:
All projects -> $project patches
both being links, so we can return to the list of patches from any page
where the project is defined. The '$project patches' link becomes
insensitive in the list page. Finally the patch page adds the patch at
the end.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Belén Barros Peña <belen.barros.pena@intel.com>
Acked-by: Stephen Finucane <stephen.finucane@intel.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base.html | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/templates/base.html b/templates/base.html index 75083b6..60a4fd4 100644 --- a/templates/base.html +++ b/templates/base.html @@ -62,15 +62,12 @@ {% if project %} <div id="nav"> <div id="navleft"> - <strong>Project</strong>: {{ project.linkname }} - : - <a href="{% url 'patchwork.views.patch.list' project_id=project.linkname %}" - >patches</a> - {% if other_projects %} - : - <a href="{% url 'patchwork.views.projects' %}" - >other projects</a> - {% endif %} + <a href="{% url 'patchwork.views.projects' %}">All projects</a> + → + {% block breadcrumb %} + <a href="{% url 'patchwork.views.patch.list' project_id=project.linkname %}" + >{{ project.linkname }} patches</a> + {% endblock %} </div> <div style="clear: both"></div> </div> |