1
0
Fork 0

Highlight unread notifications

This commit is contained in:
Mouse Reeve 2020-03-10 13:31:57 -07:00
parent 3ddd4a0490
commit e8cfa99cd9
3 changed files with 8 additions and 1 deletions

View file

@ -9,7 +9,7 @@
<button type="submit">Delete notifications</button>
</form>
{% for notification in notifications %}
<div class="notification{% if not notification.read %}unread{% endif %}">
<div class="notification{% if notification.id in unread %} unread{% endif %}">
<p>
{% if notification.notification_type == 'FAVORITE' %}
{% include 'snippets/username.html' with user=notification.related_user %}