Add album's author and date to the page.
This commit is contained in:
parent
8f0ff55383
commit
fd6375613a
2 changed files with 12 additions and 0 deletions
|
@ -22,6 +22,11 @@ iframe.embedded_search
|
|||
border: none;
|
||||
}
|
||||
|
||||
p:last-of-type
|
||||
{
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.header_element:hover
|
||||
{
|
||||
background-color: var(--color_secondary);
|
||||
|
|
|
@ -216,6 +216,13 @@ const ALBUM_ID = undefined;
|
|||
{{-album.description-}}
|
||||
</pre>
|
||||
</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>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in a new issue