add infobox support

This commit is contained in:
2026-04-25 16:15:37 +03:00
parent 3d7188eb71
commit 29f2318cba
7 changed files with 59 additions and 6 deletions

View File

@@ -1,3 +1,4 @@
{%- from 'common/macros.html' import infobox with context -%}
<!DOCTYPE html>
<html lang="en">
<head>
@@ -13,6 +14,13 @@
</head>
<body>
{%- include 'common/topnav.html' -%}
{%- with messages = get_flashed_messages(with_categories=true) -%}
{%- if messages -%}
{%- for category, message in messages -%}
{{- infobox(message, category) -}}
{%- endfor -%}
{%- endif -%}
{%- endwith -%}
{%- block content -%}{%- endblock -%}
{%- include 'common/footer.html' -%}
</body>