NexusDashboard/app/templates/main/about.html.j2

100 lines
2.4 KiB
Plaintext
Raw Normal View History

2022-01-16 18:22:00 +00:00
{% extends 'base.html.j2' %}
{% block title %}About{% endblock %}
{% block content_before %}
2022-04-03 18:33:33 +00:00
Online Players: {{ online }}
2022-01-16 18:22:00 +00:00
{% 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 %}
2022-01-16 18:22:00 +00:00
<div class='card mx-auto mt-5 shadow-sm bg-dark border-primary'>
<div class="card-body">
2022-04-03 18:33:33 +00:00
<h4 class="text-center">Staff</h4>
2022-01-16 18:22:00 +00:00
{% 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 %}
2022-01-16 18:22:00 +00:00
2022-07-03 13:17:38 +00:00
</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 %}
2022-01-16 18:22:00 +00:00
<div class="row">
<div class="col text-right">
Source
</div>
<div class="col">
<a href="https://github.com/DarkflameUniverse/NexusDashboard">
2022-01-16 18:22:00 +00:00
Github
</a>
</div>
</div>
</div>
</div>
{% endblock %}