-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodule.serverstatus.html
More file actions
25 lines (22 loc) · 903 Bytes
/
module.serverstatus.html
File metadata and controls
25 lines (22 loc) · 903 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{% if module.display %}
<div class="widget p-4 p-md-5 border-top module">
<h4 class="module-title"><i class="fas fa-fire"></i> {{ module.header }}
{% if module.online %}
<span class="badge badge-success float-right d-inline-block">{{ __("Online") }}</span>
{% else %}
<span class="badge badge-danger float-right d-inline-block">{{ __("Offline") }}</span>
{% endif %}
</h4>
<div class="card text-center p-3 w-100 serverstatus">
<h4 class="mb-2">{{ module.ip }}{% if module.port != 25565 %}:{{ module.port }}{% endif %}</h4>
<p class="text-heading-font mb-0">
{% if module.online %}
{{ module.players.online }} / {{ module.players.max }}
{% else %}
0/0
{% endif %}
{{ __("players online.") }}
</p>
</div>
</div>
{% endif %}