Files
Sith/pedagogy/templates/pedagogy/fragments/ue_details/form.jinja
T
2026-09-12 21:38:20 +02:00

11 lines
408 B
Django/Jinja

{% if object.has_user_already_commented(user) %}
<div class="leave-comment-not-allowed">
<p>{% trans %}You already posted a comment on this UE. If you want to comment again, please modify or delete your previous comment.{% endtrans %}</p>
</div>
<br>
{% endif %}
{% if not object.has_user_already_commented(user) and user.has_perm("pedagogy.add_uecomment") %}
{{ add_comment_form }}
{% endif %}