comparison sat_templates/templates/bulma/login/logged.html @ 230:0e69b5843c2f

theme: bulma theme first draft: This theme uses the Bulma CSS framework, Brython to handle the menu on touch devices, and Sass to customize Bulma. CSS default fallbacks are disabled as Bulma uses its own naming conventions, and default fallbacks would lead to hard to debug conflicts. `common.js` has been slightly improved to handle custom classed in `tab_select` The theme is not complete yet, but it is functional.
author Goffi <goffi@goffi.org>
date Tue, 19 May 2020 00:02:34 +0200
parents
children 6895500a42d6
comparison
equal deleted inserted replaced
229:739c3e6999fa 230:0e69b5843c2f
1 {% set post_confirm_message=_("You have been logged correctly") %}
2 {% if not embedded %}{% extends 'base/base.html' %}{% endif %}
3 {% import 'input/form.html' as form with context %}
4 {% import 'input/field.html' as field with context %}
5
6 {% block title %}{{C.APP_NAME}}{% endblock %}
7
8 {% block confirm_message %}
9 {% trans %}You have been logged correctly{% endtrans %}
10 {% endblock confirm_message %}
11
12 {% block body %}
13 <section class="section" id='logged'>
14 <div class='message'>
15 <div class="message-body">
16 {% if guest_session %}
17 <p>{% trans %}You are logged as a guest{% endtrans %}</p>
18 {% else %}
19 <p>{% trans name='<span class="logged_profile">'|safe + profile + '</span>'|safe %}You are logged under the account {{name}} {% endtrans %}</p>
20 {% endif %}
21 <p>{% trans session_started='<span class="logged_time">'|safe + session_started|date_fmt('relative') + '</span>'|safe %}You logged {{session_started}}{% endtrans %}</p>
22 </div>
23 </div>
24 {% call form.form() %}
25 {{ field.meta('type', 'disconnect') }}
26 {{ field.submit(_("Disconnect")) }}
27 {% endcall %}
28 </section>
29 {% endblock body %}