diff options
| author | Bobby <[email protected]> | 2023-06-04 21:57:43 -0400 |
|---|---|---|
| committer | Bobby <[email protected]> | 2023-06-04 21:57:43 -0400 |
| commit | bb0767641d548a16a8ccab871ffcf8c3f17acfda (patch) | |
| tree | 0e85c1c081adeaf81e37ad1826d92062c621cbcc /templates | |
| parent | 84800a2b6f3b2a12f1ce12038be88a94f0b8be8b (diff) | |
| download | thatcomputerscientist-bb0767641d548a16a8ccab871ffcf8c3f17acfda.tar.xz thatcomputerscientist-bb0767641d548a16a8ccab871ffcf8c3f17acfda.zip | |
Added Status Icon in Comment Avatars
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/blog/post.html | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/templates/blog/post.html b/templates/blog/post.html index 6b1f2bf9..422e4a3d 100644 --- a/templates/blog/post.html +++ b/templates/blog/post.html @@ -97,18 +97,15 @@ <tr> <td style="width: 60px; vertical-align: top;"> <img src="{% static 'images/avatars/' %}{{ comment.avatar_url }}.gif" alt="Profile Picture" style="width: 50px;"> + {% if not comment.user %} + <img src="{% static 'images/site/unknown.png' %}" alt="Anonymous User" class="little-staus" style="top: -20px; left: 24px;"> + {% else %} + <img src="{% static 'images/site/check.png' %}" alt="Registered User" class="little-staus" style="top: -24px; left: 28px;"> + {% endif %} </td> <td style="vertical-align: top; width: 668px;"> <div style="margin-bottom: 13px; border-bottom: dashed 1px white; padding-bottom: 13px;"> - <a href="{% if comment.user%}{% url 'blog:user_activity' comment.user.username %}{% else %}#{% endif %}"> - {% if comment.user %} - {{ comment.user.username }} - {% else %} - {{ comment.anonymous_user.name }} - {% endif %} - </a> on <em> - {{ comment.created_at | date:"M d, Y" }} - </em> + <a {% if comment.user%}href="{% url 'blog:user_activity' comment.user.username %}"{% endif %}>{% if comment.user %}{{ comment.user.username }}{% else %}{{ comment.anonymous_user.name }}{% endif %}</a> on <em>{{ comment.created_at | date:"M d, Y" }}</em> {% if comment.edited %} <em>(Edited)</em> {% endif %} |
