view default/components/block.html @ 131:c3f50951f2cc

components: menu update
author Goffi <goffi@goffi.org>
date Mon, 26 Mar 2018 08:13:52 +0200
parents ca42dc037bbf
children 85877c76d47d
line wrap: on
line source

{% macro separator(label, align='center') %}
{# display a bloc separator
    @param label(unicode): label to show
    @param align(unicode): one of "left", "center", "right"
#}
    <div class="block_separator">
        {% if align in ('center', 'right') %}
            <div class="block_separator__line"></div>
        {% endif %}
        <div class="block_separator__label">
            {{label}}
        </div>
        {% if align in ('center', 'left') %}
            <div class="block_separator__line"></div>
        {% endif %}
    </div>
{% endmacro %}