mirror of https://gitlab.com/brutaldon/brutaldon
Add view for notifications.
This commit is contained in:
parent
51cb1c42fe
commit
12d61820bf
|
@ -113,7 +113,10 @@ def error(request):
|
||||||
return render(request, 'error.html', { 'error': "Not logged in yet."})
|
return render(request, 'error.html', { 'error': "Not logged in yet."})
|
||||||
|
|
||||||
def note(request):
|
def note(request):
|
||||||
return render(request, 'main/timeline.html', {'timeline': 'Notifications'})
|
mastodon = get_mastodon(request)
|
||||||
|
notes = mastodon.notifications()
|
||||||
|
return render(request, 'main/notifications.html',
|
||||||
|
{'notes': notes,'timeline': 'Notifications'})
|
||||||
|
|
||||||
|
|
||||||
def settings(request):
|
def settings(request):
|
||||||
|
|
Loading…
Reference in New Issue