Skip to content

Commit

Permalink
use twig function #3580
Browse files Browse the repository at this point in the history
  • Loading branch information
numew committed Jan 21, 2025
1 parent 2eeec1e commit 2d8cf68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
7 changes: 1 addition & 6 deletions templates/back/notifications/index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,7 @@
({{notification.suivi.signalement.villeOccupant}})
</td>
<td>{{ notification.suivi.createdAt|format_datetime(locale='fr', timezone=territory_timezone, pattern='d MMMM yyyy à HH:mm:ss') }}</td>
<td class="word-wrap-anywhere">{{ notification.suivi.description
|replace({'&amp;t&#61;___TOKEN___':'/'~notification.signalement.uuid})
|replace({'?t&#61;___TOKEN___':'/'~notification.signalement.uuid})
|replace({'?folder&#61;_up':'/'~notification.signalement.uuid~'?variant=resize'})
|raw }}
</td>
<td class="word-wrap-anywhere">{{ transform_suivi_description(notification.suivi)|raw }}</td>
<td>{{ notification.suivi.createdBy ? notification.suivi.createdBy.nomComplet : notification.signalement.nomOccupant|upper~' '~notification.signalement.prenomOccupant|capitalize }}</td>
<td class="fr-text--right fr-ws-nowrap">
<a href="{{ path('back_signalement_view',{uuid:notification.suivi.signalement.uuid}) }}#suivis"
Expand Down
7 changes: 1 addition & 6 deletions templates/back/signalement/view/suivis.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,7 @@
{% else %}
<div class="fr-col-7 bloc-suivi-content-row fr-pl-3v">
{% endif %}
{{ suivi.description
|replace({'&amp;t&#61;___TOKEN___':'/'~signalement.uuid})
|replace({'?t&#61;___TOKEN___':'/'~signalement.uuid})
|replace({'?foldert&#61_up':'/'~signalement.uuid~'?variant=resize'})
|raw
}}
{{ transform_suivi_description(suivi)|raw}}
</div>
<div class="fr-col-2">
{% if suivi.isPublic %}
Expand Down

0 comments on commit 2d8cf68

Please sign in to comment.