From a4d9ba11381295380314a1f749c1ae1eeb6773f2 Mon Sep 17 00:00:00 2001 From: Arjun Satarkar Date: Tue, 4 Jul 2023 21:25:53 +0530 Subject: Add feed modification and deletion --- views/add_feed.tpl | 1 - views/delete.html | 14 +++++++++++++ views/index.tpl | 8 +++++--- views/manage_feed.tpl | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 75 insertions(+), 4 deletions(-) create mode 100644 views/delete.html create mode 100644 views/manage_feed.tpl (limited to 'views') diff --git a/views/add_feed.tpl b/views/add_feed.tpl index 3c54ffb..5fc88fb 100644 --- a/views/add_feed.tpl +++ b/views/add_feed.tpl @@ -23,7 +23,6 @@ 🛈 -
diff --git a/views/delete.html b/views/delete.html new file mode 100644 index 0000000..000b733 --- /dev/null +++ b/views/delete.html @@ -0,0 +1,14 @@ + + + + + + Feed Deleted | TagRSS + + + + +

Feed successfully deleted. Redirecting...

+ home + + diff --git a/views/index.tpl b/views/index.tpl index 6ff4ab4..6ca1518 100644 --- a/views/index.tpl +++ b/views/index.tpl @@ -1,3 +1,6 @@ +<% + import time +%> @@ -27,7 +30,6 @@ {{i + 1}} {{entry["title"]}} <% - import time dates = [] if entry.get("epoch_published", None): dates.append(time.strftime("%x %X", time.localtime(entry["epoch_published"]))) @@ -43,7 +45,7 @@ {{", updated ".join(dates)}} - % tags = tagrss_backend.get_feed_tags(entry["feed_id"]) + % tags = core.get_feed_tags(entry["feed_id"]) % for i, tag in enumerate(tags): % if i > 0: {{", "}} @@ -52,7 +54,7 @@ % end - âš™ + âš™ % end diff --git a/views/manage_feed.tpl b/views/manage_feed.tpl new file mode 100644 index 0000000..86a9c5d --- /dev/null +++ b/views/manage_feed.tpl @@ -0,0 +1,56 @@ + + + + + + Manage Feed | TagRSS + + + + < home +

Manage feed

+ + + + + + + + + + + + + +
Title{{feed["title"]}}
Source{{feed["source"]}}
Tags + % tags = feed["tags"] + % for i, tag in enumerate(tags): + % if i > 0: + {{", "}} + % end + {{tag}} + % end +
+
+ + + +
+ + 🛈 +
+ +
+
+
+ + +
+ + \ No newline at end of file -- cgit v1.2.3-57-g22cb