Mercurial > libervia-templates
annotate sat_templates/templates/bulma/dialogs/retry-notification.html @ 363:cddac8502c4b
chat/message: fix urlize escaping on nunjucks:
Nunjucks imply to use `safe` when using `urlize`, while Jinja2 doesn't. Esacaping and safe
filter are added so that `urlize` can work with both engines.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 28 Jun 2023 10:40:53 +0200 |
parents | e3e11ced9f8f |
children |
rev | line source |
---|---|
356
e3e11ced9f8f
bulma: new `retry-notification` template:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
1 <div class="main_notification columns is-centered"> |
e3e11ced9f8f
bulma: new `retry-notification` template:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
2 <div class="column is-narrow has-items-centered"> |
e3e11ced9f8f
bulma: new `retry-notification` template:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
3 {% set level_map={ |
e3e11ced9f8f
bulma: new `retry-notification` template:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
4 'success': 'is-success', |
e3e11ced9f8f
bulma: new `retry-notification` template:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
5 'info': 'is-info', |
e3e11ced9f8f
bulma: new `retry-notification` template:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
6 'warning': 'is-warning', |
e3e11ced9f8f
bulma: new `retry-notification` template:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
7 'error': 'is-danger' |
e3e11ced9f8f
bulma: new `retry-notification` template:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
8 } |
e3e11ced9f8f
bulma: new `retry-notification` template:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
9 %} |
e3e11ced9f8f
bulma: new `retry-notification` template:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
10 |
e3e11ced9f8f
bulma: new `retry-notification` template:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
11 <div class="notification {{level_map[level]}} py-4"> |
e3e11ced9f8f
bulma: new `retry-notification` template:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
12 {{message}} |
e3e11ced9f8f
bulma: new `retry-notification` template:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
13 <button class="button is-rounded is-small click_to_retry ml-5 is-valign-middle">{% trans %}retry{% endtrans %} (<span class="retry_counter">X</span>s)</button> |
e3e11ced9f8f
bulma: new `retry-notification` template:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
14 </div> |
e3e11ced9f8f
bulma: new `retry-notification` template:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
15 </div> |
e3e11ced9f8f
bulma: new `retry-notification` template:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
16 </div> |