From b2b7aa6231b32d2acb88c2ed4aa636fb453f0836 Mon Sep 17 00:00:00 2001 From: Joshua Laymon Date: Fri, 15 Aug 2025 22:26:08 +0000 Subject: [PATCH] Update web/templates/entry_view.html --- web/templates/entry_view.html | 197 +++++++++++++++++----------------- 1 file changed, 96 insertions(+), 101 deletions(-) diff --git a/web/templates/entry_view.html b/web/templates/entry_view.html index e1b261f..908fadc 100644 --- a/web/templates/entry_view.html +++ b/web/templates/entry_view.html @@ -1,87 +1,92 @@ {% extends "base.html" %} -{% block body_class %}themed-bg{% endblock %} {% load static %} +{% block body_class %}themed-bg{% endblock %} {% block content %} -
- - +
+
- ← Back to Search - {% if count %} - {{ position }} of {{ count }} - {% endif %} + ← Back to Results + #{{ entry.id }}
-
- - - -
-
- - - -
+ Next - {% if user.is_authenticated and user.is_staff %} - Unlock / Edit - Delete - {% endif %} + + + + Edit
- -
- -
- {% if subject_list %} - {% for s in subject_list %} - {{ s }} - {% endfor %} - {% else %} - (no subject) - {% endif %} + +
+
+ +
{{ entry.subject|default:"—" }}
- -
- -
- {{ entry.illustration|linebreaksbr|default:"—" }} -
+
+ +
{{ entry.illustration|linebreaksbr|default:"—" }}
- -
- -
- {{ entry.application|linebreaksbr|default:"—" }} -
+
+ +
{{ entry.application|linebreaksbr|default:"—" }}
- +
+
+
Scripture
+
{{ entry.scripture_raw|default:"—" }}
+
+ +
Source
{% if entry.source %} - {% with s=entry.source %} - {% with sl=s|lower %} - {% if sl|slice:":2" == "wp" or sl|slice:":2" == "ws" or sl|slice:":2" == "yb" or sl|slice:":2" == "km" or sl|slice:":3" == "mwb" or sl|slice:":1" == "w" or sl|slice:":1" == "g" or sl|slice:":2" == "ap" or sl|slice:":3" == "apf" or sl|slice:":2" == "be" or sl|slice:":2" == "bh" or sl|slice:":2" == "br" or sl|slice:":2" == "bt" or sl|slice:":3" == "btg" or sl|slice:":2" == "cf" or sl|slice:":2" == "cl" or sl|slice:":2" == "ct" or sl|slice:":2" == "dp" or sl|slice:":2" == "fg" or sl|slice:":2" == "fy" or sl|slice:":2" == "gt" or sl|slice:":2" == "hb" or sl|slice:":2" == "im" or sl|slice:":2" == "ip" or sl|slice:":2" == "it" or sl|slice:":2" == "jv" or sl|slice:":2" == "ka" or sl|slice:":2" == "kj" or sl|slice:":2" == "kl" or sl|slice:":2" == "lf" or sl|slice:":3" == "lff" or sl|slice:":2" == "ll" or sl|slice:":2" == "ly" or sl|slice:":2" == "my" or sl|slice:":2" == "od" or sl|slice:":2" == "pe" or sl|slice:":2" == "po" or sl|slice:":2" == "pt" or sl|slice:":2" == "rr" or sl|slice:":2" == "rs" or sl|slice:":2" == "sg" or sl|slice:":2" == "sh" or sl|slice:":2" == "si" or sl|slice:":2" == "td" or sl|slice:":2" == "tp" or sl|slice:":2" == "tr" or sl|slice:":2" == "ts" or sl|slice:":2" == "un" %} + {% with s=entry.source|default:"" %} + {% with sl=s|lower|cut:" " %} + {% if + sl|slice:":2" == "w " or sl|startswith:"w" or + sl|slice:":2" == "wp" or sl|slice:":2" == "ws" or sl|slice:":1" == "g" or + sl|slice:":2" == "yb" or sl|slice:":2" == "kt" or + sl|slice:":2" == "km" or sl|slice:":3" == "mwb" or + sl|slice:":2" == "ap" or sl|slice:":3" == "apf" or sl|slice:":2" == "be" or sl|slice:":2" == "bh" or + sl|slice:":2" == "br" or sl|slice:":2" == "bt" or sl|slice:":3" == "btg" or sl|slice:":2" == "cf" or + sl|slice:":2" == "cl" or sl|slice:":2" == "ct" or sl|slice:":2" == "dp" or sl|slice:":2" == "fg" or + sl|slice:":2" == "fy" or sl|slice:":2" == "gt" or sl|slice:":2" == "hb" or sl|slice:":2" == "im" or + sl|slice:":2" == "ip" or sl|slice:":2" == "it" or sl|slice:":2" == "jv" or sl|slice:":2" == "ka" or + sl|slice:":2" == "kj" or sl|slice:":2" == "kl" or sl|slice:":2" == "lf" or sl|slice:":3" == "lff" or + sl|slice:":2" == "ll" or sl|slice:":2" == "ly" or sl|slice:":2" == "my" or sl|slice:":2" == "od" or + sl|slice:":2" == "pe" or sl|slice:":2" == "po" or sl|slice:":2" == "pt" or sl|slice:":2" == "rr" or + sl|slice:":2" == "rs" or sl|slice:":2" == "sg" or sl|slice:":2" == "sh" or sl|slice:":2" == "si" or + sl|slice:":2" == "td" or sl|slice:":2" == "tp" or sl|slice:":2" == "tr" or sl|slice:":2" == "ts" or + sl|slice:":2" == "un" + %} {{ s }} + target="_blank" rel="noopener noreferrer"> + {{ s }} + {% else %} {{ s }} + target="_blank" rel="noopener noreferrer"> + {{ s }} + {% endif %} {% endwith %} {% endwith %} @@ -90,64 +95,54 @@
-
Scripture
-
- {% if scripture_list %} - {% for sc in scripture_list %} - {{ sc }} - {% endfor %} - {% else %}—{% endif %} -
+
Talk Title
+
{{ entry.talk_title|default:"—" }}
-
Code
+
Talk Number
+
{{ entry.talk_number|default:"—" }}
+
+ +
+
Entry Code
{{ entry.entry_code|default:"—" }}
-
Talk
-
- {% if entry.talk_title %}{{ entry.talk_title }}{% else %}—{% endif %} - {% if entry.talk_number %}#{{ entry.talk_number }}{% endif %} -
+
Date Added
+
{{ entry.date_added|date:"Y-m-d" }}
-
Dates
-
- {% if entry.date_added %}Added: {{ entry.date_added }}{% else %}Added: —{% endif %} - {% if entry.date_edited %} • Edited: {{ entry.date_edited }}{% endif %} -
+
Date Edited
+
{{ entry.date_edited|date:"Y-m-d" }}
-
- + + + + {% endblock %} \ No newline at end of file