2026-02-05 14:20:03 +03:00
|
|
|
<div
|
|
|
|
|
class="block steam"
|
|
|
|
|
hx-get="/m/steam"
|
|
|
|
|
hx-trigger="every 1m"
|
|
|
|
|
hx-swap="outerHTML"
|
2026-02-06 18:52:55 +03:00
|
|
|
hx-headers='{
|
2026-02-06 23:24:41 +03:00
|
|
|
"If-Modified-Since": {{ steam.last_updated | int }},
|
|
|
|
|
"If-None-Match": "{{ steam.etag }}"
|
2026-02-06 18:52:55 +03:00
|
|
|
}'
|
2026-02-05 14:20:03 +03:00
|
|
|
>
|
2026-02-04 00:34:16 +03:00
|
|
|
<h2><a href="https://steamcommunity.com/id/risdeveau">Steam</a></h2>
|
|
|
|
|
|
2026-02-06 23:24:41 +03:00
|
|
|
{% if steam.caches.recent.data.games %}
|
2026-02-04 00:34:16 +03:00
|
|
|
<h3>Recently played:</h3>
|
2026-02-06 23:24:41 +03:00
|
|
|
{% for g in steam.caches.recent.data.games %}
|
2026-02-04 00:34:16 +03:00
|
|
|
<a href="https://store.steampowered.com/app/{{ g.appid }}" class="block">
|
|
|
|
|
<picture>
|
|
|
|
|
<source media="(max-width: 45rem)" srcset="{{ g.v_cover }}">
|
|
|
|
|
<img src="{{ g.h_cover }}">
|
|
|
|
|
</picture>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<strong>{{ g.name }}</strong>
|
|
|
|
|
<p>Played last 2 weeks: {{ tmsmp(g.playtime_2weeks*60) }}
|
|
|
|
|
<p>
|
|
|
|
|
Total played:
|
|
|
|
|
{{ tmsmp(g.playtime_linux_forever*60) }} (<abbr title="On Linux">L</abbr>) +
|
|
|
|
|
{{ tmsmp(g.playtime_windows_forever*60) }} (<abbr title="On Windows">W</abbr>) =
|
|
|
|
|
{{ tmsmp(g.playtime_forever*60) }} (<abbr title="Total">T</abbr>)
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</a>
|
|
|
|
|
{% endfor %}
|
2026-02-06 23:24:41 +03:00
|
|
|
<p>Last updated: {{ rtmsmp(steam.caches.recent.last_updated) }} ago</p>
|
2026-02-04 00:34:16 +03:00
|
|
|
{% endif %}
|
|
|
|
|
|
2026-02-06 23:24:41 +03:00
|
|
|
{% if steam.caches.owned.data.games %}
|
2026-02-04 00:34:16 +03:00
|
|
|
<h3>Top played games:</h3>
|
2026-02-06 23:24:41 +03:00
|
|
|
{% set owned_games = steam.caches.owned.data.games | sort(attribute="playtime_forever", reverse=true) %}
|
2026-02-04 00:34:16 +03:00
|
|
|
{% for g in owned_games[:5] %}
|
|
|
|
|
<a href="https://store.steampowered.com/app/{{ g.appid }}" class="block">
|
|
|
|
|
<picture>
|
|
|
|
|
<source media="(max-width: 45rem)" srcset="{{ g.v_cover }}">
|
|
|
|
|
<img src="{{ g.h_cover }}">
|
|
|
|
|
</picture>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<strong>{{ g.name }}</strong>
|
|
|
|
|
<p>
|
|
|
|
|
Total played:
|
|
|
|
|
{{ tmsmp(g.playtime_linux_forever*60) }} (<abbr title="On Linux">L</abbr>) +
|
|
|
|
|
{{ tmsmp(g.playtime_windows_forever*60) }} (<abbr title="On Windows">W</abbr>) =
|
|
|
|
|
{{ tmsmp(g.playtime_forever*60) }} (<abbr title="Total">T</abbr>)
|
|
|
|
|
</p>
|
|
|
|
|
{% if g.rtime_last_played != 0 %}
|
|
|
|
|
<p>Last played: {{ utmsmp(g.rtime_last_played) }}</p>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</div>
|
|
|
|
|
</a>
|
|
|
|
|
{% endfor %}
|
2026-02-06 23:24:41 +03:00
|
|
|
<p>Last updated: {{ rtmsmp(steam.caches.owned.last_updated) }} ago</p>
|
2026-02-04 00:34:16 +03:00
|
|
|
{% endif %}
|
|
|
|
|
</div>
|