Skip to content

Commit

Permalink
Merge pull request #1856 from AtmegaBuzz/fix/issue-1842
Browse files Browse the repository at this point in the history
fix NoReverseMatch issue:1842
  • Loading branch information
AtmegaBuzz authored Feb 29, 2024
2 parents 1c15a62 + f2853e6 commit c5bf2d8
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions website/templates/issue2.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,17 @@
{% endif %}
</div>
<div class="flex flex-col justify-center">
<a href="{% url 'profile' slug=object.user.username %}">
Reported By
<span class="font-bold">{{ object.user.username|default_if_none:"Anonymous" }}</span>
</a>
{% if object.user.username %}
<a href="{% url 'profile' slug=object.user.username %}">
Reported By
<span class="font-bold">{{ object.user.username }}</span>
</a>
{% else %}
<a href="">
Reported By
<span class="font-bold">Anonymous</span>
</a>
{% endif %}
<p class="text-xl text-gray-600">
Report viewed by <i class="fa fa-eye"></i> <span class="font-bold">{{ object.views }} users</span>
</p>
Expand Down Expand Up @@ -298,8 +305,12 @@
{% endif %}
</div>
<div class="full p-3 flex flex-col justify-center">
<a class="font-bold text-3xl"
href="{% url 'profile' slug=object.user.username %}">Reported By {{ object.user.username|default_if_none:"Anonymous" }}</a>
{% if object.user.username %}
<a class="font-bold text-3xl"
href="{% url 'profile' slug=object.user.username %}">Reported By {{ object.user.username }}</a>
{% else %}
<a class="font-bold text-3xl" href="">Reported By Anonymous</a>
{% endif %}
<p class="text-2xl font-light">
Total points <span class="font-bold">{{ users_score }}</span>
</p>
Expand Down

0 comments on commit c5bf2d8

Please sign in to comment.