Skip to content
Snippets Groups Projects
Commit 2e02fcd8 authored by Martin Mareš's avatar Martin Mareš
Browse files

"Copy topic" button moved to the topic navigation bar

Closes #96.
parent 63894c35
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,6 @@
<p class=buttons>{{ form.submit(class='ok', accesskey='s') }}
{% if edit_topic != None %}
{{ form.publish(class='ok', disabled=edit_topic.public, title='Publish the topic and notify students.') }}
<a class=button accesskey='c' href='{{ url_for('admin_copy_topic', sident=g.course.semester.ident, cident=g.course.ident, tid=edit_topic.tid) }}'>Copy</a>
{% endif %}
<a class=button accesskey='x' href='{{ url_for('admin_topics', sident=parent_course.semester.ident, cident=parent_course.ident) }}'>Cancel</a>
{% if edit_topic != None %}
......
......@@ -22,6 +22,7 @@
{% endif %}
{% if g.is_teacher %}
{{ nav_button(active == 'edit-topic', 'e', url_for('admin_edit_topic', sident=g.course.semester.ident, cident=g.course.ident, tid=g.topic.tid), 'Edit topic') }}
{{ nav_button(active == 'copy-topic', 'c', url_for('admin_copy_topic', sident=g.course.semester.ident, cident=g.course.ident, tid=g.topic.tid), 'Copy topic') }}
{% if g.course.student_grading and is_normal_topic %}
{{ nav_button(active == 'graders', 'g', url_for('admin_topic_graders', sident=g.course.semester.ident, cident=g.course.ident, tid=g.topic.tid), 'Graders') }}
{% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment