From fa90529efb5ef0154aed5ab6f3efe33253466d6a Mon Sep 17 00:00:00 2001
From: "J.-S. Caux" <J.S.Caux@uva.nl>
Date: Fri, 22 Mar 2019 21:05:59 +0100
Subject: [PATCH] Deactivate notifications

---
 notifications/views.py                | 4 +++-
 scipost/templates/scipost/navbar.html | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/notifications/views.py b/notifications/views.py
index ec2642156..955e23ab3 100644
--- a/notifications/views.py
+++ b/notifications/views.py
@@ -86,7 +86,9 @@ def live_notification_list(request):
 
     list = []
 
-    for n in request.user.notifications.all()[offset:offset + num_to_fetch]:
+    #for n in request.user.notifications.all()[offset:offset + num_to_fetch]:
+    # Kill notifications for now
+    for n in None:
         struct = model_to_dict(n)
         # struct['unread'] = struct['pseudo_unread']
         struct['slug'] = id2slug(n.id)
diff --git a/scipost/templates/scipost/navbar.html b/scipost/templates/scipost/navbar.html
index 7aac72afa..aa5489240 100644
--- a/scipost/templates/scipost/navbar.html
+++ b/scipost/templates/scipost/navbar.html
@@ -222,7 +222,7 @@
 
               <li class="nav-item navbar-counter">
                 <div class="d-inline-block notifications_container">
- <!--                 <a href="javascript:;" class="d-inline-block badge_link nav-link" id="notifications_badge" data-toggle="modal" data-target="#notification_center">
+<!--                 <a href="javascript:;" class="d-inline-block badge_link nav-link" id="notifications_badge" data-toggle="modal" data-target="#notification_center">
                     <i class="fa fa-inbox" aria-hidden="true" style="min-width: 16px;"></i>
                     {% live_notify_badge classes="badge badge-pill" %}
                   </a>
-- 
GitLab