diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2015-12-21 12:12:28 +0000 |
---|---|---|
committer | Stephen Finucane <stephen.finucane@intel.com> | 2016-02-08 19:03:50 +0000 |
commit | 8b7686452cbb9c411373dd009c66295500f677b0 (patch) | |
tree | b99dd34ea4c77bec4725f4340ff930c3a46e59ce | |
parent | 5755e6e246d30c0c24f09c52463e4ca23f5f8478 (diff) | |
download | patchwork-8b7686452cbb9c411373dd009c66295500f677b0.tar patchwork-8b7686452cbb9c411373dd009c66295500f677b0.tar.gz |
ui: Make the project a unit with 'Patchwork' in the menu bar
Both should be styled the same and be a link to the home page.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
-rw-r--r-- | htdocs/css/style.css | 4 | ||||
-rw-r--r-- | 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"> |