From f9420c7a415dbdb1b9b266fad535337f58fc79f5 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Tue, 14 Mar 2023 18:19:14 -0400 Subject: [PATCH] Cleaning up video and series pages --- vrobbler/templates/videos/series_detail.html | 31 +++++--- vrobbler/templates/videos/video_detail.html | 81 ++++++++++++++------ 2 files changed, 78 insertions(+), 34 deletions(-) diff --git a/vrobbler/templates/videos/series_detail.html b/vrobbler/templates/videos/series_detail.html index d96cf14..7fd8dad 100644 --- a/vrobbler/templates/videos/series_detail.html +++ b/vrobbler/templates/videos/series_detail.html @@ -1,26 +1,37 @@ {% extends "base_list.html" %} {% load static %} -{% block title %}{{object.title}}{% if object.tv_series %} - {{object.tv_series}}{% endif %}{% endblock %} +{% block title %}{{object.name}}{% if object.tv_series %} - {{object.tv_series}}{% endif %}{% endblock %} {% block head_extra %} {% endblock %} {% block lists %} -
- {% if object.cover_image %} -
- {% endif %} +
+
+ {% if object.imdb_rating %}
{{object.imdb_rating}}
{% endif %} + +
- {% if object.plot%} -

{{object.plot|safe|linebreaks|truncatewords:160}}

+ {% if object.plot%}

{{object.plot|safe|linebreaks|truncatewords:160}}

{% endif %}
- {% endif %}

diff --git a/vrobbler/templates/videos/video_detail.html b/vrobbler/templates/videos/video_detail.html index 9cbb810..6aea189 100644 --- a/vrobbler/templates/videos/video_detail.html +++ b/vrobbler/templates/videos/video_detail.html @@ -1,33 +1,76 @@ {% extends "base_list.html" %} {% load static %} -{% block title %}{{object.title}}{% if object.tv_series %} - {{object.tv_series}}{% endif %}{% endblock %} +{% block title %}{{object.title}}{% endblock %} {% block head_extra %} {% endblock %} {% block lists %} -
- {% if object.cover_image %} -
- {% endif %} +
+
+ {% if object.imdb_rating %}
{{object.imdb_rating}}
{% endif %} + + +
- {% if object.overview %} -

{{object.overview}}

- {% endif %} - {% if object.plot%} -

{{object.plot|safe|linebreaks|truncatewords:160}}

+ {% if object.tv_series %}

{{object.tv_series}} - S{{object.season_number}}E{{object.episode_number}}

{% endif %} + {% if object.overview %}

{{object.overview}}

{% endif %} + {% if object.plot%}

{{object.plot|safe|linebreaks|truncatewords:160}}

{% endif %}
- {% endif %}

-

+ +
+
@@ -38,22 +81,12 @@ Date - {% if object.tv_series %} - Series - Season - Episode - {% endif %} {% for scrobble in object.scrobble_set.all %} {{scrobble.timestamp}} - {% if object.tv_series %} - {{scrobble.video.tv_series}} - {{scrobble.video.season_number}} - {{scrobble.video.episode_number}} - {% endif %} {% endfor %}