diff --git a/vrobbler/apps/scrobbles/views.py b/vrobbler/apps/scrobbles/views.py index a89df19..ea200a7 100644 --- a/vrobbler/apps/scrobbles/views.py +++ b/vrobbler/apps/scrobbles/views.py @@ -759,6 +759,9 @@ class ScrobbleStatusView(LoginRequiredMixin, TemplateView): data["playing"] = progress_plays.filter( board_game__isnull=False ).first() + data["sporting"] = progress_plays.filter( + sport_event__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 a663e1c..6a0a6eb 100644 --- a/vrobbler/templates/scrobbles/status.html +++ b/vrobbler/templates/scrobbles/status.html @@ -104,5 +104,19 @@ {% endif %} +

Sporting

+
+ {% if sporting %} +
+

{{sporting.media_obj}}

+ {% if sporting.media_obj.subtitle %}

{{sporting.media_obj.subtitle}}

{% endif %} +
+

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

+ {% else %} +
+

Nothing

+
+ {% endif %} +