Mercurial > libervia-templates
view sat_templates/templates/bulma/dialogs/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 | dea66eead698 |
children |
line wrap: on
line source
<div class="main_notification columns is-centered"> <div class="column is-narrow has-items-centered"> {% set level_map={ 'success': 'is-success', 'info': 'is-info', 'warning': 'is-warning', 'error': 'is-danger' } %} <div class="notification {{level_map[level]}} pr-6 py-4"> <button class="delete click_to_close"></button> {{message}} </div> </div> </div>