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; height: 100px;
margin: 20px; margin: 20px;
} }
.avatar.padded {
margin-right: 1em;
}

View File

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