From 1585395e7e530665c565b88fea15cbea68d3a88d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Gl=C3=BCpker?= Date: Sun, 1 Oct 2017 14:50:19 +0200 Subject: Initial public release --- templates/lobby_html.jinja | 100 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 templates/lobby_html.jinja (limited to 'templates/lobby_html.jinja') diff --git a/templates/lobby_html.jinja b/templates/lobby_html.jinja new file mode 100644 index 0000000..fcf440b --- /dev/null +++ b/templates/lobby_html.jinja @@ -0,0 +1,100 @@ + + CS:GO Lobbylinkfinder + + + + + + + + + {% with messages = get_flashed_messages() %} + {% if messages %} + + {% endif %} + {% endwith %} + + {# avatar: 32x32, avatarmedium: 64x64, avatarfull: 184x184 #} + + {% for steamid,profile in steamids.items() %} + {% if profile['gameextrainfo'] %}{% set state = "Ingame" %}{% else %}{% set state = states[profile['personastate']].lower().replace(' ', '') %}{% endif %} + +
+ +
+ {# Ingame (Steam), Ingame (Nonsteam), Offline/Other #} + {% if profile['gameid'] %} + {{ profile['gameextrainfo'] }} + {% if profile['gameserverip'] not in serverinfo %} + {# No serverinfo -> Display game logo #} + + {% endif %} +
+ {% if profile['lobbysteamid'] %} + + {% elif profile['gameserverip'] %} + {# playing on a server, got info? #} + {% if serverinfo[profile['gameserverip']] %} +
+ {% set game = serverinfo[profile['gameserverip']]['game'] %} + {% set servername = serverinfo[profile['gameserverip']]['name'] %} + {% set mapname = serverinfo[profile['gameserverip']]['map'] %} + {% set players = serverinfo[profile['gameserverip']]['players'] %} + {% set playersmax = serverinfo[profile['gameserverip']]['playersmax'] %} + {% if game != profile['gameextrainfo'] %} + {{ game }}
+ {% endif %} + {{ servername }}
+ {{ mapname }} ({{ players }}/{{ playersmax }}) +
+ {% endif %} + + {% endif %} + {% elif profile['gameextrainfo'] %} + {{ profile['gameextrainfo'] }}
+ (non-steam) + {% else %} + {% if profile['personastate'] == 0 %} + Offline since {{ display_time(current_time - profile['lastlogoff']) }} + {% else %} + {{ states[profile['personastate']] }} + {% endif %} + {% if profile['communityvisibilitystate'] == 1 %} +
Profile private + {% endif %} + {% endif %} +
+
+ {% endfor %} + + {% if steamids['76561197963063991'] %} +

+ Falls dir hier Accounts fehlen oder du Vorschläge hast oder hier nicht genannt werden willst, + dann wende dich an Penguin! +

+ {% endif %} + + + + +