From 69a356d177ad98941502b621754d011383e160d9 Mon Sep 17 00:00:00 2001 From: Arjun Satarkar Date: Thu, 22 Jun 2023 07:47:44 +0530 Subject: Initial commit --- views/add_feed.tpl | 24 ++++++++++++++++++++++++ views/index.tpl | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 views/add_feed.tpl create mode 100644 views/index.tpl (limited to 'views') diff --git a/views/add_feed.tpl b/views/add_feed.tpl new file mode 100644 index 0000000..bac78b0 --- /dev/null +++ b/views/add_feed.tpl @@ -0,0 +1,24 @@ + + + + + + Add Feed + + + < home + % if not get("already_present", False): + % if get("after_add", False): +

Added feed {{feed_source}}

+ % end + % else: +

Feed {{feed_source}} was already added; no changes made.

+ % end +

Add a feed

+
+ +
+ +
+ + diff --git a/views/index.tpl b/views/index.tpl new file mode 100644 index 0000000..b08ce0f --- /dev/null +++ b/views/index.tpl @@ -0,0 +1,33 @@ + + + + + + View Feeds + + + + + + + + % for i, item in enumerate(reversed(items)): + + + <% + dates = [] + if item.get("date_published", None): + dates.append(item["date_published"]) + end + if item.get("date_updated", None): + dates.append(item["date_updated"]) + end + %> + + + % end +
TitleDate
{{item["title"]}} + {{", updated ".join(dates)}} +
+ + -- cgit v1.2.3-57-g22cb