diff options
-rwxr-xr-x | main.py | 1 | ||||
-rw-r--r-- | static/style.css | 9 | ||||
-rw-r--r-- | templates/premades_html.jinja | 15 |
3 files changed, 25 insertions, 0 deletions
@@ -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> |