Skip to content

Commit

Permalink
Masquage de la signatures des bannis
Browse files Browse the repository at this point in the history
Closes #4964
  • Loading branch information
nils-van-zuijlen authored and artragis committed Jul 19, 2018
1 parent 3ac36cb commit 7232e2e
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions templates/misc/message.part.html
Expand Up @@ -239,22 +239,24 @@
<div class="message-bottom">
{% with profile=message.author|profile %}
{% if profile.sign %}
{% if user.is_authenticated %}
{% with profile_user=user|profile %}
{% if profile_user.show_sign %}
<div class="signature">
{% cache 300 profile.user.username profile.sign %}
{{ profile.sign|emarkdown_inline }}
{% endcache %}
</div>
{% endif %}
{% endwith %}
{% else %}
<div class="signature">
{% cache 300 profile.user.username profile.sign %}
{{ profile.sign|emarkdown_inline }}
{% endcache %}
</div>
{% if profile.end_ban_read or profile.can_read %}
{% if user.is_authenticated %}
{% with profile_user=user|profile %}
{% if profile_user.show_sign %}
<div class="signature">
{% cache 300 profile.user.username profile.sign %}
{{ profile.sign|emarkdown_inline }}
{% endcache %}
</div>
{% endif %}
{% endwith %}
{% else %}
<div class="signature">
{% cache 300 profile.user.username profile.sign %}
{{ profile.sign|emarkdown_inline }}
{% endcache %}
</div>
{% endif %}
{% endif %}
{% endif %}
{% endwith %}
Expand Down

0 comments on commit 7232e2e

Please sign in to comment.