From: Belén Barros Peña Date: Sat, 20 Sep 2014 22:33:57 +0000 (+0100) Subject: html: Turn the navbar into a breadcrumb bar X-Git-Tag: v1.1.0~182 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ea1bd625c438d98b65c57b1264814408140dc2b4;p=thirdparty%2Fpatchwork.git 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 Signed-off-by: Belén Barros Peña Acked-by: Stephen Finucane --- diff --git a/patchwork/templates/patchwork/list.html b/patchwork/templates/patchwork/list.html index 654fe8c7..f895d28e 100644 --- a/patchwork/templates/patchwork/list.html +++ b/patchwork/templates/patchwork/list.html @@ -5,6 +5,7 @@ {% block title %}{{project.name}}{% endblock %} {% block heading %}{{project.name}}{% endblock %} +{% block breadcrumb %}{{ project.linkname }} patches{% endblock %} {% block body %} diff --git a/patchwork/templates/patchwork/patch.html b/patchwork/templates/patchwork/patch.html index f18ee3b7..ef257f2e 100644 --- a/patchwork/templates/patchwork/patch.html +++ b/patchwork/templates/patchwork/patch.html @@ -5,7 +5,12 @@ {% load patch %} {% block title %}{{patch.name}}{% endblock %} -{% block heading %}{{patch.name}}{%endblock%} +{% block breadcrumb %} +{{ project.linkname }} patches + → + {{ patch.name }} +{% endblock %} {% block body %}