Fix redundant tick field

This commit is contained in:
2023-03-12 10:54:09 -04:00
parent f6c1a459d4
commit 95b625cec2
31 changed files with 336 additions and 104 deletions

View File

@ -4,9 +4,9 @@
{% block head_extra %}
<style>
dl { width: 260px; float:left; margin-right: 10px; }
dl { width: 210px; float:left; margin-right: 10px; }
dt a { color:white; text-decoration: none; font-size:smaller; }
img { height:200px; width: 250px; object-fit: cover; }
img { height:200px; width: 200px; object-fit: cover; }
dd .right { float:right; }
</style>
{% endblock %}
@ -18,25 +18,18 @@
{% if view == 'grid' %}
<div>
{% for media in in_progress %}
{% if media.hltb_cover %}
<dl>
<dt><a href="{{media.get_absolute_url}}">{{media.title}}</a></dt>
{% if media.hltb_cover %}
<dd><a href="{{media.get_absolute_url}}"><img src="{{media.hltb_cover.url}}" width=200 height=200 /></a></dd>
<dd>
<a type="button" class="btn btn-sm btn-primary" href="{{media.get_start_url}}">Resume</a>
<a type="button" class="right btn btn-sm " href="{{media.get_longplay_finish_url}}">Finish</a>
</dd>
</dl>
{% elif media.cover %}
<dl>
<dt><a href="{{media.get_absolute_url}}">{{media.title}}</a></dt>
{% else %}
<dd><a href="{{media.get_absolute_url}}"><img src="{{media.cover.url}}" style="width: 200px; height: 200px; object-fit:cover; " /></a></dd>
{% endif %}
<dd>
<a type="button" class="btn btn-sm btn-primary" href="{{media.get_start_url}}">Resume</a>
{% if media.is_long_play_in_progress %}Playing{% else %}<a type="button" class="btn btn-sm btn-primary" href="{{media.get_start_url}}">Resume</a>{% endif %}
<a type="button" class="right btn btn-sm " href="{{media.get_longplay_finish_url}}">Finish</a>
</dd>
</dl>
{% endif %}
{% endfor %}
</div>
{% else %}

View File

@ -62,7 +62,7 @@
<tr>
<td>{{scrobble.timestamp}}</td>
<td>{% if scrobble.long_play_complete == True %}Yes{% endif %}</td>
<td>{% if scrobble.in_progress %}Now playing{% else %}{{scrobble.playback_position|natural_duration}}{% endif %}</td>
<td>{% if scrobble.in_progress %}Now playing{% else %}{{scrobble.playback_position_seconds|natural_duration}}{% endif %}</td>
<td>{% for platform in scrobble.video_game.platforms.all %}<a href="{{platform.get_absolute_url}}">{{platform}}</a>{% if not forloop.last %}, {% endif %}{% endfor %}</td>
</tr>
{% endfor %}