Commit 12426296 by Őry Máté

dashboard: add notifications to home view

parent 4ff3f93d
...@@ -81,6 +81,9 @@ class IndexView(LoginRequiredMixin, TemplateView): ...@@ -81,6 +81,9 @@ class IndexView(LoginRequiredMixin, TemplateView):
'more_instances': instances.count() - len(instances[:5]) 'more_instances': instances.count() - len(instances[:5])
}) })
if user is not None:
context['notifications'] = user.notification_set.all()[:10]
nodes = Node.objects.all() nodes = Node.objects.all()
groups = Group.objects.all() groups = Group.objects.all()
context.update({ context.update({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment