From a2f507a97678c9631cb3bcd8e1b2924db9a20673 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Wed, 20 Aug 2025 11:38:39 -0400 Subject: [PATCH] [videos] Wire up generic video list view --- vrobbler/apps/videos/urls.py | 2 +- .../templates/scrobbles/_last_scrobbles.html | 2 +- vrobbler/templates/videos/video_list.html | 32 +++++++++++++++++++ 3 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 vrobbler/templates/videos/video_list.html diff --git a/vrobbler/apps/videos/urls.py b/vrobbler/apps/videos/urls.py index fe2a1e9..5445b65 100644 --- a/vrobbler/apps/videos/urls.py +++ b/vrobbler/apps/videos/urls.py @@ -5,7 +5,6 @@ app_name = "videos" urlpatterns = [ - # path('', views.scrobble_endpoint, name='scrobble-list'), path("movies/", views.MovieListView.as_view(), name="movie_list"), path("series/", views.SeriesListView.as_view(), name="series_list"), path( @@ -13,6 +12,7 @@ urlpatterns = [ views.SeriesDetailView.as_view(), name="series_detail", ), + path('videos/', views.VideoListView(), name='video_list'), path( "video//", views.VideoDetailView.as_view(), diff --git a/vrobbler/templates/scrobbles/_last_scrobbles.html b/vrobbler/templates/scrobbles/_last_scrobbles.html index 285c0d2..1af4f51 100644 --- a/vrobbler/templates/scrobbles/_last_scrobbles.html +++ b/vrobbler/templates/scrobbles/_last_scrobbles.html @@ -27,7 +27,7 @@

No tasks today

{% endif %} -

Videos

+

Videos

{% if Video %} {% with scrobbles=Video count=Video_count time=Video_time %} {% include "scrobbles/_scrobble_table.html" %} diff --git a/vrobbler/templates/videos/video_list.html b/vrobbler/templates/videos/video_list.html new file mode 100644 index 0000000..a25f03e --- /dev/null +++ b/vrobbler/templates/videos/video_list.html @@ -0,0 +1,32 @@ +{% extends "base_list.html" %} +{% block title %}Videos{% endblock %} +{% block head_extra %} + +{% endblock %} + +{% block lists %} +
+
+
{% include "_scrobblable_list.html" %}
+
+
+{% endblock %}