feat: make card QR codes open their targets
Check card layouts / check (push) Has been cancelled

This commit is contained in:
2026-07-19 17:59:17 +02:00
parent 92d7df2a38
commit 36d8dae1fc
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -3928,6 +3928,7 @@ def render_page_header_html(data: dict, page: int, total: int) -> str:
if qr:
return (
f'<a class="{classes}" href="{html_escape(target)}" '
'target="_blank" rel="noopener noreferrer" '
f'aria-label="{html_escape(label)}: otwórz {html_escape(target)}">'
f'{qr}</a>'
)
@@ -4458,6 +4459,7 @@ def render_title_block_html(data: dict) -> str:
qr = qr_svg(str(fields["url"])) if fields["show_qr"] else ""
qr_cell = (
f'<a class="title-qr-cell" href="{html_escape(str(fields["url"]))}" '
'target="_blank" rel="noopener noreferrer" '
f'aria-label="Otwórz adres z kodu QR">{qr}</a>'
if qr
else '<div class="title-qr-cell title-qr-empty"><span>QR</span><strong>'