Browse Source

breadcrumb

pull/348/head
Simon Conseil 8 years ago
parent
commit
69fc93f207
  1. 6
      sigal/themes/colorbox/templates/base.html
  2. 9
      sigal/themes/default/templates/breadcrumb.html
  3. 7
      sigal/themes/galleria/templates/base.html
  4. 11
      sigal/themes/photoswipe/templates/base.html

6
sigal/themes/colorbox/templates/base.html

@ -32,12 +32,8 @@
</div>
<div id="main" role="main" class="nine columns offset-by-three">
<header>
{% include 'breadcrumb.html' %}
{% if album.breadcrumb %}
<h2>
{% for url, title in album.breadcrumb %}
<a href="{{ url }}">{{ title }}</a>{% if not loop.last %} » {% endif %}
{% endfor -%}
</h2>
<hr>
{% endif %}
</header>

9
sigal/themes/default/templates/breadcrumb.html

@ -0,0 +1,9 @@
{% if album.breadcrumb %}
<div class="breadcrumb">
<h2>
{% for url, title in album.breadcrumb %}
<a href="{{ url }}">{{ title }}</a>{% if not loop.last %} » {% endif %}
{% endfor -%}
</h2>
</div>
{% endif %}

7
sigal/themes/galleria/templates/base.html

@ -22,13 +22,8 @@
<h1><a href="{{ album.index_url }}">{{ index_title }}</a></h1>
{% include 'links.html' %}
{% include 'breadcrumb.html' %}
{% if album.breadcrumb %}
<h2>
{%- for url, title in album.breadcrumb -%}
<a href="{{ url }}">{{ title }}</a>
{%- if not loop.last %} » {% endif -%}
{% endfor -%}
</h2>
<hr>
{% endif %}
</header>

11
sigal/themes/photoswipe/templates/base.html

@ -20,16 +20,7 @@
{% include 'links.html' %}
<div class="content">
{% if album.breadcrumb %}
<div class="breadcrumb">
<h2>
{% for url, title in album.breadcrumb %}
<a href="{{ url }}">{{ title }}</a>{% if not loop.last %} » {% endif %}
{% endfor -%}
</h2>
</div>
{% endif %}
{% include 'breadcrumb.html' %}
{% block content %}{% endblock %}
{% if album.description %}

Loading…
Cancel
Save