Mercurial > libervia-templates
diff 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 |
line wrap: on
line diff
--- a/default/login/logged.html Fri Jun 01 12:48:54 2018 +0200 +++ b/default/login/logged.html Fri Jun 01 18:34:26 2018 +0200 @@ -12,7 +12,12 @@ {% block body %} <div id='logged'> <div class='logged_box box'> - <p>You are logged under the account <span class="logged_profile">{{profile}}</span></p> + {% if guest_session %} + <p>{% trans %}You are logged as a guest{% endtrans %}</p> + {% else %} + <p>{% trans name='<span class="logged_profile">'|safe + profile + '</span>'|safe %}You are logged under the account {{name}} {% endtrans %}</p> + {% endif %} + <p>{% trans session_started='<span class="logged_time">'|safe + session_started|date_fmt('relative') + '</span>'|safe %}You are logged since {{session_started}}{% endtrans %}</p> </div> {% call form.form() %} {{ field.meta('type', 'disconnect') }}