Browse Source

fix variable names

main
ghost 10 months ago
parent
commit
7caf84a9f9
  1. 10
      templates/default/rss/online.xml.twig
  2. 2
      templates/default/rss/players.xml.twig

10
templates/default/rss/online.xml.twig

@ -4,15 +4,15 @@ @@ -4,15 +4,15 @@
<atom:link href="{{ url('server_index', { crc32server : server.crc32server }) }}" rel="self" type="application/rss+xml"></atom:link>
<title>#{{ server.crc32server }} - {{ 'Online' | trans }} - {{ app.name }}</title>
<link>{{ url('server_index', { crc32server : server.crc32server, _fragment : 'online' }) }}</link>
{% for value in server.online %}
{% for online in server.online %}
<item>
<title>{{ 'Online changed!' | trans }}</title>
<guid>{{ url('server_index', { crc32server : server.crc32server, guid: value.id, _fragment : 'online' }) }}</guid>
<guid>{{ url('server_index', { crc32server : server.crc32server, guid: online.id, _fragment : 'online' }) }}</guid>
<link>{{ url('server_index', { crc32server : server.crc32server, _fragment : 'online' }) }}</link>
<description>
{{ 'Players' | trans }}: {{ value.players }}
{{ 'Bots' | trans }}: {{ value.bots }}
{{ 'Total' | trans }}: {{ value.total }}
{{ 'Players' | trans }}: {{ online.players }}
{{ 'Bots' | trans }}: {{ online.bots }}
{{ 'Total' | trans }}: {{ online.total }}
</description>
</item>
{% endfor %}

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

@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
{% for player in server.players %}
<item>
<title>{{ player.name }} {{ 'joined' | trans }} {{ app.name }}!</title>
<guid>{{ url('server_index', { crc32server : server.crc32server, guid: value.id, _fragment : 'players' }) }}</guid>
<guid>{{ url('server_index', { crc32server : server.crc32server, guid: player.id, _fragment : 'players' }) }}</guid>
<link>{{ url('server_index', { crc32server : server.crc32server, _fragment : 'players' }) }}</link>
<pubDate>{{ player.joined | date("D, d M Y h:i:s O") }}</pubDate>
</item>

Loading…
Cancel
Save