diff --git a/frontends/etiquette_flask/templates/album_card.html b/frontends/etiquette_flask/templates/album_card.html index 5b65b48..8a88184 100644 --- a/frontends/etiquette_flask/templates/album_card.html +++ b/frontends/etiquette_flask/templates/album_card.html @@ -1,4 +1,5 @@ {% macro create_root_album_card(view="grid") %} +{% set view = (view if view in ("list", "grid") else "grid") %} {% set viewparam = "?view=list" if view == "list" else "" %} {% if view == "list" %}
@@ -18,33 +19,11 @@ {% endmacro %} {% macro create_album_card(album, view="grid", unlink_parent=none) %} +{% set view = (view if view in ("list", "grid") else "grid") %} {% set viewparam = "?view=list" if view == "list" else "" %} - {% if view == "list" %} -
- - - -
- {% else %} -
+
+ {% if view == "grid" %} - - - - -
{% if unlink_parent is not none %}
-
{% endif %} + + + +
{% endmacro %}