{% extends "settings2.html" %}

{% block pagetitle %}Admins{% endblock %}

{% block content %}

<script src="/static/assets/js/sort_table.js?a=5"></script>

<pre class="d-none d-md-inline-block"></pre>
<h5 style="font-weight:bold;">Admins</h5>
<pre></pre>
<div class="overflow-x-auto">
<table id="sortable_table" class="table table-striped mb-5">
<thead class="bg-primary text-white">
	<tr>
		<th style="font-weight:bold;">#</th>
		<th style="font-weight:bold;">Name</th>
		<th role="button" onclick="sort_table(2)" style="font-weight:bold; text-align:right;">Truescore</th>
		<th role="button" onclick="sort_table(3)" style="font-weight:bold; text-align:right;">Mod actions</th>
	</tr>
</thead>
{% for user in admins %}
	<tr>
		<td style="font-weight:bold;">{{loop.index}}</td>
		<td><a style="color:#{{user.namecolor}};font-weight:bold;" href="/@{{user.username}}"><img alt="@{{user.username}}'s profile picture" loading="lazy" src="/uid/{{user.id}}/pic" 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" data-bs-original-title="Meme Admin"></i>{% endif %}</td>
		<td style="font-weight:bold; text-align:right;">{{user.truecoins}}</td>
		<td style="font-weight:bold; text-align:right;">{{user.modaction_num}}</td>
	</tr>
{% endfor %}
</table>
{% endblock %}