This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
'info',
|
||||
'contacts',
|
||||
'listenbrainz',
|
||||
'steam',
|
||||
'donate',
|
||||
'88x31'
|
||||
) %}
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
<div class="block steam">
|
||||
<h2><a href="https://steamcommunity.com/id/risdeveau">Steam</a></h2>
|
||||
|
||||
<h3>Recently played:</h3>
|
||||
{% for g in recent.games %}
|
||||
<a href="https://store.steampowered.com/app/{{ g.appid }}" class="block">
|
||||
<img src="{{ g.img_icon_url }}"/>
|
||||
|
||||
<div>
|
||||
<strong>{{ g.name }}</strong>
|
||||
<p>Played last 2 weeks: {{ tmsmp(g.playtime_2weeks) }}
|
||||
<p>
|
||||
Total played:
|
||||
{{ tmsmp(g.playtime_linux_forever) }} (<abbr title="On Linux">L</abbr>) +
|
||||
{{ tmsmp(g.playtime_windows_forever) }} (<abbr title="On Windows">W</abbr>) =
|
||||
{{ tmsmp(g.playtime_forever) }} (<abbr title="Total">T</abbr>)
|
||||
</p>
|
||||
</div>
|
||||
</a>
|
||||
{% endfor %}
|
||||
|
||||
<h3>Top played games:</h3>
|
||||
{% set owned_games = owned.games | sort(attribute="playtime_forever", reverse=true) %}
|
||||
{% for g in owned_games[:5] %}
|
||||
<a href="https://store.steampowered.com/app/{{ g.appid }}" class="block">
|
||||
<img src="{{ g.img_icon_url }}"/>
|
||||
|
||||
<div>
|
||||
<strong>{{ g.name }}</strong>
|
||||
{% if g.playtime_2weeks %}
|
||||
<p>Played last 2 weeks: {{ tmsmp(g.playtime_2weeks) }}
|
||||
{% endif %}
|
||||
<p>
|
||||
Total played:
|
||||
{{ tmsmp(g.playtime_linux_forever) }} (<abbr title="On Linux">L</abbr>) +
|
||||
{{ tmsmp(g.playtime_windows_forever) }} (<abbr title="On Windows">W</abbr>) =
|
||||
{{ tmsmp(g.playtime_forever) }} (<abbr title="Total">T</abbr>)
|
||||
</p>
|
||||
{% if g.rtime_last_played != 0 %}
|
||||
<p>Last played: {{ rtmsmp(g.rtime_last_played) }}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
Reference in New Issue
Block a user