diff options
author | André Glüpker <git@wgmd.de> | 2021-02-16 18:19:42 +0100 |
---|---|---|
committer | André Glüpker <git@wgmd.de> | 2021-02-16 18:19:42 +0100 |
commit | c91e9cb8d8e6f0bf5edc0f5768f8dfd50a23d44f (patch) | |
tree | ffeb133b45336bd8a342797614169e6c2ffe0ad6 /templates | |
parent | c4db6130dcf2c78b3b0e05bc98d9a830a51dbfe3 (diff) | |
download | steam-c91e9cb8d8e6f0bf5edc0f5768f8dfd50a23d44f.tar.gz steam-c91e9cb8d8e6f0bf5edc0f5768f8dfd50a23d44f.tar.bz2 steam-c91e9cb8d8e6f0bf5edc0f5768f8dfd50a23d44f.zip |
Show some stats and have links on premade finder
Diffstat (limited to 'templates')
-rw-r--r-- | templates/lobby_html.jinja | 2 | ||||
-rw-r--r-- | templates/premades_html.jinja | 29 | ||||
-rw-r--r-- | templates/server_html.jinja | 2 |
3 files changed, 22 insertions, 11 deletions
diff --git a/templates/lobby_html.jinja b/templates/lobby_html.jinja index 468a2fa..0564e55 100644 --- a/templates/lobby_html.jinja +++ b/templates/lobby_html.jinja @@ -78,7 +78,7 @@ <span class="info">(non-steam)</span> {% else %} {% if profile['personastate'] == 0 %} - <span class="{{ state }}">Offline since {{ (current_time - profile['lastlogoff']) | display_time }}</span> + <span class="{{ state }}">Offline since {{ (current_time - profile['lastlogoff']) | display_age }}</span> {% else %} <span class="{{ state }}">{{ states[profile['personastate']] }}</span> {% endif %} 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 %} diff --git a/templates/server_html.jinja b/templates/server_html.jinja index 5b530e5..3519dde 100644 --- a/templates/server_html.jinja +++ b/templates/server_html.jinja @@ -43,7 +43,7 @@ <tr> <td class="name">{{ player['name'] }}</td> <td>{{ player['score'] }}</td> - <td>{{ display_time(player['duration']) }}</td> + <td>{{ display_age(player['duration']) }}</td> </tr> {% endfor %} </table> |