diff --git a/templates/forum/topic.html b/templates/forum/topic.html index 5369cc3..4134e26 100755 --- a/templates/forum/topic.html +++ b/templates/forum/topic.html @@ -1277,8 +1277,8 @@ {% for read in reply.readers[:15] %}
- {{ (read.user.name or read.user.email)[0]|upper }} + style="{% if not read.user.avatar_path %}background: hsl({{ (read.user.id * 137) % 360 }}, 65%, 50%);{% endif %}"> + {% if read.user.avatar_path %}{% else %}{{ (read.user.name or read.user.email)[0]|upper }}{% endif %}
{% endfor %} {% if reply.readers|length > 15 %}