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/error.jinja | 16 +++++++ templates/lobby_html.jinja | 100 +++++++++++++++++++++++++++++++++++++++++ templates/premades_html.jinja | 102 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 218 insertions(+) create mode 100644 templates/error.jinja create mode 100644 templates/lobby_html.jinja create mode 100644 templates/premades_html.jinja (limited to 'templates') diff --git a/templates/error.jinja b/templates/error.jinja new file mode 100644 index 0000000..60c185f --- /dev/null +++ b/templates/error.jinja @@ -0,0 +1,16 @@ + + + CS:GO Lobbylinkfinder + + + + +
+

Es ist ein Fehler aufgetreten!

+
{{ error }}
+ Zurück + Zur Startseite +
+ + + 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 %} + + + + +