Self hosted FLOSS fitness/workout, nutrition and weight tracker
Show an icon for the edit and delete actions for exercise comments
Roland Geiderac9108b92e67
diff --git a/exercises/templates/view.html b/exercises/templates/view.htmlindex cd56d39ee..65a4ff960 100644--- a/exercises/templates/view.html+++ b/exercises/templates/view.html@@ -49,26 +49,27 @@ $(document).ready(function() {<tbody>{% for comment in exercise.exercisecomment_set.all %}<tr>- <td>- {% if comment_edit.id == comment.id %}- <form action="{% url exercises.views.exercise_view exercise.id comment.id %}" method="post">- {% csrf_token %}- {{ comment_edit_form.comment }}- <input type="submit" value="{% trans "Save" %}" />- </form>- {% else %}+ <td>{{ comment }}- {% endif %}</td><td class="align-right">{% if perms.exercises %}<div class="editoptions"><a href="{% url exercises.views.exercisecomment_delete comment.id %}"- title="{% trans 'Delete' %}"- >[x]</a>+ title="{% trans 'Delete' %}">+ <img src="{% static 'images/icons/trash.svg' %}"+ width="16"+ height="16"+ alt="{% trans 'Delete' %}">+ </a><a href="{% url exercisecomment-edit comment.id %}"title="{% trans 'Edit' %}"- class="modal-dialog">[e]</a>+ class="modal-dialog">+ <img src="{% static 'images/icons/edit.svg' %}"+ width="16"+ height="16"+ alt="{% trans 'Edit' %}">+ </a></div>{% endif %}</td>