diff --git a/frontends/etiquette_flask/backend/jinja_filters.py b/frontends/etiquette_flask/backend/jinja_filters.py index a58f800..9dbbb76 100644 --- a/frontends/etiquette_flask/backend/jinja_filters.py +++ b/frontends/etiquette_flask/backend/jinja_filters.py @@ -50,6 +50,12 @@ def file_link(photo, short=False): def islice(gen, start, stop): return itertools.islice(gen, start, stop) +@filter_function +def join_and_trail(l, s): + if not l: + return '' + return s.join(l) + s + @filter_function def timestamp_to_8601(timestamp): return datetime.datetime.utcfromtimestamp(timestamp).isoformat(' ') + ' UTC' diff --git a/frontends/etiquette_flask/static/css/cards.css b/frontends/etiquette_flask/static/css/cards.css index 17a84e7..fcefa69 100644 --- a/frontends/etiquette_flask/static/css/cards.css +++ b/frontends/etiquette_flask/static/css/cards.css @@ -146,9 +146,9 @@ position: relative; display: grid; grid-template: - "checkbox filename metadata" auto - /auto 1fr auto; - + "checkbox filename metadata tags" auto + /auto 1fr auto auto; + grid-column-gap: 4px; margin: 8px; padding: 4px; } diff --git a/frontends/etiquette_flask/templates/album.html b/frontends/etiquette_flask/templates/album.html index acfd477..4249d23 100644 --- a/frontends/etiquette_flask/templates/album.html +++ b/frontends/etiquette_flask/templates/album.html @@ -64,7 +64,7 @@ h2, h3
{% import "header.html" as header %} - {% import "album_card.html" as album_card %} + {% import "cards.html" as cards %}