mirror of
https://github.com/ae-utbm/sith.git
synced 2026-09-18 10:14:24 +00:00
apply review comments
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</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">
|
||||
<a
|
||||
href="{{ url("pedagogy:comment_delete", comment_id=comment.id) }}"
|
||||
@@ -66,7 +66,7 @@
|
||||
</time>
|
||||
</div>
|
||||
<div class="comment-options">
|
||||
{% if user.can_edit(comment) %}
|
||||
{% if comment.author_id == user.id or user.has_perm("pedagogy.change_uecomment") %}
|
||||
<a
|
||||
class="clickable"
|
||||
hx-get="{{ url('pedagogy:comment_update', comment_id=comment.id) }}"
|
||||
@@ -88,7 +88,7 @@
|
||||
<i class="fa fa-exclamation delete-action"></i>
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if user.has_perm("pedagogy.delete_uecomment") %}
|
||||
{% if comment.author_id == user.id or user.has_perm("pedagogy.delete_uecomment") %}
|
||||
<a
|
||||
href="{{ url("pedagogy:comment_delete", comment_id=comment.id) }}"
|
||||
tooltip="{% trans %}Delete{% endtrans %}"
|
||||
|
||||
@@ -27,25 +27,21 @@
|
||||
</div>
|
||||
<hr>
|
||||
<div class="info-container-item">
|
||||
<div>Cours magistraux</div>
|
||||
<div>{% trans %}Lectures{% endtrans %}</div>
|
||||
<div>{{ object.hours_CM }}h</div>
|
||||
</div>
|
||||
<div class="info-container-item">
|
||||
<div>Travaux dirigés</div>
|
||||
<div>{% trans %}Tutorials{% endtrans %}</div>
|
||||
<div>{{ object.hours_TD }}h</div>
|
||||
</div>
|
||||
<div class="info-container-item">
|
||||
<div>Travaux pratiques</div>
|
||||
<div>{% trans %}Tutorials{% endtrans %}</div>
|
||||
<div>{{ object.hours_TP }}h</div>
|
||||
</div>
|
||||
<div class="info-container-item">
|
||||
<div>Travail hors encadrement</div>
|
||||
<div>{% trans %}Work without supervision{% endtrans %}</div>
|
||||
<div>{{ object.hours_THE }}h</div>
|
||||
</div>
|
||||
<div class="info-container-item">
|
||||
<div>Cours magistraux</div>
|
||||
<div>{{ object.hours_TE }}h</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="info-container-item">
|
||||
<div>{% trans %}Availability{% endtrans %}</div>
|
||||
|
||||
Reference in New Issue
Block a user