From e386d160e2b2fb26f3f3986584e2368ac5bcecab Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Mon, 13 Mar 2023 15:49:20 -0400 Subject: [PATCH] Fix bad video game templates --- .../templates/videogames/videogame_detail.html | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/vrobbler/templates/videogames/videogame_detail.html b/vrobbler/templates/videogames/videogame_detail.html index 74a9d27..bb1977f 100644 --- a/vrobbler/templates/videogames/videogame_detail.html +++ b/vrobbler/templates/videogames/videogame_detail.html @@ -39,15 +39,13 @@ {% endif %}

- +

{{object.scrobble_set.count}} scrobbles

-

{{object.scrobble_set.last.long_play_seconds|natural_duration}}{% if object.scrobble_set.last.long_play_complete - %} and completed{% else %} spent playing{% endif %}

+

{{object.scrobble_set.last.long_play_seconds|natural_duration}}{% if object.scrobble_set.last.long_play_complete %} and completed{% else %} spent playing{% endif %}

{% if object.scrobble_set.last.long_play_complete == True %} Play again @@ -74,11 +72,8 @@ {{scrobble.timestamp}} {% if scrobble.long_play_complete == True %}Yes{% endif %} - {% if scrobble.in_progress %}Now playing{% else - %}{{scrobble.playback_position_seconds|natural_duration}}{% endif %} - {% for platform in scrobble.video_game.platforms.all %}{{platform}}{% if not forloop.last %}, {% endif - %}{% endfor %} + {% if scrobble.in_progress %}Now playing{% else %}{{scrobble.playback_position_seconds|natural_duration}}{% endif %} + {% for platform in scrobble.video_game.platforms.all %}{{platform}}{% if not forloop.last %}, {% endif %}{% endfor %} {% endfor %} @@ -86,4 +81,4 @@

-{% endblock %} \ No newline at end of file +{% endblock %}