Skip to content

Commit

Permalink
fix(info_user): use correct Jinja syntax
Browse files Browse the repository at this point in the history
Add non-breaking space before and after the colon of list keys.
  • Loading branch information
jpm-cbna committed Apr 8, 2024
1 parent d1dc800 commit 3f9eef0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/templates/info_user.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ <h3>Utilisateur "{{fullname}}"</h3>
<br /><strong>Remarques :</strong> {{user['remarques']}}
{% endif %}

<br /><strong>Mot de passe Plus :</strong> {"Non" if user['pass_plus'] == "" or user["pass_plus"] is none else "Oui"}
<br /><strong>Mot de passe Md5 :</strong> {"Non" if user['pass_md5'] == "" or user["pass_md5"] is none else "Oui"}

<br /><strong>Mot de passe Plus :</strong> {{"Non" if user['pass_plus'] == "" or user["pass_plus"] is none else "Oui"}}
<br /><strong>Mot de passe Md5 :</strong> {{"Non" if user['pass_md5'] == "" or user["pass_md5"] is none else "Oui"}}
<br /><strong>Compte Actif :</strong> {{"Oui" if user["active"] else "Non" }}
{% if is_date_insert %}
<br /><strong>Date de création :</strong> {{user['date_insert']|truncate(10, True, '', 0)}}
Expand All @@ -53,7 +53,7 @@ <h3>Utilisateur "{{fullname}}"</h3>
{% if is_champs_addi %}
<dl class="list-def-inline">
{% for key, value in user.champs_addi.items() %}
<dt>{{ key|pretty_json_key|capitalize }} : </dt>
<dt>{{ key|pretty_json_key|capitalize }}&nbsp;:&nbsp;</dt>
<dd>
{% if value is iterable and (value is not string and value is not mapping) %}
<ul>
Expand All @@ -64,7 +64,7 @@ <h3>Utilisateur "{{fullname}}"</h3>
{% elif value is mapping %}
<dl class="list-def-inline">
{% for key, value in value.items() %}
<dt>{{ key|e|capitalize }} : </dt>
<dt>{{ key|e|capitalize }}&nbsp;:&nbsp;</dt>
<dd>{{ value }} </dd>
{% endfor %}
</dl>
Expand Down

0 comments on commit 3f9eef0

Please sign in to comment.