Unindent album card macro.

This commit is contained in:
voussoir 2019-12-21 01:48:36 -08:00
parent fcf7a460b2
commit 41058ccc9e

View file

@ -1,7 +1,7 @@
{% macro create_album_card(album, view="grid", unlink_parent=none) %} {% macro create_album_card(album, view="grid", unlink_parent=none) %}
{% set view = (view if view in ("list", "grid") else "grid") %} {% set view = (view if view in ("list", "grid") else "grid") %}
{% set viewparam = "?view=list" if view == "list" else "" %} {% set viewparam = "?view=list" if view == "list" else "" %}
<div class="album_card album_card_{{view}}" data-id="{{album.id}}"> <div class="album_card album_card_{{view}}" data-id="{{album.id}}">
{% if album == "root" %} {% if album == "root" %}
<a class="album_card_thumbnail" href="/albums{{viewparam}}"></a> <a class="album_card_thumbnail" href="/albums{{viewparam}}"></a>
{% else %} {% else %}
@ -40,5 +40,5 @@
<span class="album_card_photo_count" title="{{photo_count}} photos">{{photo_count}}</span> <span class="album_card_photo_count" title="{{photo_count}} photos">{{photo_count}}</span>
{% endif %} {% endif %}
</div> </div>
</div> </div>
{% endmacro %} {% endmacro %}