From c6a241a7665bcfd918b4d670b03320571ce6697d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Kon=C4=8Dick=C3=BD?= <koncicky@kam.mff.cuni.cz> Date: Thu, 18 Mar 2021 18:49:07 +0100 Subject: [PATCH] Topic: Teachers can edit topic from the topic itself --- templates/topic.html | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/topic.html b/templates/topic.html index 47e27db..8e8f998 100644 --- a/templates/topic.html +++ b/templates/topic.html @@ -11,6 +11,7 @@ <a class="button" href='{{ url_for('course_index', cident=g.course.ident) }}'>Back to the course</a> {% if g.is_teacher %} <a class="button" href='{{ url_for('teacher', cident=g.course.ident) }}'>Teacher's summary</a> + <a class="button" href='{{ url_for('admin_edit_topic', cident=g.course.ident, tid=g.topic.tid) }}'>Edit topic</a> {% elif g.is_grader %} <a class="button" href='{{ url_for('topic_student_grade', cident=g.course.ident, tident=g.topic.ident) }}'>Grade</a> {% endif %} -- GitLab