mirror of
https://github.com/YGGverse/HLState.git
synced 2026-03-31 09:05:44 +00:00
add server descriptions support
This commit is contained in:
parent
a519fee8e9
commit
c04a177847
4 changed files with 22 additions and 2 deletions
|
|
@ -54,6 +54,20 @@
|
|||
<h2>#{{ server.crc32server }}</h2>
|
||||
{% endif %}
|
||||
<hr />
|
||||
{% if server.description.title %}
|
||||
<div class="margin-y-8-px">
|
||||
{{ server.description.title }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if server.description.links %}
|
||||
<div class="margin-y-8-px">
|
||||
<ul>
|
||||
{% for link in server.description.links %}
|
||||
<li class="margin-y-8-px"><a href="{{ link }}">{{ link }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
<h3 class="padding-y-8-px text-align-right">{{ 'Address' | trans }}</h3>
|
||||
<div>
|
||||
{{ server.host }}:{{ server.port }}
|
||||
|
|
@ -74,7 +88,7 @@
|
|||
{% if server.aliases %}
|
||||
<h3 class="padding-y-8-px text-align-right">{{ 'Alias' | trans }}</h3>
|
||||
{% for alias in server.aliases %}
|
||||
<div>
|
||||
<div class="margin-y-8-px">
|
||||
{{ alias.host }}:{{ alias.port }}
|
||||
{% if alias.status %}
|
||||
<span class="color-success" title="{{ 'Online' | trans }}">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue