Skip to content

Commit 1eaa3d6

Browse files
errorassassinDonnieBLT
authored andcommitted
anonymous users
1 parent c11e348 commit 1eaa3d6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

website/templates/_bug.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@
1515
<img src="{% static 'images/dummy-user.png' %}" width="30"
1616
class="h-[30px] object-cover img-responsive rounded-full" loading="lazy">
1717
{% endif %}
18-
<a href="/profile/{{bug.user.username}}" class="whitespace-nowrap overflow-clip"> {{bug.user}} </a>
18+
19+
{% if bug.user.username is not None %}
20+
<a href="/profile/{{bug.user.username}}" class="whitespace-nowrap overflow-clip"> {{bug.user}} </a>
21+
{% else %}
22+
<span class="whitespace-nowrap overflow-clip"> Anonymous </span>
23+
{% endif %}
24+
1925
<div class="bug-type bg-[#0097ED] border-[#005AAD] ms-auto me-2 border-[1px] tracking-wider px-3 py-[1px] rounded-full font-['Nunito_Sans'] font-bold text-lg text-white">
2026
{{bug.get_label_display}}
2127
</div>

0 commit comments

Comments
 (0)