NexusDashboard/app/templates/main/about.html.j2
aronwk-aaron f643f428ea apeed up about page loading
add some neat info
2022-11-17 22:41:43 -06:00

100 lines
2.4 KiB
Django/Jinja

{% extends 'base.html.j2' %}
{% block title %}About{% endblock %}
{% block content_before %}
Online Players: {{ online }}
{% endblock %}
{% block content %}
{# show general zone info to everyone #}
{% if zones %}
<div class='card mx-auto mt-5 shadow-sm bg-dark border-primary'>
<div class="card-body">
{% for zone, players in zones.items() %}
<div class="row">
<div class="col text-right">
{{ zone|get_zone_name }}
</div>
<div class="col">
{{ players }}
</div>
</div>
{% endfor %}
</div>
</div>
{% endif %}
{# only show this info to high level admina #}
{% if current_user.gm_level >= 8 and users|length > 0 %}
<div class='card mx-auto mt-5 shadow-sm bg-dark border-primary'>
<div class="card-body">
{% for user in users %}
<div class="row">
<div class="col text-right">
{{ user[0] }}
</div>
<div class="col">
{{ user[1]|get_zone_name }}
</div>
</div>
{% endfor %}
</div>
</div>
{% endif %}
<div class='card mx-auto mt-5 shadow-sm bg-dark border-primary'>
<div class="card-body">
<h4 class="text-center">Staff</h4>
{% for mod in mods %}
<div class="row">
<div class="col text-right">
{{ mod.username }}
</div>
<div class="col">
{% with gm_level=mod.gm_level %}
{% include 'partials/_gm_level.html.j2' %}
{% endwith %}
</div>
</div>
{% endfor %}
</div>
</div>
<div class='card mx-auto mt-5 shadow-sm bg-dark border-primary'>
<div class="card-body">
<h4 class="text-center">Links</h4>
{% if config.CONFIG_LINK %}
<div class="row">
<div class="col text-right">
{{ config.CONFIG_LINK_TITLE }}
</div>
<div class="col">
<a href="{{ url_for('static', filename=config.CONFIG_LINK_HREF) }}">
{{ config.CONFIG_LINK_TEXT }}
</a>
</div>
</div>
{% endif %}
<div class="row">
<div class="col text-right">
Source
</div>
<div class="col">
<a href="https://github.com/DarkflameUniverse/NexusDashboard">
Github
</a>
</div>
</div>
</div>
</div>
{% endblock %}