Files
vrobbler/vrobbler/templates/scrobbles/_row.html
Colin Powell c6b1e42d7a
All checks were successful
build / test (push) Successful in 1m59s
[scrobbles] Use IDs not UUIDs in URLs
2026-06-18 11:25:57 -04:00

16 lines
1.1 KiB
HTML

{% load humanize %}
{% load naturalduration %}
<tr {% if scrobble.in_progress %}class="in-progress"{% endif %}>
<td>{% if scrobble.in_progress %}<a href="{{scrobble.get_absolute_url}}">{{scrobble.media_obj.strings.verb}} now</a> | <a class="right" href="{% url "scrobbles:finish" scrobble.id %}">Finish</a>{% else %}<a href="{{scrobble.get_absolute_url}}">{{scrobble.local_timestamp|naturaltime}}</a>{% endif %}</td>
<td>
{% if scrobble.media_type in "Task" %}
<p><em><a href="{{scrobble.media_obj.get_absolute_url}}">{{scrobble.media_obj.title|truncatechars_html:45}} - {% if scrobble.logdata %}{% if scrobble.logdata.title %}{{scrobble.logdata.title}}{% endif %}{% endif %}</a></em></p>
{% elif scrobble.media_type == "GeoLocation" %}
<p><a href="{{scrobble.media_obj.get_absolute_url}}">{{scrobble.media_obj|truncatechars_html:45}} - {{scrobble.logdata.movement_type}}</a></>
{% else %}
<p><a href="{{scrobble.media_obj.get_absolute_url}}">{{scrobble.media_obj|truncatechars_html:45}}</a></>
{% endif %}
</td>
<td>{{scrobble.elapsed_time|natural_duration}}</td>
</tr>