diff options
author | Arjun Satarkar <me@arjunsatarkar.net> | 2023-07-30 17:04:39 +0000 |
---|---|---|
committer | Arjun Satarkar <me@arjunsatarkar.net> | 2023-07-30 17:22:01 +0000 |
commit | 88db0f45477f2278edd7877161942a215aaace3f (patch) | |
tree | 60cd40d2cfd3d0db28e678db5f431397c398ee4e /views | |
parent | f6c219ecc27c58fd88d610c16b07f019c7929904 (diff) | |
download | tagrss-88db0f45477f2278edd7877161942a215aaace3f.tar tagrss-88db0f45477f2278edd7877161942a215aaace3f.tar.gz tagrss-88db0f45477f2278edd7877161942a215aaace3f.zip |
Add tags to /list_feeds view
Diffstat (limited to 'views')
-rw-r--r-- | views/index.tpl | 4 | ||||
-rw-r--r-- | views/list_feeds.tpl | 53 |
2 files changed, 50 insertions, 7 deletions
diff --git a/views/index.tpl b/views/index.tpl index 2114652..738adb6 100644 --- a/views/index.tpl +++ b/views/index.tpl @@ -22,7 +22,7 @@ th#th-tag { width: 20%; } - td.td-tag > div { + td.td-tags > div { width: 100%; height: 100%; margin: 0; @@ -114,7 +114,7 @@ <td> <time datetime="{{utc_date}}">{{local_date}}</time> </td> - <td class="td-tag"> + <td class="td-tags"> <div> % tags = core.get_feed_tags(entry["feed_id"]) % for i, tag in enumerate(tags): diff --git a/views/list_feeds.tpl b/views/list_feeds.tpl index d780789..05cd8c9 100644 --- a/views/list_feeds.tpl +++ b/views/list_feeds.tpl @@ -5,6 +5,37 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>List Feeds | TagRSS</title> <link href="/static/styles/main.css" rel="stylesheet"> + <style> + table { + table-layout: fixed; + } + th#th-num { + width: 2.5%; + } + th#th-id { + width: 2.5%; + } + th#th-title { + width: 50%; + } + th#th-tag { + width: 35%; + } + td.td-tags > div { + width: 100%; + height: 100%; + margin: 0; + padding: 0; + overflow: auto; + white-space: nowrap; + } + th#th-source { + width: 5%; + } + th#th-manage { + width: 5%; + } + </style> </head> <body> <a href="/" class="no-visited-indication">< home</a> @@ -12,11 +43,12 @@ <table> <thead> <tr> - <th>#</th> - <th>ID</th> - <th>Feed</th> - <th>Source</th> - <th>Manage</th> + <th id="th-num">#</th> + <th id="th-id">ID</th> + <th id="th-feed">Feed</th> + <th id="th-tags">Tags</th> + <th id="th-source">Source</th> + <th id="th-manage">Manage</th> </tr> </thead> <tbody> @@ -25,6 +57,17 @@ <td>{{i + 1 + offset}}</td> <td>{{feed["id"]}}</td> <td>{{feed["title"]}} (<a href="/?included_feeds={{feed['id']}}" class="no-visited-indication">filter</a>)</td> + <td class="td-tags"> + <div> + % tags = core.get_feed_tags(feed["id"]) + % for i, tag in enumerate(tags): + % if i > 0: + {{", "}} + % end + <span class="tag">{{tag}}</span> + % end + </div> + </td> <td><a href="{{feed['source']}}" class="no-visited-indication">🔗</a></td> <td><a href="/manage_feed?feed={{feed['id']}}" class="no-visited-indication">⚙</a></td> </tr> |