[PATCH 17/19] ui: Make "All Projects" on the main page consistent with the rest
Stephen Finucane
stephen.finucane at intel.com
Thu Feb 4 08:31:52 AEDT 2016
From: Damien Lespiau <damien.lespiau at intel.com>
The pages we're on are now represented with a little icon and active.
Make the one on the main page look like the rest.
Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
Acked-by: Stephen Finucane <stephen.finucane at intel.com>
---
patchwork/templates/patchwork/projects.html | 11 +++++++++--
templates/base.html | 2 ++
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/patchwork/templates/patchwork/projects.html b/patchwork/templates/patchwork/projects.html
index 3743d49..afaf6ab 100644
--- a/patchwork/templates/patchwork/projects.html
+++ b/patchwork/templates/patchwork/projects.html
@@ -1,8 +1,15 @@
{% extends "base.html" %}
{% block title %}Project List{% endblock %}
-{% block heading %}Project List{% endblock %}
-
+{% block navbarmenu %}
+ <ul class="nav navbar-nav">
+ <li class="active">
+ <a href="{% url 'project-list' %}">
+ <span class="glyphicon glyphicon-home"></span>
+ All projects</a>
+ </li>
+ </ul>
+{% endblock %}
{% block body %}
<div style="margin-top:20px;"></div>
diff --git a/templates/base.html b/templates/base.html
index 625da85..2a1dca1 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -38,6 +38,7 @@
</span>
</div>
<div class="collapse navbar-collapse" id="navbar-collapse">
+{% block navbarmenu %}
{% if project %}
<ul class="nav navbar-nav">
<li class="{% block patch_active %}{% endblock %}">
@@ -66,6 +67,7 @@
</li>
</ul>
{% endif %}
+{% endblock %}
<ul class="nav navbar-nav navbar-right">
{% if user.is_authenticated %}
<li class="dropdown">
--
2.0.0
More information about the Patchwork
mailing list