diff --git a/templates/default/main/index.html.twig b/templates/default/main/index.html.twig index fdc4ed5..576b599 100644 --- a/templates/default/main/index.html.twig +++ b/templates/default/main/index.html.twig @@ -40,7 +40,9 @@ #{{ server.crc32server }} {% endif %} - {{ server.info.Map }} + + {{ server.info.Map }} + {{ server.added | format_ago }} @@ -48,12 +50,34 @@ - {{ server.online | format_ago }} + {% if server.status %} + {{ 'now' | trans }} + {% else %} + {{ server.online | format_ago }} + {% endif %} - {{ server.connections }}{#{{ server.info.Players }}#} - {{ server.info.MaxPlayers }} - {{ server.info.Bots }} + + {% if server.status %} + {{ server.connections }}{#{{ server.info.Players }}#} + {% else %} + - + {% endif %} + + + {% if server.status %} + {{ server.info.MaxPlayers }} + {% else %} + - + {% endif %} + + + {% if server.status %} + {{ server.info.Bots }} + {% else %} + - + {% endif %} +