Mercurial > libervia-templates
comparison default/login/logged.html @ 143:a37d535b7ddd
login/logged.html: show a different message when user is guest + show how long the session has been run for
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 01 Jun 2018 18:34:26 +0200 |
parents | a5dc14675d5e |
children | 460fc71bdc45 |
comparison
equal
deleted
inserted
replaced
142:474897758423 | 143:a37d535b7ddd |
---|---|
10 {% endblock confirm_message %} | 10 {% endblock confirm_message %} |
11 | 11 |
12 {% block body %} | 12 {% block body %} |
13 <div id='logged'> | 13 <div id='logged'> |
14 <div class='logged_box box'> | 14 <div class='logged_box box'> |
15 <p>You are logged under the account <span class="logged_profile">{{profile}}</span></p> | 15 {% if guest_session %} |
16 <p>{% trans %}You are logged as a guest{% endtrans %}</p> | |
17 {% else %} | |
18 <p>{% trans name='<span class="logged_profile">'|safe + profile + '</span>'|safe %}You are logged under the account {{name}} {% endtrans %}</p> | |
19 {% endif %} | |
20 <p>{% trans session_started='<span class="logged_time">'|safe + session_started|date_fmt('relative') + '</span>'|safe %}You are logged since {{session_started}}{% endtrans %}</p> | |
16 </div> | 21 </div> |
17 {% call form.form() %} | 22 {% call form.form() %} |
18 {{ field.meta('type', 'disconnect') }} | 23 {{ field.meta('type', 'disconnect') }} |
19 {{ field.submit(_("Disconnect")) }} | 24 {{ field.submit(_("Disconnect")) }} |
20 {% endcall %} | 25 {% endcall %} |