Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/templates/prop_resp.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ def render_prop_resp_block(change: SimplifiedNotification, user_name: str) -> tu
data: PropRespData = change.data
when = _fmt_time(change.time)
text = (
f"[{when}] {user_name} responded to category proposal(s):\n"
f"[{when}] {user_name}:\n"
f" {data.responses}\n"
f" Change: {data.category_change}\n"
)
html_out = (
f"<p><strong>[{when}] {user_name}</strong> responded to category proposal(s):<br>\n"
f"<p><strong>[{when}] {user_name}</strong>:<br>\n"
f"{data.responses}<br>\n"
f"Change: {data.category_change}</p>\n"
)
Expand Down
4 changes: 2 additions & 2 deletions tests/test_email_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def test_prop_resp_exact_text():
note = _note(PropRespData(responses="Primary accepted: hep-lat", category_change="no primary -> hep-lat"))
text, _ = render_prop_resp_block(note, _USER)
assert text == (
f"[{_WHEN}] {_USER} responded to category proposal(s):\n"
f"[{_WHEN}] {_USER}:\n"
f" Primary accepted: hep-lat\n"
f" Change: no primary -> hep-lat\n"
)
Expand All @@ -306,7 +306,7 @@ def test_prop_resp_exact_html():
note = _note(PropRespData(responses="Primary accepted: hep-lat", category_change="no primary -> hep-lat"))
_, html_out = render_prop_resp_block(note, _USER)
assert html_out == (
f"<p><strong>[{_WHEN}] {_USER}</strong> responded to category proposal(s):<br>\n"
f"<p><strong>[{_WHEN}] {_USER}</strong>:<br>\n"
f"Primary accepted: hep-lat<br>\n"
f"Change: no primary -> hep-lat</p>\n"
)
Expand Down
Loading