
Originally motivated by fixing #263 (add a mod list), the root cause of which was that we had a number of orphaned pages, one being the admins list. In the upstream, we moved links to a number of infrequently-accessed pages to a secondary nav in the sidebar. This commit implements a similar approach to provide links to the admin list and modlog. To make the nav less visually unbalanced, Random Post/User were also moved out of the header. To provide mobile support, this secondary nav is presented in the hamburger menu. This also provides a place to link /rules, which otherwise has no link on mobile (that I can readily find). Finally, the original intent of providing a mod list motivates some style changes to admins.html to get rid of visible truescore, make names appear consistently with names elsewhere, and ensure links to leaderboard aren't accidentally leaked.
27 lines
1.1 KiB
HTML
27 lines
1.1 KiB
HTML
{% extends "settings2.html" %}
|
|
|
|
{% block pagetitle %}Admins{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<script src="{{ 'js/sort_table.js' | asset }}"></script>
|
|
|
|
<h5 class="font-weight-bold mt-3 mb-3">Admins</h5>
|
|
<div class="overflow-x-auto">
|
|
<table id="sortable_table" class="table table-striped mb-5">
|
|
<thead class="bg-primary text-white">
|
|
<tr>
|
|
<th>#</th>
|
|
<th>Name</th>
|
|
<th role="button" onclick="sort_table(2)" class="text-right">Mod Actions</th>
|
|
</tr>
|
|
</thead>
|
|
{% for user in admins %}
|
|
<tr>
|
|
<td>{{loop.index}}</td>
|
|
<td><a href="/@{{user.username}}"><img loading="lazy" src="{{user.profile_url}}" class="pp20"><span {% if user.patron %}class="patron" style="background-color:#{{user.namecolor}}"{% endif %}>{{user.username}}</span></a>{% if user.admin_level == 1 and v and v.admin_level > 1 %}<i class="fas fa-broom align-middle ml-2 color-white" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Meme Admin"></i>{% endif %}</td>
|
|
<td class="text-right"><a href="/log?admin={{user.username}}">{{user.modaction_num}}</a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
{% endblock %}
|