From c91e9cb8d8e6f0bf5edc0f5768f8dfd50a23d44f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Gl=C3=BCpker?= Date: Tue, 16 Feb 2021 18:19:42 +0100 Subject: Show some stats and have links on premade finder --- templates/premades_html.jinja | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) (limited to 'templates/premades_html.jinja') diff --git a/templates/premades_html.jinja b/templates/premades_html.jinja index 7a45492..539815a 100644 --- a/templates/premades_html.jinja +++ b/templates/premades_html.jinja @@ -131,16 +131,27 @@
- {% for steamid in steamids %} - {# {{ profiles[steamid] }} #} -
- -
- {{ profiles[steamid]['personaname']|e }} - {% if 'timecreated' in profiles[steamid] %} -
{{ (current_time - profiles[steamid]['timecreated']) | display_time }} + {% for profile in profiles.values() %} +
+ +
+ {% if profile['communityvisibilitystate'] == 3 %} + Account erstellt am: {{ profile['timecreated'] | display_time }}
+ Spiele in Besitz: {{ profile['_ownedPlayedGames']|e }}
+ {% if profile['_userstats'] %} + Spielzeit: {{ profile['_userstats']['total_time_played']|display_age }}
+ {% else %} + Spielzeit: N/A + {% endif %} + {% else %} + Profile private {% endif %} - +
{% endfor %} -- cgit v1.2.3