Add contest to course

This commit is contained in:
anhkha2003 2024-10-02 14:54:25 -05:00
parent 72eada0a4e
commit f8e9b647c1
22 changed files with 1258 additions and 433 deletions

View file

@ -87,11 +87,16 @@
</div>
{% endif %}
{% if editable_organizations or is_clonable %}
{% if editable_organizations or is_clonable or editable_course %}
<div style="display: flex; gap: 0.5em;">
{% for org in editable_organizations %}
<span> [<a href="{{ url('organization_contest_edit', org.id , org.slug , contest.key) }}">{{ _('Edit in') }} {{org.slug}}</a>]</span>
{% endfor %}
{% if editable_course %}
<span>
[<a href="{{url('edit_course_contest', editable_course.slug, contest.key)}}"}}>{{ _('Edit in') }} {{editable_course.slug}}</a>]
</span>
{% endif %}
{% if is_clonable %}
<span>
[<a href="{{url('contest_clone', contest.key)}}"}}>{{_('Clone')}}</a>]