aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby <[email protected]>2023-06-04 21:57:43 -0400
committerBobby <[email protected]>2023-06-04 21:57:43 -0400
commitbb0767641d548a16a8ccab871ffcf8c3f17acfda (patch)
tree0e85c1c081adeaf81e37ad1826d92062c621cbcc
parent84800a2b6f3b2a12f1ce12038be88a94f0b8be8b (diff)
downloadthatcomputerscientist-bb0767641d548a16a8ccab871ffcf8c3f17acfda.tar.xz
thatcomputerscientist-bb0767641d548a16a8ccab871ffcf8c3f17acfda.zip
Added Status Icon in Comment Avatars
-rw-r--r--static/css/styles.css6
-rw-r--r--static/images/site/check.pngbin0 -> 72200 bytes
-rw-r--r--static/images/site/unknown.pngbin0 -> 118845 bytes
-rw-r--r--templates/blog/post.html15
4 files changed, 12 insertions, 9 deletions
diff --git a/static/css/styles.css b/static/css/styles.css
index f49bbf44..50672ddf 100644
--- a/static/css/styles.css
+++ b/static/css/styles.css
@@ -51,6 +51,12 @@ a,
/* color: #a591ee; */
color: #d2baff;
text-decoration: none;
+ cursor: pointer;
+}
+
+img.little-staus {
+ height: 24px;
+ position: relative;
}
#fake-banner-ad {
diff --git a/static/images/site/check.png b/static/images/site/check.png
new file mode 100644
index 00000000..f34ae14f
--- /dev/null
+++ b/static/images/site/check.png
Binary files differ
diff --git a/static/images/site/unknown.png b/static/images/site/unknown.png
new file mode 100644
index 00000000..85180ba9
--- /dev/null
+++ b/static/images/site/unknown.png
Binary files differ
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 %}