From fd6375613a6659bb62fc893501e0be7676028d3c Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sat, 9 Jan 2021 10:50:52 -0800 Subject: [PATCH] Add album's author and date to the page. --- frontends/etiquette_flask/static/css/etiquette.css | 5 +++++ frontends/etiquette_flask/templates/album.html | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/frontends/etiquette_flask/static/css/etiquette.css b/frontends/etiquette_flask/static/css/etiquette.css index 76310aa..bd05d78 100644 --- a/frontends/etiquette_flask/static/css/etiquette.css +++ b/frontends/etiquette_flask/static/css/etiquette.css @@ -22,6 +22,11 @@ iframe.embedded_search border: none; } +p:last-of-type +{ + margin-bottom: 0; +} + .header_element:hover { background-color: var(--color_secondary); diff --git a/frontends/etiquette_flask/templates/album.html b/frontends/etiquette_flask/templates/album.html index 88b9a18..ce3cad2 100644 --- a/frontends/etiquette_flask/templates/album.html +++ b/frontends/etiquette_flask/templates/album.html @@ -216,6 +216,13 @@ const ALBUM_ID = undefined; {{-album.description-}} + + {% set author = album.get_author() %} + {% if author is not none %} +

Author: {{author.display_name}}

+ {% endif %} + +

Created on {{album.created|timestamp_to_naturaldate}}.