[scrobbles] Add working to status page
This commit is contained in:
@ -791,6 +791,7 @@ class ScrobbleStatusView(LoginRequiredMixin, TemplateView):
|
|||||||
data["participating"] = progress_plays.filter(
|
data["participating"] = progress_plays.filter(
|
||||||
life_event__isnull=False
|
life_event__isnull=False
|
||||||
).first()
|
).first()
|
||||||
|
data["working"] = progress_plays.filter(task__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
|
||||||
|
|||||||
@ -149,5 +149,20 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
<hr />
|
||||||
|
<h3>Working</h3>
|
||||||
|
<div class="working">
|
||||||
|
{% if working %}
|
||||||
|
<div class="titles">
|
||||||
|
<p><a href="{{working.media_obj.get_absolute_url}}">{{working.media_obj}}</a></p>
|
||||||
|
{% if working.media_obj.subtitle %}<p><em><a href="{{working.media_obj.subtitle.get_absolute_url}}">{{working.media_obj.subtitle}}</a></em></p>{% endif %}
|
||||||
|
</div>
|
||||||
|
<p><small>{{working.timestamp|naturaltime}} from {{working.source}}</small></p>
|
||||||
|
{% else %}
|
||||||
|
<div class="titles">
|
||||||
|
<p>Nothing</p>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user