summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Glüpker <git@wgmd.de>2021-02-16 17:50:50 +0100
committerAndré Glüpker <git@wgmd.de>2021-02-16 17:50:50 +0100
commit35cbe04e67ca59a657bc685f0764a7737115333d (patch)
treef0d5d6d4a8d89cdc5713184248b081d95338f02f
parent7ef47bbe538d23e49f1a89e663e5a91a7b50aa1b (diff)
downloadsteam-35cbe04e67ca59a657bc685f0764a7737115333d.tar.gz
steam-35cbe04e67ca59a657bc685f0764a7737115333d.tar.bz2
steam-35cbe04e67ca59a657bc685f0764a7737115333d.zip
Show age of accounts on premadefinder
-rwxr-xr-xmain.py1
-rw-r--r--static/style.css9
-rw-r--r--templates/premades_html.jinja15
3 files changed, 25 insertions, 0 deletions
diff --git a/main.py b/main.py
index 1583184..ae15acf 100755
--- a/main.py
+++ b/main.py
@@ -167,6 +167,7 @@ def premades():
steamids=steamids,
profiles=premadedata,
display_time=display_time,
+ current_time = time.time(),
connections=connections
)
diff --git a/static/style.css b/static/style.css
index 9544769..a4837ee 100644
--- a/static/style.css
+++ b/static/style.css
@@ -85,6 +85,15 @@ div.player {
padding: 0;
/* border: 1px solid black; */
}
+div.miniplayer {
+ display: inline-block;
+ width: 200px;
+ min-height: 50px;
+ text-align: center;
+ margin: 2px 5px 2px 5px;
+ padding: 0;
+ /* border: 1px solid black; */
+}
/* Intern box of playerbox */
div.interna {
display: inline-block;
diff --git a/templates/premades_html.jinja b/templates/premades_html.jinja
index 3bf6b55..c9ad464 100644
--- a/templates/premades_html.jinja
+++ b/templates/premades_html.jinja
@@ -129,5 +129,20 @@
</div>
{% endif %}
+ <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 />{{ display_time(current_time - profiles[steamid]['timecreated']) }}
+ {% endif %}
+ </a>
+ </div>
+ {% endfor %}
+
</body>
</html>