Mercurial > libervia-templates
view sat_templates/templates/bulma/forum/view.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 | 3db3509cbad1 |
children |
line wrap: on
line source
{% if not embedded %}{% extends 'base/base.html' %}{% endif %} {% set dates_format='relative' if single else 'short' %} {% import 'components/avatar.html' as avatar with context %} {% import 'blog/macros.html' as blog with context %} {% import 'input/textbox.html' as textbox with context %} {% import 'input/navigation.html' as navigation with context %} {% block body %} <section class="section has-background-white"> {{ blog.show_items(blog_items["items"], expanded=true) }} </section> <section class="section"> {{- textbox.comment_or_login(service=service, node=node, placeholder=_("Enter your message here")) -}} </section> {{ navigation.prev_next(_("older articles"), _("newer articles")) }} {% endblock body %}