Add special-gallery back thumbnail and hide sort button for specials
This commit is contained in:
@@ -205,33 +205,35 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="offcanvas-body pt-0 d-flex flex-column">
|
||||
<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>
|
||||
|
||||
<div class="sidebar-scroll flex-grow-1">
|
||||
{% if prev_url %}
|
||||
<a href="{{ prev_url }}" class="subdir-item">
|
||||
{% if prev_thumb %}
|
||||
<img src="{{ prev_thumb }}" class="subdir-thumb" alt="prev thumb">
|
||||
{% else %}
|
||||
<span class="subdir-fallback"><i class="fa-solid fa-image"></i></span>
|
||||
{% endif %}
|
||||
<span>Previous</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if not is_special or is_special and 'favorites' in breadcrumbs.0.path %}
|
||||
{% if prev_url %}
|
||||
<a href="{{ prev_url }}" class="subdir-item">
|
||||
{% if prev_thumb %}
|
||||
<img src="{{ prev_thumb }}" class="subdir-thumb" alt="prev thumb">
|
||||
{% else %}
|
||||
<span class="subdir-fallback"><i class="fa-solid fa-image"></i></span>
|
||||
{% endif %}
|
||||
<span>Previous</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
{% if next_url %}
|
||||
<a href="{{ next_url }}" class="subdir-item">
|
||||
{% if next_thumb %}
|
||||
<img src="{{ next_thumb }}" class="subdir-thumb" alt="next thumb">
|
||||
{% else %}
|
||||
<span class="subdir-fallback"><i class="fa-solid fa-image"></i></span>
|
||||
{% endif %}
|
||||
<span>Next</span>
|
||||
</a>
|
||||
{% if next_url %}
|
||||
<a href="{{ next_url }}" class="subdir-item">
|
||||
{% if next_thumb %}
|
||||
<img src="{{ next_thumb }}" class="subdir-thumb" alt="next thumb">
|
||||
{% else %}
|
||||
<span class="subdir-fallback"><i class="fa-solid fa-image"></i></span>
|
||||
{% endif %}
|
||||
<span>Next</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if is_special %}
|
||||
|
||||
Reference in New Issue
Block a user