Add link to grid or list view
This commit is contained in:
parent
0580a7f162
commit
81f59ec3d3
1 changed files with 9 additions and 4 deletions
|
@ -57,12 +57,17 @@ p
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</span>
|
</span>
|
||||||
{% if photos %}
|
{% if photos %}
|
||||||
<h3>Photos</h3>
|
<h3>Photos</h3>
|
||||||
<ul>
|
{% if view != "list" %}
|
||||||
|
<a href="?view=list">List view</a>
|
||||||
|
{% else %}
|
||||||
|
<a href="?view=grid">Grid view</a>
|
||||||
|
{% endif %}
|
||||||
|
<ul>
|
||||||
{% for photo in photos %}
|
{% for photo in photos %}
|
||||||
{{photo_card.create_photo_card(photo, view=view)}}
|
{{photo_card.create_photo_card(photo, view=view)}}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in a new issue