Mercurial > libervia-templates
annotate sat_templates/default/login/logged.html @ 147:33c7ce833d3f
install: setup.py fix + moved "default" dir in a "sat_templates" dir:
the merge request at https://bugs.goffi.org/mr/view/3 was a good basis, but not fully working ("default" dir was removed), this patch fixes it, and do some improvments:
- moved "default" in "sat_templates" dir, which correspond to the python module, so it can be found easily from python
- added VERSION, and mercurial hash detection, in the same way as for Cagou and backend
- slight modification of classifiers
- replaces tabs coming from MR by spaces
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 02 Jun 2018 17:25:43 +0200 |
parents | default/login/logged.html@460fc71bdc45 |
children |
rev | line source |
---|---|
54
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
1 {% set post_confirm_message=_("You have been logged correctly") %} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
2 {% if not embedded %}{% extends 'base/base.html' %}{% endif %} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
3 {% import 'input/form.html' as form with context %} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
4 {% import 'input/field.html' as field with context %} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
5 |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
6 {% block title %}{{C.APP_NAME}}{% endblock %} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
7 |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
8 {% block confirm_message %} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
9 {% trans %}You have been logged correctly{% endtrans %} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
10 {% endblock confirm_message %} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
11 |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
12 {% block body %} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
13 <div id='logged'> |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
14 <div class='logged_box box'> |
143
a37d535b7ddd
login/logged.html: show a different message when user is guest + show how long the session has been run for
Goffi <goffi@goffi.org>
parents:
54
diff
changeset
|
15 {% if guest_session %} |
a37d535b7ddd
login/logged.html: show a different message when user is guest + show how long the session has been run for
Goffi <goffi@goffi.org>
parents:
54
diff
changeset
|
16 <p>{% trans %}You are logged as a guest{% endtrans %}</p> |
a37d535b7ddd
login/logged.html: show a different message when user is guest + show how long the session has been run for
Goffi <goffi@goffi.org>
parents:
54
diff
changeset
|
17 {% else %} |
a37d535b7ddd
login/logged.html: show a different message when user is guest + show how long the session has been run for
Goffi <goffi@goffi.org>
parents:
54
diff
changeset
|
18 <p>{% trans name='<span class="logged_profile">'|safe + profile + '</span>'|safe %}You are logged under the account {{name}} {% endtrans %}</p> |
a37d535b7ddd
login/logged.html: show a different message when user is guest + show how long the session has been run for
Goffi <goffi@goffi.org>
parents:
54
diff
changeset
|
19 {% endif %} |
144
460fc71bdc45
login/logged.html: changed phrasing for logging time
Goffi <goffi@goffi.org>
parents:
143
diff
changeset
|
20 <p>{% trans session_started='<span class="logged_time">'|safe + session_started|date_fmt('relative') + '</span>'|safe %}You logged {{session_started}}{% endtrans %}</p> |
54
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
21 </div> |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
22 {% call form.form() %} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
23 {{ field.meta('type', 'disconnect') }} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
24 {{ field.submit(_("Disconnect")) }} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
25 {% endcall %} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
26 </div> |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
27 {% endblock body %} |