Skip to content

Commit

Permalink
fix: added notifications in templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Anurag607 committed Apr 23, 2024
1 parent b0f3667 commit 4af9f6e
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions FusionIIIT/templates/notifications/gymkhana_sidepanel.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{% load static %}
{% block sidepanel %}
{% load notifications_tags %}
{% for notice in notifications %}
{% if notice.unread %}
{% if notice.data.module == 'Gymkhana Module' %}
<div class="ui icon message">
<i class="inbox icon"></i>
<div class="content">
<div class="header">
<a href="{% url 'notifications:mark_as_read_and_redirect' notice.slug %}">
{{ notice.data.module }}
</a>
</div>
<p>{{ notice.verb }}</p>
</div>
<div class="ui right floated">
<a href="{% url 'notifications:delete' notice.slug %}">
<i class="close icon"></i>
</a>
</div>
</div>
{% endif%}
{% endif %}
{% endfor %}
{% endblock %}

0 comments on commit 4af9f6e

Please sign in to comment.