diff --git a/templates/classifieds/view.html b/templates/classifieds/view.html index 60b5603..de7f4fe 100755 --- a/templates/classifieds/view.html +++ b/templates/classifieds/view.html @@ -711,7 +711,7 @@
- {{ (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 %}
-
- {{ (q.author.name or q.author.email)[0]|upper }} +
+ {% if q.author.avatar_path %}{% else %}{{ (q.author.name or q.author.email)[0]|upper }}{% endif %}