mirror of
https://github.com/YGGverse/HLState.git
synced 2026-03-31 17:15:39 +00:00
implement player stats
This commit is contained in:
parent
2955cbdabb
commit
f1c08a20b9
4 changed files with 171 additions and 10 deletions
15
templates/default/rss/players.xml.twig
Normal file
15
templates/default/rss/players.xml.twig
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?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 }} - {{ 'Players' | trans }} - {{ app.name }}</title>
|
||||
<link>{{ url('main_index') }}</link>
|
||||
{% for player in players %}
|
||||
<item>
|
||||
<title>{{ player.name }} {{ 'joined game!' | trans }}</title>
|
||||
<guid>{{ player.id }}</guid>
|
||||
<pubDate>{{ player.joined | date("D, d M Y h:i:s O") }}</pubDate>
|
||||
</item>
|
||||
{% endfor %}
|
||||
</channel>
|
||||
</rss>
|
||||
Loading…
Add table
Add a link
Reference in a new issue