add infobox support
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user