2021-08-27 23:48:46 +00:00
|
|
|
{% extends ../public_base.html %}
|
2021-08-27 01:06:22 +00:00
|
|
|
|
|
|
|
{% block meta %}
|
|
|
|
<meta http-equiv="refresh" content="30">
|
|
|
|
{% end %}
|
|
|
|
|
2021-09-29 02:25:47 +00:00
|
|
|
{% block title %}Crafty Controller - {{ translate('dashboard', 'dashboard', data['lang']) }}{% end %}
|
2021-08-27 01:06:22 +00:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="content-wrapper col-md login-modal" style="background-color: #222437;">
|
2021-08-27 23:48:46 +00:00
|
|
|
<img src="/static/assets/images/logo_long.png" style='width: 25%; margin-left: 38%;'>
|
|
|
|
<hr />
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-hover">
|
|
|
|
<thead>
|
|
|
|
<tr class="rounded">
|
2021-09-29 02:25:47 +00:00
|
|
|
<th>{{ translate('dashboard', 'server', data['lang']) }}</th>
|
|
|
|
<th>{{ translate('dashboard', 'players', data['lang']) }}</th>
|
|
|
|
<th>{{ translate('dashboard', 'motd', data['lang']) }}</th>
|
|
|
|
<th>{{ translate('dashboard', 'version', data['lang']) }}</th>
|
|
|
|
<th>{{ translate('dashboard', 'status', data['lang']) }}</th>
|
2021-08-27 23:48:46 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for server in data['servers'] %}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<i class="fas fa-server"></i>
|
|
|
|
{{ server['server_data']['server_name'] }}
|
|
|
|
</td>
|
|
|
|
{% if server['stats']['int_ping_results'] != 'False' %}
|
|
|
|
<td>
|
2021-09-29 02:25:47 +00:00
|
|
|
{{ server['stats']['online'] }} / {{ server['stats']['max'] }} {{ translate('dashboard', 'max', data['lang']) }}<br />
|
2021-08-27 23:48:46 +00:00
|
|
|
</td>
|
2021-08-28 22:48:30 +00:00
|
|
|
<td>
|
2021-08-27 23:48:46 +00:00
|
|
|
{% if server['stats']['desc'] != 'False' %}
|
2021-08-28 22:48:30 +00:00
|
|
|
{% if server['raw_ping_result']['icon'] %}
|
|
|
|
<img src="data:image/png;base64,{% raw server['raw_ping_result']['icon'] %}" alt="icon"/>
|
|
|
|
{% else %}
|
|
|
|
<img src="/static/assets/images/pack.png" alt="icon" />
|
|
|
|
{% end %}
|
|
|
|
<span id="input_motd">{{ server['stats']['desc'] }}</span> <br />
|
2021-08-27 23:48:46 +00:00
|
|
|
{% end %}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% if server['stats']['version'] != 'False' %}
|
|
|
|
{{ server['stats']['version'] }}
|
|
|
|
{% end %}
|
|
|
|
</td>
|
|
|
|
{% else %}
|
|
|
|
<td colspan="3">
|
|
|
|
<span class="text-warning"><i class="fas fa-exclamation-triangle"></i> Crafty can't get infos from this Server </span>
|
|
|
|
</td>
|
|
|
|
{% end %}
|
|
|
|
<td>
|
2021-10-18 21:43:14 +00:00
|
|
|
{% if server['stats']['running'] %}
|
2021-09-29 02:25:47 +00:00
|
|
|
<span class="text-success"><i class="fas fa-signal"></i> {{ translate('dashboard', 'online', data['lang']) }}</span>
|
2021-08-27 23:48:46 +00:00
|
|
|
{% else %}
|
2021-09-29 02:25:47 +00:00
|
|
|
<span class="text-danger"><i class="fas fa-ban"></i> {{ translate('dashboard', 'offline', data['lang']) }}</span>
|
2021-08-27 23:48:46 +00:00
|
|
|
{% end %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% end %}
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<hr />
|
2021-08-27 01:06:22 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{% end %}
|
|
|
|
|
|
|
|
{% block js %}
|
|
|
|
|
2021-08-28 22:48:30 +00:00
|
|
|
<script src="/static/assets/js/motd.js"></script>
|
2021-08-27 23:48:46 +00:00
|
|
|
<script>
|
2021-08-28 22:48:30 +00:00
|
|
|
$(document).ready(function () {
|
|
|
|
initParser('input_motd', 'input_motd');
|
|
|
|
}());
|
|
|
|
</script>
|
2021-08-27 23:48:46 +00:00
|
|
|
|
2021-08-27 01:06:22 +00:00
|
|
|
{% end %}
|