mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-03 17:34:15 +00:00
apply review comments
This commit is contained in:
1 parent
614b870133
commit
9924dc05d0
1 file changed
+3
-3
@@ -30,7 +30,7 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% if user.has_perm("pedagogy.delete_uecomment") %}
|
{% if comment.author_id == user.id or user.has_perm("pedagogy.delete_uecomment") %}
|
||||||
<div class="alert-aside">
|
<div class="alert-aside">
|
||||||
<a
|
<a
|
||||||
href="{{ url("pedagogy:comment_delete", comment_id=comment.id) }}"
|
href="{{ url("pedagogy:comment_delete", comment_id=comment.id) }}"
|
||||||
@@ -66,7 +66,7 @@
|
|||||||
</time>
|
</time>
|
||||||
</div>
|
</div>
|
||||||
<div class="comment-options">
|
<div class="comment-options">
|
||||||
{% if user.can_edit(comment) %}
|
{% if comment.author_id == user.id or user.has_perm("pedagogy.change_uecomment") %}
|
||||||
<a
|
<a
|
||||||
class="clickable"
|
class="clickable"
|
||||||
hx-get="{{ url('pedagogy:comment_update', comment_id=comment.id) }}"
|
hx-get="{{ url('pedagogy:comment_update', comment_id=comment.id) }}"
|
||||||
@@ -88,7 +88,7 @@
|
|||||||
<i class="fa fa-exclamation delete-action"></i>
|
<i class="fa fa-exclamation delete-action"></i>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if user.has_perm("pedagogy.delete_uecomment") %}
|
{% if comment.author_id == user.id or user.has_perm("pedagogy.delete_uecomment") %}
|
||||||
<a
|
<a
|
||||||
href="{{ url("pedagogy:comment_delete", comment_id=comment.id) }}"
|
href="{{ url("pedagogy:comment_delete", comment_id=comment.id) }}"
|
||||||
tooltip="{% trans %}Delete{% endtrans %}"
|
tooltip="{% trans %}Delete{% endtrans %}"
|
||||||
|
|||||||
Reference in new issue
Block a user