Add link to grid or list view

This commit is contained in:
voussoir 2017-03-30 18:56:27 -07:00
parent 0580a7f162
commit 81f59ec3d3

View file

@ -58,6 +58,11 @@ p
</span> </span>
{% if photos %} {% if photos %}
<h3>Photos</h3> <h3>Photos</h3>
{% if view != "list" %}
<a href="?view=list">List view</a>
{% else %}
<a href="?view=grid">Grid view</a>
{% endif %}
<ul> <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)}}