Add album's author and date to the page.

This commit is contained in:
voussoir 2021-01-09 10:50:52 -08:00
parent 8f0ff55383
commit fd6375613a
2 changed files with 12 additions and 0 deletions

View file

@ -22,6 +22,11 @@ iframe.embedded_search
border: none; border: none;
} }
p:last-of-type
{
margin-bottom: 0;
}
.header_element:hover .header_element:hover
{ {
background-color: var(--color_secondary); background-color: var(--color_secondary);

View file

@ -216,6 +216,13 @@ const ALBUM_ID = undefined;
{{-album.description-}} {{-album.description-}}
</pre> </pre>
</div> </div>
{% set author = album.get_author() %}
{% if author is not none %}
<p>Author: <a href="/user/{{author.username}}">{{author.display_name}}</a></p>
{% endif %}
<p>Created on <span title="{{album.created|int|timestamp_to_8601}}">{{album.created|timestamp_to_naturaldate}}.</span></p>
<button class="green_button editor_toolbox_placeholder">Edit</button> <button class="green_button editor_toolbox_placeholder">Edit</button>
</div> </div>