diff options
author | Aurélien Bompard <aurelien@bompard.org> | 2013-07-15 17:28:00 +0200 |
---|---|---|
committer | Aurélien Bompard <aurelien@bompard.org> | 2013-07-15 17:28:00 +0200 |
commit | fd5bdaf0bd47260e4a797ff2156036a80d3ac3ee (patch) | |
tree | 6e4faf42ceac45e1d134c08a8e251a4389afc43a /hyperkitty/templates | |
parent | 1c0db6b8e3b262b9cdba6a32e71c9bbac8b5f7cc (diff) | |
download | hyperkitty-fd5bdaf0bd47260e4a797ff2156036a80d3ac3ee.tar.gz hyperkitty-fd5bdaf0bd47260e4a797ff2156036a80d3ac3ee.tar.xz hyperkitty-fd5bdaf0bd47260e4a797ff2156036a80d3ac3ee.zip |
Make real breadcrumbs in the top bar
Diffstat (limited to 'hyperkitty/templates')
-rw-r--r-- | hyperkitty/templates/base.html | 53 |
1 files changed, 44 insertions, 9 deletions
diff --git a/hyperkitty/templates/base.html b/hyperkitty/templates/base.html index 48ab126..393bb80 100644 --- a/hyperkitty/templates/base.html +++ b/hyperkitty/templates/base.html @@ -52,20 +52,55 @@ <a class="brand" href="{% url 'root' %}">{{ app_name|title }}</a> - <ul class="nav"> + <ul class="breadcrumb"> + <li + {% if view_name == 'all_lists' %} + class="active"> + {% else %} + ><a href="{% url 'root' %}"> + {% endif %} + All lists + {% if view_name != 'all_lists' %} + </a> + {% endif %} - <li {% if all_lists %} class="active"{% endif %}> - <a href="{% url 'root' %}">All lists</a> - </li> + {% if mlist %} + <span class="divider">></span></li> + <li + {% if view_name == 'overview' %} + class="active"> + {% else %} + ><a href="{% url 'list_overview' mlist_fqdn=mlist.name %}"> + {% endif %} + {{mlist.name}} + {% if view_name != 'overview' %} + </a> + {% endif %} + {% endif %} - {% if mlist %} - <li id="list_name" class="active"> - <a href="{% url 'list_overview' mlist_fqdn=mlist.name %}">{{mlist.name}}</a> - </li> - {% endif %} + {% if month %} + <span class="divider">></span></li> + <li + {% if not subject %} + class="active"> + {% else %} + ><a href="{% url 'archives_with_month' mlist_fqdn=mlist.name year=month.year month=month.month %}"> + {% endif %} + {{ month|date:"F Y" }} + {% if subject %} + </a> + {% endif %} + {% endif %} + {% if subject %} + <span class="divider">></span></li> + <li class="active"> + {{ subject|truncatechars:"15" }} + {% endif %} + </li> </ul> + </div> </div> </div> |