Revert "Merge branch 'notifications_refresh' into 'master'"

This reverts merge request !1215
This commit is contained in:
Ariel Rin
2020-06-04 11:21:50 +00:00
parent 3a984e8a4d
commit ae3f5a0f62
6 changed files with 12 additions and 63 deletions

View File

@@ -6,13 +6,11 @@ from django.contrib.auth import login, authenticate
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from django.core import signing
from django.http import HttpResponse
from django.shortcuts import redirect, render
from django.urls import reverse
from django.shortcuts import redirect, render
from django.utils.translation import gettext_lazy as _
from allianceauth.eveonline.models import EveCharacter
from esi.decorators import token_required
from esi.models import Token
@@ -61,14 +59,6 @@ def dashboard(request):
return render(request, 'authentication/dashboard.html', context)
@login_required
def notifications_render(request):
"""returns html to render the notifications item in the top menu"""
unread_count = request.user.notification_set.filter(viewed=False).count()
context = {'notifications': unread_count}
return render(request, 'allianceauth/notifications_menu_item.html', context)
@login_required
@token_required(scopes=settings.LOGIN_TOKEN_SCOPES)
def main_character_change(request, token):