From ebc66bbf640e46ff8d7578f1cfad86b5984b2b6e Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Sun, 3 Aug 2025 02:00:26 -0400 Subject: [PATCH] [puzzles] Add templates --- vrobbler/templates/puzzles/puzzle_detail.html | 68 +++++++++++++++++++ vrobbler/templates/puzzles/puzzle_list.html | 23 +++++++ 2 files changed, 91 insertions(+) create mode 100644 vrobbler/templates/puzzles/puzzle_detail.html create mode 100644 vrobbler/templates/puzzles/puzzle_list.html diff --git a/vrobbler/templates/puzzles/puzzle_detail.html b/vrobbler/templates/puzzles/puzzle_detail.html new file mode 100644 index 0000000..7bde048 --- /dev/null +++ b/vrobbler/templates/puzzles/puzzle_detail.html @@ -0,0 +1,68 @@ +{% extends "base_list.html" %} +{% load mathfilters %} +{% load static %} +{% load naturalduration %} + +{% block title %}{{object.title}}{% endblock %} + +{% block head_extra %} + +{% endblock %} + +{% block lists %} + +
+
+ {% if object.description%} +

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

+
+ {% endif %} +

+ +

+
+
+
+

{{scrobbles.count}} scrobbles

+

+ Drink again +

+
+
+
+

Last scrobbles

+
+ + + + + + + + {% for scrobble in scrobbles.all|dictsortreversed:"timestamp" %} + + + + {% endfor %} + +
Date
{{scrobble.local_timestamp}}
+
+
+
+{% endblock %} diff --git a/vrobbler/templates/puzzles/puzzle_list.html b/vrobbler/templates/puzzles/puzzle_list.html new file mode 100644 index 0000000..01e31d0 --- /dev/null +++ b/vrobbler/templates/puzzles/puzzle_list.html @@ -0,0 +1,23 @@ +{% extends "base_list.html" %} + +{% block title %}Puzzles{% endblock %} + +{% block head_extra %} + +{% endblock %} + +{% block lists %} +
+ +
+
+ {% include "_scrobblable_list.html" %} +
+
+
+{% endblock %}