From 24223ebe13bc26a376868c30e4a8db3b15c5c69f Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Tue, 15 Oct 2024 15:27:48 -0400 Subject: [PATCH] [scrobbles] Add working to status page --- vrobbler/apps/scrobbles/views.py | 1 + vrobbler/templates/scrobbles/status.html | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/vrobbler/apps/scrobbles/views.py b/vrobbler/apps/scrobbles/views.py index 35102c7..9500971 100644 --- a/vrobbler/apps/scrobbles/views.py +++ b/vrobbler/apps/scrobbles/views.py @@ -791,6 +791,7 @@ class ScrobbleStatusView(LoginRequiredMixin, TemplateView): data["participating"] = progress_plays.filter( life_event__isnull=False ).first() + data["working"] = progress_plays.filter(task__isnull=False).first() long_plays = user_scrobble_qs.filter( long_play_complete=False, played_to_completion=True diff --git a/vrobbler/templates/scrobbles/status.html b/vrobbler/templates/scrobbles/status.html index c2555b6..73794d8 100644 --- a/vrobbler/templates/scrobbles/status.html +++ b/vrobbler/templates/scrobbles/status.html @@ -149,5 +149,20 @@ {% endif %} +
+

Working

+
+ {% if working %} +
+

{{working.media_obj}}

+ {% if working.media_obj.subtitle %}

{{working.media_obj.subtitle}}

{% endif %} +
+

{{working.timestamp|naturaltime}} from {{working.source}}

+ {% else %} +
+

Nothing

+
+ {% endif %} +