Add avatar next to comments

This commit is contained in:
Bat 2018-09-03 15:18:54 +01:00
parent 7734557a99
commit 10d4599c9b
2 changed files with 6 additions and 1 deletions

View file

@ -760,3 +760,7 @@ figcaption {
height: 100px;
margin: 20px;
}
.avatar.padded {
margin-right: 1em;
}

View file

@ -46,8 +46,9 @@
{% macro comment(comm) %}
<div class="comment" id="comment-{{ comm.id }}">
<a class="author" href="/@/{{ comm.author.fqn }}/">
<img class="avatar small padded" src="{{ comm.author.avatar }}" alt="{{ comm.author.name }}">
<span class="display-name">{{ comm.author.name }}</span>
<small>@{{ comm.author.username }}</small>
<small>@{{ comm.author.fqn }}</small>
</a>
<div class="text">{{ comm.content | safe }}</div>
<a class="button" href="?responding_to={{ comm.id }}">{{ "Respond" | _ }}</a>