Skip to content

Commit

Permalink
On cache le bouton Modifier dans les MPs si quelqu'un a répondu après
Browse files Browse the repository at this point in the history
  • Loading branch information
Situphen committed Mar 4, 2021
1 parent 543ecc0 commit 4279c2d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions templates/misc/message.part.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,13 @@

{% if message.author == user %}
{% if edit_link %}
<li>
<a href="{{ edit_link | safe }}" class="ico-after edit">
<span>{% trans "Modifier" %}</span>
</a>
</li>
{% if message.pk in user_can_modify %} {# User cannot edit a MP post if someone answered after. #}
<li>
<a href="{{ edit_link | safe }}" class="ico-after edit">
<span>{% trans "Modifier" %}</span>
</a>
</li>
{% endif %}
{% endif %}

{% if not message_is_hidden and can_hide != False %}
Expand Down

0 comments on commit 4279c2d

Please sign in to comment.