mirror of
https://github.com/YGGverse/HLState.git
synced 2025-02-05 19:54:13 +00:00
add server descriptions support
This commit is contained in:
parent
a519fee8e9
commit
c04a177847
2
.env
2
.env
@ -43,7 +43,7 @@ MESSENGER_TRANSPORT_DSN=doctrine://default?auto_setup=0
|
|||||||
# HLState
|
# HLState
|
||||||
|
|
||||||
# Application version, used for API and media cache
|
# Application version, used for API and media cache
|
||||||
APP_VERSION="1.0.1"
|
APP_VERSION="1.1.0"
|
||||||
|
|
||||||
# Application name
|
# Application name
|
||||||
APP_NAME="HLState"
|
APP_NAME="HLState"
|
||||||
|
@ -65,6 +65,11 @@ table td
|
|||||||
padding: 4px;
|
padding: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ul
|
||||||
|
{
|
||||||
|
margin-left: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
header
|
header
|
||||||
{
|
{
|
||||||
display: block;
|
display: block;
|
||||||
|
@ -173,6 +173,7 @@ class MainController extends AbstractController
|
|||||||
'crc32server' => $crc32server,
|
'crc32server' => $crc32server,
|
||||||
'host' => $hlserver->host,
|
'host' => $hlserver->host,
|
||||||
'port' => $hlserver->port,
|
'port' => $hlserver->port,
|
||||||
|
'description' => $hlserver->description,
|
||||||
'aliases' => $aliases,
|
'aliases' => $aliases,
|
||||||
'info' => $info,
|
'info' => $info,
|
||||||
'session' => $session,
|
'session' => $session,
|
||||||
|
@ -54,6 +54,20 @@
|
|||||||
<h2>#{{ server.crc32server }}</h2>
|
<h2>#{{ server.crc32server }}</h2>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<hr />
|
<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>
|
<h3 class="padding-y-8-px text-align-right">{{ 'Address' | trans }}</h3>
|
||||||
<div>
|
<div>
|
||||||
{{ server.host }}:{{ server.port }}
|
{{ server.host }}:{{ server.port }}
|
||||||
@ -74,7 +88,7 @@
|
|||||||
{% if server.aliases %}
|
{% if server.aliases %}
|
||||||
<h3 class="padding-y-8-px text-align-right">{{ 'Alias' | trans }}</h3>
|
<h3 class="padding-y-8-px text-align-right">{{ 'Alias' | trans }}</h3>
|
||||||
{% for alias in server.aliases %}
|
{% for alias in server.aliases %}
|
||||||
<div>
|
<div class="margin-y-8-px">
|
||||||
{{ alias.host }}:{{ alias.port }}
|
{{ alias.host }}:{{ alias.port }}
|
||||||
{% if alias.status %}
|
{% if alias.status %}
|
||||||
<span class="color-success" title="{{ 'Online' | trans }}">
|
<span class="color-success" title="{{ 'Online' | trans }}">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user