Highlight unread notifications
This commit is contained in:
parent
3ddd4a0490
commit
e8cfa99cd9
3 changed files with 8 additions and 1 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue