forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2022-04-03 20:08:59 +02:00
parent 73af57f141
commit 2dd4e6a573
2 changed files with 2 additions and 2 deletions

View File

@ -426,7 +426,7 @@ class User(Base):
@property @property
@lazy @lazy
def not_post_notifications_count(self): def not_post_notifications_count(self):
return self.notifications_count - self.post_notifications_count return self.notifications_count - self.post_notifications_count - self.reddit_notifications_count
@property @property
@lazy @lazy

View File

@ -17,7 +17,7 @@
<ul class="nav settings-nav" style="padding:0 30px;"> <ul class="nav settings-nav" style="padding:0 30px;">
<li class="nav-item"> <li class="nav-item">
<a class="nav-link py-3{% if not '=true' in request.full_path %} active{% endif %}" href="/notifications"> <a class="nav-link py-3{% if not '=true' in request.full_path %} active{% endif %}" href="/notifications">
All {% if v.not_post_notifications_count - v.reddit_notifications_count %} <span class="font-weight-bold" style="color:red">({{v.not_post_notifications_count - v.reddit_notifications_count}})</span>{% endif %} All {% if v.not_post_notifications_count %} <span class="font-weight-bold" style="color:red">({{v.not_post_notifications_count}})</span>{% endif %}
</a> </a>
</li> </li>
<li class="nav-item"> <li class="nav-item">