mirror of
https://github.com/YGGverse/hlstate-rs.git
synced 2026-04-02 10:05:31 +00:00
implement game event subscriptions via rss
This commit is contained in:
parent
31c31d2106
commit
28c64036ce
5 changed files with 155 additions and 20 deletions
|
|
@ -2,11 +2,11 @@
|
|||
{% block content %}
|
||||
<h2>Game</h2>
|
||||
{% if servers %}
|
||||
<form name="subscribe" method="get" action="/">
|
||||
<form name="rss" method="get" action="/rss">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
{# @TODO subscribe<th></th>#}
|
||||
<th></th>
|
||||
<th>Address</th>
|
||||
<th>Host</th>
|
||||
<th>Ping</th>
|
||||
|
|
@ -26,7 +26,7 @@
|
|||
</tbody>
|
||||
{% for server in servers %}
|
||||
<tr>
|
||||
{# @TODO subscribe<td><input type="checkbox" name="server[]" value="{{ server.address }}" /></td>#}
|
||||
<td><input type="checkbox" name="server[]" value="{{ server.address }}" /></td>
|
||||
<td>{{ server.address }}</td>
|
||||
<td>{{ server.host }}</td>
|
||||
<td>{{ server.ping }}</td>
|
||||
|
|
@ -45,9 +45,12 @@
|
|||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{# @TODO subscribe
|
||||
<input type="number" name="online" value="1" />
|
||||
<input type="submit" value="Subscribe" />#}
|
||||
<fieldset>
|
||||
<label>
|
||||
min. online: <input type="number" name="online" min="0" value="1" />
|
||||
</label>
|
||||
<input type="submit" value="RSS" />
|
||||
</fieldset>
|
||||
</form>
|
||||
{% else %}
|
||||
<div>
|
||||
|
|
|
|||
|
|
@ -94,6 +94,20 @@
|
|||
max-width: var(--container-max-width);
|
||||
}
|
||||
|
||||
main > form > fieldset {
|
||||
border: 0;
|
||||
margin: 16px 0;
|
||||
}
|
||||
|
||||
main > form > fieldset input {
|
||||
padding: 0 4px;
|
||||
}
|
||||
|
||||
main > form > fieldset input[type="number"] {
|
||||
margin: 0 4px;
|
||||
max-width: 36px;
|
||||
}
|
||||
|
||||
footer {
|
||||
display: block;
|
||||
margin: 16px auto;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue