diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2015-12-17 18:08:56 +0000 |
---|---|---|
committer | Stephen Finucane <stephen.finucane@intel.com> | 2016-02-08 19:03:39 +0000 |
commit | 40cff5a8b2ad4a3b96f48b4d7933303668853bc6 (patch) | |
tree | 043c2f0f4e158e48f13b9ba37c57d515f06c8936 /templates/base.html | |
parent | 33b36c2b3be803643cbcceb638f631cd0ba9a51c (diff) | |
download | patchwork-40cff5a8b2ad4a3b96f48b4d7933303668853bc6.tar patchwork-40cff5a8b2ad4a3b96f48b4d7933303668853bc6.tar.gz |
ui: Redesign navigation
We get rid of the breadcrumbs in favour of items always present in the
top navigation bar.
Based on BĂ©len's new design iteration.
v2: Rebase onto master
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Stephen Finucane <stephen.finucane@intel.com>
Diffstat (limited to 'templates/base.html')
-rw-r--r-- | templates/base.html | 52 |
1 files changed, 32 insertions, 20 deletions
diff --git a/templates/base.html b/templates/base.html index c0008f7..78c563c 100644 --- a/templates/base.html +++ b/templates/base.html @@ -38,17 +38,41 @@ {% block heading %}{% endblock %}</span> </div> <div class="collapse navbar-collapse" id="navbar-collapse"> - <ul class="nav navbar-nav navbar-right"> {% if project %} - <li><a href="{% url 'project-detail' project_id=project.linkname %}" - >Project Info</a></li> - <li><p class="navbar-text">|</p></li> + <ul class="nav navbar-nav"> + <li class="{% block patch_active %}{% endblock %}"> + <a href="{% url 'patch-list' project_id=project.linkname %}"> + <span class="glyphicon glyphicon-file"></span> + Patches + </a> + </li> + <li class="{% block bundle_active %}{% endblock %}"> + <a href="{% url 'bundle-list' project_id=project.linkname %}"> + <span class="glyphicon glyphicon-gift"></span> + Bundles + </a> + </li> + <li class="{% block info_active %}{% endblock %}"> + <a href="{% url 'project-detail' project_id=project.linkname %}"> + <span class="glyphicon glyphicon-info-sign"></span> + About this project + </a> + </li> + <li> + <a href="{% url 'project-list' %}"> + <span class="glyphicon glyphicon-home"></span> + All projects + </a> + </li> + </ul> {% endif %} + <ul class="nav navbar-nav navbar-right"> {% if user.is_authenticated %} - <li><a href="{% url 'user-todos' %}">Todo - <span class="badge">{{ user.profile.n_todo_patches }}</span></a> + <li> + <a href="{% url 'user-todos' %}"> + Todo + <span class="badge">{{ user.profile.n_todo_patches }}</span></a> </li> - <li><a href="{% url 'bundle-list' %}">Bundles</a></li> {% if user.is_staff %} <li><a href="{% url 'admin:index' %}">Admin</a></li> {% endif %} @@ -66,22 +90,10 @@ <li><a href="{% url 'user-register' %}">Register</a></li> <li><a href="{% url 'mail-settings' %}">Mail settings</a></li> {% endif %} + </ul> </div> </div> </nav> -{% if project %} - <div id="breadcrumb"> - <div id="breadcrumb-left"> - <a href="{% url 'project-list' %}">All projects</a> - → - {% block breadcrumb %} - <a href="{% url 'patch-list' project_id=project.linkname %}" - >{{ project.linkname }} patches</a> - {% endblock %} - </div> - <div style="clear: both"></div> - </div> -{% endif %} {% if messages %} <div id="messages"> {% for message in messages %} |