-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
01d861e
commit 32ec36b
Showing
10 changed files
with
53 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,28 @@ | ||
{% import _self as serverlist %} | ||
<header> | ||
{% set status = (server.online) ? "online" : "offline" %} | ||
|
||
<section class="title"> | ||
{% set status = "offline" %} | ||
|
||
{% if server.online %} | ||
{% set status = "online" %} | ||
{% endif %} | ||
|
||
<span class="status {{ status }}" title="Server is currently {{ status }}">•</span> | ||
<span class="name">{{ server.name }}</span> | ||
<span class="c-servers__server__info__status c-servers__server__info__status--{{ status }}" title="Server is currently {{ status }}">•</span> | ||
<span class="c-servers__server__info__name">{{ server.name }}</span> | ||
{{ server.country.flagLiteral | raw }} | ||
|
||
<ul> | ||
{% if me.canEdit(server) %} | ||
<li> | ||
<a class="server-refresh" href="{{ path('server_show', { server: server.id, forced: 1 }) }}"> | ||
<i class="fa fa-refresh"></i> | ||
</a> | ||
</li> | ||
<li>{{ link_to(server, 'pencil', 'edit') }}</li> | ||
{% endif %} | ||
|
||
{% if me.canDelete(server) %} | ||
<li>{{ link_to(server, 'minus', 'delete') }}</li> | ||
{% endif %} | ||
</ul> | ||
</section> | ||
|
||
<p class="address">{{ server.address }}</p> | ||
<p class="playerCount">Player count: {{ server.numPlayers }}</p> | ||
|
||
{% if server.players is not empty %} | ||
<ul class="players"> | ||
{% for player in server.players %} | ||
<li>{{ player.sign ~ " " ~ serverlist.team(player) | trim }}</li> | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
|
||
<small>Updated {{ server.lastUpdate | humanTime }}</small> | ||
|
||
{% macro team(player) %} | ||
{% set team = player.team %} | ||
|
||
{% if team == 0 %} | ||
(Rogue) | ||
{% elseif team == 1 %} | ||
(Red) | ||
{% elseif team == 2 %} | ||
(Green) | ||
{% elseif team == 3 %} | ||
(Blue) | ||
{% elseif team == 4 %} | ||
(Purple) | ||
{% elseif team == 5 %} | ||
(Observer) | ||
{% if me.canEdit(server) or me.canDelete(server) %} | ||
<ul class="c-servers__server__options is-horizontal has-no-padding"> | ||
{% if me.canEdit(server) %} | ||
<li> | ||
<a class="server-refresh" href="{{ path('server_show', { server: server.id, forced: 1 }) }}"> | ||
<i class="fa fa-refresh"></i> | ||
</a> | ||
</li> | ||
<li>{{ link_to(server, 'pencil', 'edit') }}</li> | ||
{% endif %} | ||
|
||
{% if me.canDelete(server) %} | ||
<li>{{ link_to(server, 'minus', 'delete') }}</li> | ||
{% endif %} | ||
</ul> | ||
{% endif %} | ||
{% endmacro %} | ||
</header> | ||
|
||
<p class="c-servers__server__info__address">{{ server.address }}</p> | ||
<p class="c-servers__server__info__playerCount">Player count: {{ server.numPlayers }}</p> | ||
<small class="c-servers__server__info__updated">Updated {{ server.lastUpdate | humanTime }}</small> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
$(document).ready(function() { | ||
if (!$.fn.select2) { | ||
return; | ||
} | ||
|
||
$(".js-select__timezone").select2(); | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters