mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-20 17:52:30 +02:00
Compare commits
5 Commits
20f6bd1d36
...
713ef5a971
Author | SHA1 | Date | |
---|---|---|---|
|
713ef5a971 | ||
|
bf32f2c1ef | ||
|
7ca67ebaae | ||
|
fa32f87a35 | ||
|
a630015451 |
@ -2,8 +2,8 @@
|
|||||||
{% load navactive %}
|
{% load navactive %}
|
||||||
{% load auth_notifications %}
|
{% load auth_notifications %}
|
||||||
|
|
||||||
<li class="nav-item {% navactive request 'notifications:' %}" id="menu_item_notifications">
|
<li class="nav-item" id="menu_item_notifications">
|
||||||
<a class="nav-link" href="{% url 'notifications:list' %}">
|
<a class="nav-link {% navactive request 'notifications:' %}" href="{% url 'notifications:list' %}">
|
||||||
{% with unread_count=request.user|user_unread_notification_count %}
|
{% with unread_count=request.user|user_unread_notification_count %}
|
||||||
<i class="fa-solid fa-bell{% if unread_count %} text-danger{% endif %}"></i>
|
<i class="fa-solid fa-bell{% if unread_count %} text-danger{% endif %}"></i>
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
@ -439,6 +439,7 @@ class TestUserHasAccount(NoSocketsTestCase):
|
|||||||
|
|
||||||
def test_return_false_if_user_does_not_exist(self):
|
def test_return_false_if_user_does_not_exist(self):
|
||||||
my_user = User(username='Dummy')
|
my_user = User(username='Dummy')
|
||||||
|
my_user.save()
|
||||||
self.assertFalse(DiscordUser.objects.user_has_account(my_user))
|
self.assertFalse(DiscordUser.objects.user_has_account(my_user))
|
||||||
|
|
||||||
def test_return_false_if_not_called_with_user_object(self):
|
def test_return_false_if_not_called_with_user_object(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user