mirror of
https://github.com/norohind/SquadsActivityMonitor.git
synced 2025-04-13 13:27:13 +03:00
Diff: tag as hyperlink to jub
This commit is contained in:
parent
926609f29e
commit
8b0c458b8d
7
web.py
7
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user