summaryrefslogtreecommitdiff
path: root/horizon/templates/horizon/common/_breadcrumb.html
blob: df68b5836e8f75f22e5a0963380a878710c6600f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{% load url from future %}
{% load i18n %}
{% with subfolders=breadcrumb.get_subfolders %}
<ul class="breadcrumb">
  <li>
    Folder Path: <a href="{% url 'breadcrumb.url' breadcrumb.root|add:'/' %}">{{ breadcrumb.root }}</a> <span class="divider">/</span>
  </li>
  {% for subfolder, path in subfolders %}
  <li>
  {% if not forloop.last %}
    <a href="{% url 'breadcrumb.url' breadcrumb.root|add:'/' path %}">
  {% endif %}
      {{ subfolder }}
  {% if not forloop.last %}
    </a> <span class="divider">/</span>
  {% endif %}
  </li>
  {% endfor %}
</ul>
{% endwith %}