diff options
author | Arjun Satarkar <me@arjunsatarkar.net> | 2023-06-22 05:40:59 +0000 |
---|---|---|
committer | Arjun Satarkar <me@arjunsatarkar.net> | 2023-06-22 05:40:59 +0000 |
commit | 589df8813ea7732501fb551296d8fd45c4186217 (patch) | |
tree | 670d915991325c3f1c270be35ad82ba69d1e5cce /views | |
parent | 69a356d177ad98941502b621754d011383e160d9 (diff) | |
download | tagrss-589df8813ea7732501fb551296d8fd45c4186217.tar tagrss-589df8813ea7732501fb551296d8fd45c4186217.tar.gz tagrss-589df8813ea7732501fb551296d8fd45c4186217.zip |
Improve CLI arguments, add basic tag support, add CSS
Diffstat (limited to 'views')
-rw-r--r-- | views/add_feed.tpl | 8 | ||||
-rw-r--r-- | views/index.tpl | 55 |
2 files changed, 42 insertions, 21 deletions
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 @@ <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> - <title>Add Feed</title> + <title>Add Feed | TagRSS</title> + <link href="/static/styles/main.css" rel="stylesheet"> </head> <body> <a href="/">< home</a> @@ -18,6 +19,11 @@ <form method="post"> <input type="url" placeholder="Feed source" name="feed_source"> <br> + <div class="side-by-side-help-container"> + <input type="text" placeholder="Tags" name="tags"> + <span class="hover-help" tabindex="0" title="Space separated. Backslashes escape spaces.">🛈</span> + </div> + <br> <input type="submit" value="Add"> </form> </body> 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 @@ <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> - <title>View Feeds</title> + <title>View Feeds | TagRSS</title> + <link href="/static/styles/main.css" rel="stylesheet"> </head> <body> + <h1>TagRSS</h1> + <nav> + <p><a href="/add_feed">Add feed</a></p> + </nav> <table> - <tr> - <th>Title</th> - <th>Date</th> - </tr> - % for i, item in enumerate(reversed(items)): + <thead> <tr> - <td><a href="{{item["link"]}}">{{item["title"]}}</a></td> - <% - 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 - %> - <td> - {{", updated ".join(dates)}} - </td> + <th>#</th> + <th>Title</th> + <th>Date</th> + <th>Tags</th> </tr> - % end + </thead> + <tbody> + % for i, item in enumerate(reversed(items)): + <tr> + <td>{{i + 1}}</td> + <td><a href="{{item["link"]}}">{{item["title"]}}</a></td> + <% + 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 + %> + <td> + {{", updated ".join(dates)}} + </td> + <td> + {{", ".join(item["feed"]["tags"])}} + </td> + </tr> + % end + </tbody> </table> </body> </html> |