[#1] Add now playing section to homepage
This commit is contained in:
@ -1,8 +1,17 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Last watched{% endblock %}
|
||||
{% block title %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% if now_playing_list %}
|
||||
<h2>Now playing</h2>
|
||||
<ul>
|
||||
{% for scrobble in now_playing_list %}
|
||||
<li>{{scrobble.timestamp|date:"D, M j Y"}}: <a href="https://www.imdb.com/title/{{scrobble.video.imdb_id}}">{{scrobble.video}}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
<h2>Last scrobbles</h2>
|
||||
<ul>
|
||||
{% for scrobble in object_list %}
|
||||
<li>{{scrobble.timestamp|date:"D, M j Y"}}: <a href="https://www.imdb.com/title/{{scrobble.video.imdb_id}}">{{scrobble.video}}</a></li>
|
||||
|
||||
Reference in New Issue
Block a user