From 8b0c458b8d5748da08376c866d1f6eb3a41909ba Mon Sep 17 00:00:00 2001 From: norohind <60548839+norohind@users.noreply.github.com> Date: Mon, 29 Nov 2021 21:04:18 +0300 Subject: [PATCH] Diff: tag as hyperlink to jub --- web.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/web.py b/web.py index a4f82d2..4ce9c69 100644 --- a/web.py +++ b/web.py @@ -61,7 +61,9 @@ class ActivityHtml: table_in_json: str = resp.text resp.content_type = falcon.MEDIA_HTML - resp.text = utils.activity_table_html_template.replace('{items}', table_in_json).replace('{target_column_name}', 'ActionId').replace('{target_new_url}', '/diff/') + resp.text = utils.activity_table_html_template.replace( + '{items}', table_in_json + ).replace('{target_column_name}', 'ActionId').replace('{target_new_url}', '/diff/') # what? f-strings? .format? never heard about them @@ -86,7 +88,8 @@ class ActivityDiffHtml: # table: str = json.dumps(model.get_diff_action_id(action_id)) resp.text = utils.activity_table_html_template.replace( '{items}', json.dumps(model.get_diff_action_id(action_id)) - ) + ).replace('{target_column_name}', 'tag').replace('{target_new_url}', '/jub/squads/now/by-tag/') + class MainPage: