From 6e0ea8d6c871bd79e80b87de6cc88ea1cc5e6118 Mon Sep 17 00:00:00 2001 From: Arjun Satarkar Date: Sat, 29 Jul 2023 03:56:31 +0530 Subject: Add filtering by tag and feed, improve modularity of some HTML --- views/add_feed.tpl | 2 +- views/hover_help.tpl | 1 + views/index.tpl | 35 ++++++++++++++++++++++++++++++++++- views/list_feeds.tpl | 4 +++- views/manage_feed.tpl | 2 +- views/tag_hover_help.tpl | 1 + 6 files changed, 41 insertions(+), 4 deletions(-) create mode 100644 views/hover_help.tpl create mode 100644 views/tag_hover_help.tpl (limited to 'views') diff --git a/views/add_feed.tpl b/views/add_feed.tpl index b08ea0e..0110bac 100644 --- a/views/add_feed.tpl +++ b/views/add_feed.tpl @@ -21,7 +21,7 @@
- 🛈 + % include("tag_hover_help.tpl")
diff --git a/views/hover_help.tpl b/views/hover_help.tpl new file mode 100644 index 0000000..5d5eb97 --- /dev/null +++ b/views/hover_help.tpl @@ -0,0 +1 @@ +🛈 diff --git a/views/index.tpl b/views/index.tpl index acb6fd1..52e997f 100644 --- a/views/index.tpl +++ b/views/index.tpl @@ -51,6 +51,33 @@ List feeds

+
+ Filter +
+
+ + % include("hover_help.tpl", text="Space-separated feed IDs.") +
+
+ + % include("tag_hover_help.tpl") +
+ + + +
+
+ + + + + +
+
@@ -92,7 +119,7 @@ @@ -107,6 +134,12 @@ + % if included_feeds: + + % end + % if included_tags: + + % end % include("footer.tpl") diff --git a/views/list_feeds.tpl b/views/list_feeds.tpl index 6377289..3c60f06 100644 --- a/views/list_feeds.tpl +++ b/views/list_feeds.tpl @@ -13,6 +13,7 @@ + @@ -22,7 +23,8 @@ % for i, feed in enumerate(feeds): - + + diff --git a/views/manage_feed.tpl b/views/manage_feed.tpl index c110ad2..0ff127e 100644 --- a/views/manage_feed.tpl +++ b/views/manage_feed.tpl @@ -46,7 +46,7 @@ - 🛈 + % include("tag_hover_help.tpl") diff --git a/views/tag_hover_help.tpl b/views/tag_hover_help.tpl new file mode 100644 index 0000000..9007e55 --- /dev/null +++ b/views/tag_hover_help.tpl @@ -0,0 +1 @@ +% include("hover_help.tpl", text="Space-separated. Backslashes escape spaces.") -- cgit v1.2.3-57-g22cb
âš™ - {{core.get_feed_title(entry["feed_id"])}} + {{core.get_feed_title(entry["feed_id"])}} ({{entry["feed_id"]}})
#ID Feed Source Manage
{{i + 1 + offset}}{{feed["title"]}}{{feed["id"]}}{{feed["title"]}} (filter) 🔗 ⚙