Oops, add data-id to the list view album card.

This commit is contained in:
voussoir 2018-12-23 15:28:55 -08:00
parent c6c6158062
commit 3d81b5508c

View file

@ -21,7 +21,7 @@
{% macro create_album_card(album, view="grid", unlink_parent=none) %} {% macro create_album_card(album, view="grid", unlink_parent=none) %}
{% set viewparam = "?view=list" if view == "list" else "" %} {% set viewparam = "?view=list" if view == "list" else "" %}
{% if view == "list" %} {% if view == "list" %}
<div class="album_card album_card_list"> <div class="album_card album_card_list" data-id="{{album.id}}">
<div class="album_card_title"> <div class="album_card_title">
<a href="/album/{{album.id}}{{viewparam}}">{{album.display_name}}</a> <a href="/album/{{album.id}}{{viewparam}}">{{album.display_name}}</a>
</div> </div>