diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2014-09-20 23:00:16 +0100 |
---|---|---|
committer | Stephen Finucane <stephen.finucane@intel.com> | 2015-11-05 03:51:33 +0000 |
commit | b307635e0b03dcbf3959209a2477a36f9043f205 (patch) | |
tree | 86742989ef89a10c894d2123de00e57d5647e552 /templates | |
parent | 5df3dbeb57de12d05e902d2fd56f71b6931f35bc (diff) | |
download | patchwork-b307635e0b03dcbf3959209a2477a36f9043f205.tar patchwork-b307635e0b03dcbf3959209a2477a36f9043f205.tar.gz |
base: Move the project info into the navigation bar
The goal is still to have a proper breadcrumb bar. One more little step
towards it.
v2: Rename "About ${project}" to "Project Info" (Stephen Finucane)
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base.html | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/base.html b/templates/base.html index bf01fcf..f992f94 100644 --- a/templates/base.html +++ b/templates/base.html @@ -35,6 +35,11 @@ </div> <div class="collapse navbar-collapse" id="navbar-collapse"> <ul class="nav navbar-nav navbar-right"> +{% if project %} + <li><a href="{% url 'patchwork.views.project.project' project_id=project.linkname %}" + >Project Info</a></li> + <li><p class="navbar-text">|</p></li> +{% endif %} {% if user.is_authenticated %} <li><p class="navbar-text">Logged in as <a href="{% url 'patchwork.views.user.profile' %}" ><strong>{{ user.username }}</strong></a></p></li> @@ -61,9 +66,6 @@ : <a href="{% url 'patchwork.views.patch.list' project_id=project.linkname %}" >patches</a> - : - <a href="{% url 'patchwork.views.project.project' project_id=project.linkname %}" - >project info</a> {% if other_projects %} : <a href="{% url 'patchwork.views.projects' %}" |