summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>