finishing comment moderation

parent 414d3779
<div class="ui container segment raised">
<a class="ui ribbon label" href="{% if type == 'document' %}{% url 'core:get_document' comment.document.id %}{% else %}{% url 'core:get_course' comment.course.id %}{% endif %}">Dans {% if type == 'document' %}{{ comment.document.name }}{% elif type == 'course' %}{{ comment.course.name }}{% endif %}</a>
<p><i class="comment icon"></i><i class="{% if comment.isModerated %}check green{% else %}remove red{% endif %} icon"></i>{{comment.user.first_name}} {{comment.user.last_name}}</p>
<p>{{comment.commentDate}}</p>
<p>{{comment.content}}</p>
<div class="ui stackable four column centered grid">
{% if type == 'course' %}
<div class="column">
<a href="{% url 'core:accept' 'course_comment' comment.pk %}" class="ui green labeled icon fluid button"><i class="checkmark icon"></i>Accepter</a>
</div>
<div class="column">
<a href="{% url 'core:reject' 'course_comment' comment.pk %}" class="ui red labeled icon fluid button"><i class="remove icon"></i>Rejeter</a>
</div>
{% elif type == 'document' %}
<div class="column">
<a href="{% url 'core:accept' 'document_comment' comment.pk %}" class="ui green labeled icon fluid button"><i class="checkmark icon"></i>Accepter</a>
</div>
<div class="column">
<a href="{% url 'core:reject' 'document_comment' comment.pk %}" class="ui red labeled icon fluid button"><i class="remove icon"></i>Rejeter</a>
</div>
{% endif %}
</div>
</div>
<div class="ui container">
<div class="ui fluid card">
<div class="content">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment