From a7e0213b1acfe5ce47cb956caf35bee8fa3b7ab1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Helle=C5=9Ben?= Date: Sat, 7 Mar 2026 19:06:57 +0100 Subject: [PATCH] Refactor feed URL and update interval sections --- discord_rss_bot/templates/feed.html | 75 +++++++++++++++++------------ 1 file changed, 43 insertions(+), 32 deletions(-) diff --git a/discord_rss_bot/templates/feed.html b/discord_rss_bot/templates/feed.html index 5199395..eb3e601 100644 --- a/discord_rss_bot/templates/feed.html +++ b/discord_rss_bot/templates/feed.html @@ -79,7 +79,6 @@
Feed URL
-

Change the URL for this feed. This can be useful if a feed has moved.

@@ -115,32 +114,43 @@
-
Update Interval
- {% if feed_interval %} -

- Current: {{ feed_interval }} minutes +

+ Update Interval + {% if feed_interval %} + Custom + {% else %} + Using global default + {% endif %} + +
+
+ Current: + {% if feed_interval %} + {{ feed_interval }} {% if feed_interval >= 60 %}({{ (feed_interval / 60) | round(1) }} hours){% endif %} - Custom -

- {% else %} -

- Current: {{ global_interval }} minutes + {% else %} + {{ global_interval }} {% if global_interval >= 60 %}({{ (global_interval / 60) | round(1) }} hours){% endif %} - Using global default -

- {% endif %} - + {% endif %} + minutes
+ -
- - -
+ + {% if feed_interval %}
@@ -150,12 +160,13 @@ {% endif %}
- {# Rendered HTML content #} -
{{ html|safe }}
- {% if is_show_more_entries_button_visible %} - - Show more entries - - {% endif %} +
+{# Rendered HTML content #} +
{{ html|safe }}
+{% if is_show_more_entries_button_visible %} + + Show more entries + +{% endif %} {% endblock content %}