view sat_templates/templates/bulma/event/overview.html @ 289:f1a39607d6a5

bulma (base/base.html): `full_screen_body` parameter + body_wrapper: - if `full_screen_body` is set in template, the `body--fullscreen` class will be added to `<body>` element. It will then be a flexbox container (in columns), and displayed on the whole viewport. - new `body_wrapper` block, if a page needs to replace the `#body` container.
author Goffi <goffi@goffi.org>
date Mon, 28 Sep 2020 17:25:26 +0200
parents 0e69b5843c2f
children 1c330913ff13
line wrap: on
line source

{# overview of current events

    @variable item(xmlui_item): ticket to display
    @variable comments(data_object.BlogItems): comments of the ticket
    @variable comments_service(unicode): service for adding comments
    @variable comments_node(unicode): node for adding comments
#}

{% if not embedded %}{% extends 'base/base.html' %}{% endif %}
{% import 'components/block.html' as block with context %}

{% block body %}
{{ icon_defs('calendar') }}

<section class="section">
    <div class="message is-info">
        <div class="message-body">
            {% trans %}There is not events discovery yet, this will come in the future.{% endtrans %}
        </div>
    </div>

    <div class="content has-items-centered is-flex">
        {{ component.action_button(url_event_new) }}
    </div>

    {% if events is defined %}
        <div class="message">
            <div class="message-body">
                {% trans nb_events=events|length%}
                You have currently {{nb_events}} event in your personal list
                {% pluralize %}
                You have currently {{nb_events}} events in your personal list
                {% endtrans %}
            </div>
        </div>

        {{block.interests_grid(events, 'calendar')}}

    {% endif %}
</section>
{% endblock body %}