special galleries: helper module, renderers, templates & urls; hide back in special views; highlight active special
This commit is contained in:
@@ -29,9 +29,9 @@
|
||||
|
||||
<hr>
|
||||
|
||||
<a href="#" class="sidebar-link">Favorites</a>
|
||||
<a href="#" class="sidebar-link">Most visited</a>
|
||||
<a href="#" class="sidebar-link">Recently visited</a>
|
||||
<a href="/gallery/favorites/" class="sidebar-link {% if is_special and breadcrumbs.0.label == 'Favorites' %}active-sort{% endif %}">Favorites</a>
|
||||
<a href="/gallery/most-visited/" class="sidebar-link {% if is_special and breadcrumbs.0.label == 'Most Visited' %}active-sort{% endif %}">Most visited</a>
|
||||
<a href="/gallery/recent/" class="sidebar-link {% if is_special and breadcrumbs.0.label == 'Recent' %}active-sort{% endif %}">Recently visited</a>
|
||||
|
||||
<hr>
|
||||
|
||||
@@ -110,9 +110,9 @@
|
||||
<span class="crumb-sep">/</span>
|
||||
{% endif %}
|
||||
{% if crumb.path %}
|
||||
<a href="{{ crumb.path }}" class="crumb-link">{{ crumb.label }}</a>
|
||||
<a href="{{ crumb.path }}" class="{% if not forloop.last %}crumb-link{% else %}crumb-link-last{% endif %}">{{ crumb.label }}</a>
|
||||
{% else %}
|
||||
<span class="crumb-link-full">{{ crumb.label }}</span>
|
||||
<span class="{% if not forloop.last %}crumb-link{% else %}crumb-link-last{% endif %}">{{ crumb.label }}</span>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user