Snippets for book previews, username links, avatars

This commit is contained in:
Mouse Reeve
2020-02-10 21:23:21 -08:00
parent 3ba76a8b13
commit f9cb9f939a
7 changed files with 15 additions and 14 deletions

View File

@ -5,7 +5,7 @@
<div id="sidebar">
<div class="user-profile">
<h2>
<img class="user-pic" src="{% if user.avatar %}/images/{{ user.avatar }}{% else %}/static/images/default_avi.jpg{% endif %}">
{% include 'snippets/avatar.html' with user=user %}
{% if user.name %}{{ user.name }}{% endif %}
<small>{{ user.username }}</small>
</h2>