From a2e8d5a379c5a0f527e24819a7b0563805c217b7 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Thu, 22 Oct 2020 15:07:19 -0700 Subject: [PATCH] Make the puzzle's name a link to the sheet Otherwise, there's just a wall of "Channel" and "Sheet" links which is disorienting. --- turbot/events.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)) -- 2.43.0