forked from rDrama/rDrama
sfd
parent
73af57f141
commit
2dd4e6a573
|
@ -426,7 +426,7 @@ class User(Base):
|
|||
@property
|
||||
@lazy
|
||||
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
|
||||
@lazy
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
<ul class="nav settings-nav" style="padding:0 30px;">
|
||||
<li class="nav-item">
|
||||
<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>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
|
|
Loading…
Reference in New Issue