Merge pull request #1020 from bookwyrm-social/notification-color

Only make notification count red for mentions
This commit is contained in:
Mouse Reeve
2021-04-30 13:49:57 -07:00
committed by GitHub
4 changed files with 22 additions and 3 deletions

View File

@ -135,8 +135,11 @@
<span class="is-sr-only">{% trans "Notifications" %}</span>
</span>
</span>
<span class="{% if not request.user|notification_count %}is-hidden {% endif %}tag is-danger is-medium transition-x" data-poll-wrapper>
<span data-poll="notifications">{{ request.user | notification_count }}</span>
<span
class="{% if not request.user.unread_notification_count %}is-hidden {% elif request.user.has_unread_mentions %}is-danger {% endif %}tag is-medium transition-x"
data-poll-wrapper
>
<span data-poll="notifications">{{ request.user.unread_notification_count }}</span>
</span>
</a>
</div>