[scrobbles] Add sports to the status
This commit is contained in:
@ -759,6 +759,9 @@ class ScrobbleStatusView(LoginRequiredMixin, TemplateView):
|
|||||||
data["playing"] = progress_plays.filter(
|
data["playing"] = progress_plays.filter(
|
||||||
board_game__isnull=False
|
board_game__isnull=False
|
||||||
).first()
|
).first()
|
||||||
|
data["sporting"] = progress_plays.filter(
|
||||||
|
sport_event__isnull=False
|
||||||
|
).first()
|
||||||
|
|
||||||
long_plays = user_scrobble_qs.filter(
|
long_plays = user_scrobble_qs.filter(
|
||||||
long_play_complete=False, played_to_completion=True
|
long_play_complete=False, played_to_completion=True
|
||||||
|
|||||||
@ -104,5 +104,19 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
<h3>Sporting</h3>
|
||||||
|
<div class="sporting">
|
||||||
|
{% if sporting %}
|
||||||
|
<div class="titles">
|
||||||
|
<p><a href="{{sporting.media_obj.get_absolute_url}}">{{sporting.media_obj}}</a></p>
|
||||||
|
{% if sporting.media_obj.subtitle %}<p><em><a href="{{sporting.media_obj.subtitle.get_absolute_url}}">{{sporting.media_obj.subtitle}}</a></em></p>{% endif %}
|
||||||
|
</div>
|
||||||
|
<p><small>{{sporting.timestamp|naturaltime}} from {{sporting.source}}</small></p>
|
||||||
|
{% else %}
|
||||||
|
<div class="titles">
|
||||||
|
<p>Nothing</p>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user