mirror of
https://github.com/YGGverse/HLState.git
synced 2025-03-12 13:31:24 +00:00
update server status behaviour
This commit is contained in:
parent
6714546199
commit
0dbe79af48
@ -40,7 +40,9 @@
|
||||
#{{ server.crc32server }}
|
||||
{% endif %}
|
||||
</td>
|
||||
<td class="text-align-left">{{ server.info.Map }}</td>
|
||||
<td class="text-align-left">
|
||||
{{ server.info.Map }}
|
||||
</td>
|
||||
<td class="text-align-left">
|
||||
<span title="{{ server.added | date('r') }}">
|
||||
{{ server.added | format_ago }}
|
||||
@ -48,12 +50,34 @@
|
||||
</td>
|
||||
<td class="text-align-left">
|
||||
<span title="{{ server.online | date('r') }}">
|
||||
{{ server.online | format_ago }}
|
||||
{% if server.status %}
|
||||
{{ 'now' | trans }}
|
||||
{% else %}
|
||||
{{ server.online | format_ago }}
|
||||
{% endif %}
|
||||
</span>
|
||||
</td>
|
||||
<td class="text-align-center">{{ server.connections }}{#{{ server.info.Players }}#}</td>
|
||||
<td class="text-align-center">{{ server.info.MaxPlayers }}</td>
|
||||
<td class="text-align-center">{{ server.info.Bots }}</td>
|
||||
<td class="text-align-center">
|
||||
{% if server.status %}
|
||||
{{ server.connections }}{#{{ server.info.Players }}#}
|
||||
{% else %}
|
||||
-
|
||||
{% endif %}
|
||||
</td>
|
||||
<td class="text-align-center">
|
||||
{% if server.status %}
|
||||
{{ server.info.MaxPlayers }}
|
||||
{% else %}
|
||||
-
|
||||
{% endif %}
|
||||
</td>
|
||||
<td class="text-align-center">
|
||||
{% if server.status %}
|
||||
{{ server.info.Bots }}
|
||||
{% else %}
|
||||
-
|
||||
{% endif %}
|
||||
</td>
|
||||
<td class="text-align-center">
|
||||
<a href="{{ path('server_index', { crc32server : server.crc32server }) }}" title="{{ 'Stats' | trans }}"><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="currentColor" viewBox="0 0 16 16">
|
||||
<path d="M11 2a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v12h.5a.5.5 0 0 1 0 1H.5a.5.5 0 0 1 0-1H1v-3a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v3h1V7a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v7h1z"/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user