view default/components/block.html @ 136:4eda3d0ddb22

blog (discover): don't display alternative instructions if not disco entities are available (i.e. if the only choice is free jid)
author Goffi <goffi@goffi.org>
date Tue, 27 Mar 2018 08:30:07 +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 %}