From 323bbe0161d14c206f27744f0ab46f03cc0e2db1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Gl=C3=BCpker?= Date: Fri, 23 Mar 2018 22:27:20 +0100 Subject: Introduce new page with serverinfo --- templates/server_html.jinja | 61 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 templates/server_html.jinja (limited to 'templates/server_html.jinja') diff --git a/templates/server_html.jinja b/templates/server_html.jinja new file mode 100644 index 0000000..3f918a8 --- /dev/null +++ b/templates/server_html.jinja @@ -0,0 +1,61 @@ + + + CS:GO Lobbylinkfinder + + + + + + + + + + {% for name, info in servers.items() %} +
+ + {% if info['data'] %} +
+ + + +
    +
  • {{ info['data']['map'] }}
  • +
  • {{ info['data']['players'] }} / {{ info['data']['playersmax'] }}
  • +
+ + {% if info['data']['players'] %} + + + + + + + {% for player in info['data']['player_info'] | sort(attribute='score', reverse=True) %} + + + + + + {% endfor %} +
NameScoreTime
{{ player['name'] }}{{ player['score'] }}{{ player['duration'] }}s
+ {% endif %} + +
+ + {% else %} + This server did not respond in time. + {% endif %} +
+ {% endfor %} + + + + +