From: Carl Worth Date: Thu, 22 Oct 2020 22:07:19 +0000 (-0700) Subject: Make the puzzle's name a link to the sheet X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=a2e8d5a379c5a0f527e24819a7b0563805c217b7;p=turbot Make the puzzle's name a link to the sheet Otherwise, there's just a wall of "Channel" and "Sheet" links which is disorienting. --- diff --git a/turbot/events.py b/turbot/events.py index 38199e2..bbec056 100644 --- a/turbot/events.py +++ b/turbot/events.py @@ -35,13 +35,13 @@ def puzzle_block(puzzle): links = [] if url: links.append("<{}|Puzzle>".format(url)) - if channel_id: - links.append("<{}|Channel>".format(channel_url(channel_id))) if sheet_url: links.append("<{}|Sheet>".format(sheet_url)) - puzzle_text = "{}{} {} ({})".format( - status_emoji, solution_str, name, ', '.join(links) + puzzle_text = "{}{} <{}|{}> ({})".format( + status_emoji, solution_str, + channel_url(channel_id), name, + ', '.join(links) ) return section_block(text_block(puzzle_text))