special-gallery: scope image prev/next/back to special galleries; add tests
This commit is contained in:
@@ -49,9 +49,11 @@
|
||||
<a href="/gallery/most-visited/" class="sidebar-link {% if active_special == 'most-visited' %}active-sort{% endif %}">Most visited</a>
|
||||
<a href="/gallery/recent/" class="sidebar-link {% if active_special == 'recent' %}active-sort{% endif %}">Recently visited</a>
|
||||
|
||||
{% if path != '' %}
|
||||
{% if path != '' or is_special %}
|
||||
<hr>
|
||||
{% endif %}
|
||||
|
||||
{% if path != '' %}
|
||||
<a href="{{ back_url }}" class="subdir-item">
|
||||
{% if back_thumb %}
|
||||
<img src="{{ back_thumb }}" class="subdir-thumb" alt="back thumb">
|
||||
@@ -60,7 +62,9 @@
|
||||
{% endif %}
|
||||
<span>Back</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
{% if path != '' or is_special %}
|
||||
<a href="{{ home_url }}" class="subdir-item">
|
||||
{% if home_thumb %}
|
||||
<img src="{{ home_thumb }}" class="subdir-thumb" alt="home thumb">
|
||||
@@ -125,13 +129,15 @@
|
||||
|
||||
<hr>
|
||||
|
||||
<a href="/gallery/favorites/" class="sidebar-link">Favorites</a>
|
||||
<a href="/gallery/most-visited/" class="sidebar-link">Most visited</a>
|
||||
<a href="/gallery/recent/" class="sidebar-link">Recently visited</a>
|
||||
<a href="/gallery/favorites/" class="sidebar-link {% if active_special == 'favorites' %}active-sort{% endif %}">Favorites</a>
|
||||
<a href="/gallery/most-visited/" class="sidebar-link {% if active_special == 'most-visited' %}active-sort{% endif %}">Most visited</a>
|
||||
<a href="/gallery/recent/" class="sidebar-link {% if active_special == 'recent' %}active-sort{% endif %}">Recently visited</a>
|
||||
|
||||
{% if path != '' or is_special %}
|
||||
<hr>
|
||||
{% endif %}
|
||||
|
||||
{% if path != '' %}
|
||||
<hr>
|
||||
|
||||
<a href="{{ back_url }}" class="subdir-item">
|
||||
{% if back_thumb %}
|
||||
<img src="{{ back_thumb }}" class="subdir-thumb" alt="back thumb">
|
||||
@@ -140,7 +146,9 @@
|
||||
{% endif %}
|
||||
<span>Back</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
{% if path != '' or is_special %}
|
||||
<a href="{{ home_url }}" class="subdir-item">
|
||||
{% if home_thumb %}
|
||||
<img src="{{ home_thumb }}" class="subdir-thumb" alt="home thumb">
|
||||
@@ -265,13 +273,15 @@
|
||||
|
||||
<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 active_special == 'favorites' %}active-sort{% endif %}">Favorites</a>
|
||||
<a href="/gallery/most-visited/" class="sidebar-link {% if active_special == 'most-visited' %}active-sort{% endif %}">Most visited</a>
|
||||
<a href="/gallery/recent/" class="sidebar-link {% if active_special == 'recent' %}active-sort{% endif %}">Recently visited</a>
|
||||
|
||||
{% if path != '' or is_special %}
|
||||
<hr>
|
||||
{% endif %}
|
||||
|
||||
{% if path != '' %}
|
||||
<hr>
|
||||
|
||||
<a href="{{ back_url }}" class="subdir-item">
|
||||
{% if back_thumb %}
|
||||
<img src="{{ back_thumb }}" class="subdir-thumb" alt="back thumb">
|
||||
@@ -280,7 +290,9 @@
|
||||
{% endif %}
|
||||
<span>Back</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
{% if path != '' or is_special %}
|
||||
<a href="{{ home_url }}" class="subdir-item">
|
||||
{% if home_thumb %}
|
||||
<img src="{{ home_thumb }}" class="subdir-thumb" alt="home thumb">
|
||||
|
||||
Reference in New Issue
Block a user