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/lobby_html.jinja | 1 + templates/premades_html.jinja | 1 + templates/server_html.jinja | 61 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 templates/server_html.jinja (limited to 'templates') diff --git a/templates/lobby_html.jinja b/templates/lobby_html.jinja index a9598bc..3f4fed4 100644 --- a/templates/lobby_html.jinja +++ b/templates/lobby_html.jinja @@ -11,6 +11,7 @@ diff --git a/templates/premades_html.jinja b/templates/premades_html.jinja index 565ef21..d08da8f 100644 --- a/templates/premades_html.jinja +++ b/templates/premades_html.jinja @@ -9,6 +9,7 @@ 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 %} + + + + +