- {{ (classified.author.name or classified.author.email)[0].upper() }}
+ {% if classified.author.avatar_path %}
 }})
{% else %}{{ (classified.author.name or classified.author.email)[0].upper() }}{% endif %}
{{ classified.author.name or classified.author.email.split('@')[0] }}
@@ -759,8 +759,8 @@
{% for read in readers[:20] %}
- {{ (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 readers_count > 20 %}
@@ -798,8 +798,8 @@
{% for q in questions %}