feat(UI): Fallback to username where ever display name is shown

This commit is contained in:
Stephen Burgess
2018-06-12 07:17:02 -05:00
parent 4b0114917d
commit df0fcb886d
4 changed files with 29 additions and 9 deletions
+3 -3
View File
@@ -55,12 +55,12 @@
<div class="list">
{% for comment in comments %}
{% if comment.author.display_name %}
{% set commentAuthorName = comment.author.display_name %}
{% set comment_author_name = comment.author.display_name %}
{% else %}
{% set commentAuthorName = comment.author.username %}
{% set comment_author_name = comment.author.username %}
{% endif %}
<div class="card" id="comment-{{ comment.id }}">
<b>{{ name }}</b>
<b>{{ comment_author_name }}</b>
<div>{{ comment.content | safe }}</div>
<a href="comment?responding_to={{ comment.id }}">Respond</a>
</div>