[PATCH 18/19] ui: Make the project a unit with 'Patchwork' in the menu bar
Stephen Finucane
stephen.finucane at intel.com
Thu Feb 4 08:31:53 AEDT 2016
From: Damien Lespiau <damien.lespiau at intel.com>
Both should be styled the same and be a link to the home page.
Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
---
htdocs/css/style.css | 4 ++++
templates/base.html | 4 ++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/htdocs/css/style.css b/htdocs/css/style.css
index 05d9db9..e5c6600 100644
--- a/htdocs/css/style.css
+++ b/htdocs/css/style.css
@@ -21,6 +21,10 @@ pre {
top: 17em;
}
+.navbar-brand>a {
+ color: white;
+}
+
.navbar-patchwork {
border-radius: 0px;
margin-bottom: 0px;
diff --git a/templates/base.html b/templates/base.html
index 2a1dca1..8e101dd 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -33,8 +33,8 @@
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
- <a href="{% url 'project-list' %}">Patchwork</a>
- {% block heading %}{{project.name}}{% endblock %}
+ <a href="{% url 'project-list' %}">Patchwork{% if project %} {{project.name}}{% endif %}</a>
+ {% block heading %}{% endblock %}
</span>
</div>
<div class="collapse navbar-collapse" id="navbar-collapse">
--
2.0.0
More information about the Patchwork
mailing list