<!doctype html>
<html id="burncpu" lang="en">
    <head>
        {% include 'head.jinja' %}
    </head>
    
    <body class="content-type-{{ content.__class__.__name__.lower() }}">

        {% if g.boxes.dashbar %}
            {{ g.boxes.dashbar.render() }}
        {% endif %}

        <main>

            <section class="messages">
                {% with messages = get_flashed_messages(with_categories=true) %}
                    {% if messages %}
                        <ul class="messages">
                            {% for category, message in messages %}
                                <li class="{{ category }}">{{ message }}</li>
                            {% endfor %}
                        </ul>
                    {% endif %}
                {% endwith %}
            </section>

            <section id="content">
                {{ content.render(mode) }}
            </section>

        </main>

    </body>

</html>
