diff options
Diffstat (limited to 'templates/premades_html.jinja')
-rw-r--r-- | templates/premades_html.jinja | 29 |
1 files changed, 20 insertions, 9 deletions
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 @@ <hr /> - {% for steamid in steamids %} - {# {{ profiles[steamid] }} #} - <div class="miniplayer"> - <a href="{{ profiles[steamid]['profileurl'] }}"> - <img src="{{ profiles[steamid]['avatarmedium'] }}"><br /> - {{ profiles[steamid]['personaname']|e }} - {% if 'timecreated' in profiles[steamid] %} - <br />{{ (current_time - profiles[steamid]['timecreated']) | display_time }} + {% for profile in profiles.values() %} + <div class="player"> + <div class="interna"> + <a href="{{ profile['profileurl'] }}"> + <span class="steamname {{ state }}">{{ profile['personaname']|e }}</span><br /> + <img src="{{ profile['avatarmedium'] }}" class="avatar {{ state }}" /><br /> + </a> + </div> + <div class="interna stats"> + {% if profile['communityvisibilitystate'] == 3 %} + Account erstellt am: {{ profile['timecreated'] | display_time }}<br /> + Spiele in Besitz: {{ profile['_ownedPlayedGames']|e }}<br /> + {% if profile['_userstats'] %} + Spielzeit: {{ profile['_userstats']['total_time_played']|display_age }}<br /> + {% else %} + Spielzeit: N/A + {% endif %} + {% else %} + <span class="error">Profile private</span> {% endif %} - </a> + </div> </div> {% endfor %} |