Skip to content

Commit

Permalink
fix(twig): suppr "apply spaceless" parce que deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
ocruze committed Feb 10, 2025
1 parent 8319737 commit 10e42a7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
21 changes: 12 additions & 9 deletions templates/Mailer/base.html.twig
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
{% trans_default_domain 'cartesgouvfr' %}

{% block body_html %}
{% apply spaceless %}
<h2>{% block subject %}{% endblock %}</h2>
<h2>
{% block subject %}

<p>
{{ 'mailer.hello'|trans }},
</p>
{% endblock %}
</h2>

{% block body %}{% endblock %}
<p>{{ 'mailer.hello'|trans }},</p>

<p>{{ 'mailer.signature'|trans({'%href%': url('cartesgouvfr_app')})|raw }}</p>
{% block body %}

{% endblock %}

{% endapply %}
<p>{{ 'mailer.signature'|trans({'%href%': url('cartesgouvfr_app')})|raw }}</p>
{% endblock %}

{% block contact %}{% endblock %}
{% block contact %}

{% endblock %}
6 changes: 2 additions & 4 deletions templates/metadata/metadata_dataset_iso.xml.twig
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,11 @@
{% if inspire_keywords|length %}
<gmd:descriptiveKeywords>
<gmd:MD_Keywords>
{% apply spaceless %}
{% for item in inspire_keywords %}
{%- for item in inspire_keywords -%}
<gmd:keyword>
<gco:CharacterString>{{ item }}</gco:CharacterString>
</gmd:keyword>
{% endfor %}
{% endapply %}
{%- endfor -%}
<gmd:thesaurusName>
<gmd:CI_Citation>
<gmd:title>
Expand Down

0 comments on commit 10e42a7

Please sign in to comment.