-
Notifications
You must be signed in to change notification settings - Fork 982
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: added notifications in templates
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
FusionIIIT/templates/notifications/gymkhana_sidepanel.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |