=> 529d9aacf1c869a2c223ff85a096369ff181fb58
[1mdiff --git a/composer.py b/composer.py[m [1mindex 0784601..95fd078 100644[m [1m--- a/composer.py[m [1m+++ b/composer.py[m [36m@@ -449,6 +449,7 @@[m [mdef make_tags_page(session):[m [m subspace = db.get_subspace(id=post.subspace)[m is_issue_tracker = (subspace.flags & Subspace.ISSUE_TRACKER) != 0[m [32m+[m[32m session.is_context_tracker = is_issue_tracker[m [m edit_link = f'/edit-tags/{post.id}'[m [m [36m@@ -491,13 +492,19 @@[m [mdef make_tags_page(session):[m return 30, edit_link[m [m if not req.query:[m [31m- page = '# Post Tags\n\n'[m [32m+[m[32m Kind = "Issue" if is_issue_tracker else "Post"[m [32m+[m[32m kind = Kind.lower()[m [32m+[m[32m page = f'# {Kind} Tags\n\n'[m page += 'Editing tags on:\n'[m [31m- page += session.gemini_feed_entry(post)[m [32m+[m[32m page += session.gemini_feed_entry(post, subspace)[m tags = list(filter(lambda tag: tag != Post.TAG_POLL, db.get_tags(post)))[m popular_tags = db.get_popular_tags(subspace)[m [31m- if len(tags):[m [31m- page += '\n\u200b' + ' '.join(map(lambda t: '#' + t, tags)) + '\n'[m [32m+[m[32m #if len(tags):[m [32m+[m[32m # page += '### ' + ' '.join(map(lambda t: '#' + t, tags)) + '\n'[m [32m+[m[32m if tags:[m [32m+[m[32m page += f'\nCurrent tags on the {kind} (click to remove):\n'[m [32m+[m[32m for tag in tags:[m [32m+[m[32m page += f'=> {edit_link}/remove?{tag} ❌ {tag}\n'[m [m page += '\n## Add Tag\n'[m page += f'=> {edit_link}/add New tag\n'[m [36m@@ -516,11 +523,6 @@[m [mdef make_tags_page(session):[m page += f'=> {edit_link}/add?{Post.TAG_ANNOUNCEMENT} 📣 {Post.TAG_ANNOUNCEMENT}\n'[m if is_issue_tracker and Post.TAG_CLOSED not in tags:[m page += f'=> {edit_link}/add?{Post.TAG_CLOSED} ✔︎ {Post.TAG_CLOSED}\n'[m [31m-[m [31m- if tags:[m [31m- page += '\n## Remove Tag\n'[m [31m- for tag in tags:[m [31m- page += f'=> {edit_link}/remove?{tag} ❌ {tag}\n'[m return page[m [m return 30, post.page_url()[m
text/gemini; charset=utf-8
This content has been proxied by September (3851b).