fd
This commit is contained in:
parent
45cf5e4219
commit
521f16ba6b
2 changed files with 12 additions and 2 deletions
|
@ -17,10 +17,15 @@ def slash_post():
|
||||||
def notifications(v):
|
def notifications(v):
|
||||||
try: page = int(request.args.get('page', 1))
|
try: page = int(request.args.get('page', 1))
|
||||||
except: page = 1
|
except: page = 1
|
||||||
all_ = request.args.get('all', False)
|
|
||||||
messages = request.args.get('messages', False)
|
messages = request.args.get('messages', False)
|
||||||
|
modmail = request.args.get('modmail', False)
|
||||||
posts = request.args.get('posts', False)
|
posts = request.args.get('posts', False)
|
||||||
if messages:
|
if modmail and v.admin_level == 6:
|
||||||
|
cids = v.notification_modmail(page=page)
|
||||||
|
next_exists = (len(cids) == 26)
|
||||||
|
cids = cids[:25]
|
||||||
|
comments = get_comments(cids, v=v)
|
||||||
|
elif messages:
|
||||||
cids = v.notification_messages(page=page)
|
cids = v.notification_messages(page=page)
|
||||||
next_exists = (len(cids) == 26)
|
next_exists = (len(cids) == 26)
|
||||||
cids = cids[:25]
|
cids = cids[:25]
|
||||||
|
|
|
@ -30,6 +30,11 @@
|
||||||
Messages
|
Messages
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link py-3{% if '/notifications?modmail=true' in request.full_path %} active{% endif %}" href="/notifications?modmail=true">
|
||||||
|
Modmail
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue