mirror of
https://github.com/YGGverse/HLState.git
synced 2026-03-31 17:15:39 +00:00
implement online history
This commit is contained in:
parent
2071796a07
commit
272d219066
8 changed files with 495 additions and 10 deletions
19
templates/default/rss/online.xml.twig
Normal file
19
templates/default/rss/online.xml.twig
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||
<channel>
|
||||
<atom:link href="{{ url('main_index') }}" rel="self" type="application/rss+xml"></atom:link>
|
||||
<title>{{ server.host }}:{{ server.port }} - {{ app.name }}</title>
|
||||
<link>{{ url('main_index') }}</link>
|
||||
{% for value in online %}
|
||||
<item>
|
||||
<title>{{ 'Online changed!' | trans }}</title>
|
||||
<guid>{{ value.id }}</guid>
|
||||
<description>
|
||||
{{ 'Players' | trans }}: {{ value.players }}
|
||||
{{ 'Bots' | trans }}: {{ value.bots }}
|
||||
{{ 'Total' | trans }}: {{ value.total }}
|
||||
</description>
|
||||
</item>
|
||||
{% endfor %}
|
||||
</channel>
|
||||
</rss>
|
||||
Loading…
Add table
Add a link
Reference in a new issue