Skip to content

Commit

Permalink
ui: Make the project a unit with 'Patchwork' in the menu bar
Browse files Browse the repository at this point in the history
Both should be styled the same and be a link to the home page.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
  • Loading branch information
Damien Lespiau committed Dec 21, 2015
1 parent f97ef67 commit 8ed1f37
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions htdocs/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ pre {
top: 17em;
}

.navbar-brand>a {
color: white;
}

.navbar-patchwork {
border-radius: 0px;
margin-bottom: 0px;
Expand Down
5 changes: 3 additions & 2 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@
<span class="icon-bar"></span>
</button>
<span class="navbar-brand"><a
href="{% url 'patchwork.views.projects' %}">Patchwork</a>
{% block heading %}{% if project %}{{project.name}}{% endif %}{% endblock %}
href="{% url 'patchwork.views.projects' %}">
Patchwork{% if project %} {{project.name}}{% endif %}</a>
{% block heading %}{% endblock %}
</span>
</div>
<div class="collapse navbar-collapse" id="navbar-collapse">
Expand Down

0 comments on commit 8ed1f37

Please sign in to comment.