HLState/templates/default/rss/players.xml.twig

15 lines
745 B
Twig
Raw Normal View History

2024-01-07 19:20:13 +02:00
<?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>
2024-01-07 19:48:20 +02:00
<title>{{ player.name }} {{ 'joined' | trans }} {{ app.name }}!</title>
<guid>player#{{ player.id }}</guid>
2024-01-07 19:20:13 +02:00
<pubDate>{{ player.joined | date("D, d M Y h:i:s O") }}</pubDate>
</item>
{% endfor %}
</channel>
</rss>