From 589df8813ea7732501fb551296d8fd45c4186217 Mon Sep 17 00:00:00 2001 From: Arjun Satarkar Date: Thu, 22 Jun 2023 11:10:59 +0530 Subject: Improve CLI arguments, add basic tag support, add CSS --- views/add_feed.tpl | 8 +++++++- views/index.tpl | 55 ++++++++++++++++++++++++++++++++++-------------------- 2 files changed, 42 insertions(+), 21 deletions(-) (limited to 'views') diff --git a/views/add_feed.tpl b/views/add_feed.tpl index bac78b0..3c54ffb 100644 --- a/views/add_feed.tpl +++ b/views/add_feed.tpl @@ -3,7 +3,8 @@ - Add Feed + Add Feed | TagRSS + < home @@ -18,6 +19,11 @@

+
+ + 🛈 +
+
diff --git a/views/index.tpl b/views/index.tpl index b08ce0f..d521810 100644 --- a/views/index.tpl +++ b/views/index.tpl @@ -3,31 +3,46 @@ - View Feeds + View Feeds | TagRSS + +

TagRSS

+ - - - - - % 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 + + + % 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)}} - #TitleDateTags
{{i + 1}}{{item["title"]}} + {{", updated ".join(dates)}} + + {{", ".join(item["feed"]["tags"])}} +
-- cgit v1.2.3-57-g22cb