{% load i18n learning %}
{% trans "Priority" %} | {% trans "Name" %} | {% trans "Access" %} | {% trans "Reusability" %} | {% trans "Author" %} | {% trans "Actions" %} |
---|---|---|---|---|---|
{% if course_activity.rank != 1 %} {% endif %} | {% with activity=course_activity.activity %} {% get_object_perms activity user as activity_perms %}{% if "view_activity" in activity_perms %} {{ activity.name }} {% else %} {{ activity.name }} {% endif %} | {{ activity.get_access_display }} | {{ activity.get_reuse_display }} | {{ activity.author }} |
{% if "change_course" in course_perms and not course.read_only %}
{% include 'learning/course/_includes/details/modals/unlink_attached_activity.html' with activity=activity course=course %}
{% endif %}
{% if "change_activity" in activity_perms %}
{% endif %}
{% if "change_course" in course_perms and "delete_activity" in activity_perms %}
{% include 'learning/course/_includes/details/modals/delete_attached_activity.html' with activity=activity course=course %}
{% endif %}
|
{% endwith %}