diff --git a/courses/templates/topic/create.html b/courses/templates/topic/create.html index 4c93ec7..c27ce08 100644 --- a/courses/templates/topic/create.html +++ b/courses/templates/topic/create.html @@ -1,6 +1,11 @@ {% extends 'subject/index.html' %} -{% load static i18n permission_tags widget_tweaks %} +{% load static i18n permission_tags widget_tweaks django_bootstrap_breadcrumbs %} + +{% block breadcrumbs %} + {{ block.super }} + {% breadcrumb 'Create Topic' 'course:create_topic' %} +{% endblock breadcrumbs %} {% block content %} diff --git a/courses/templates/topic/index.html b/courses/templates/topic/index.html index 05913ab..a879755 100644 --- a/courses/templates/topic/index.html +++ b/courses/templates/topic/index.html @@ -1,6 +1,6 @@ -{% extends 'home.html' %} +{% extends 'subject/index.html' %} -{% load static i18n permission_tags professor_access %} +{% load static i18n permission_tags professor_access django_bootstrap_breadcrumbs %} {% block javascript %} @@ -12,18 +12,8 @@ {% block breadcrumbs %} - - + {{ block.super }} + {% breadcrumb topic.name 'course:view_topic' %} {% endblock %} {% block content %} diff --git a/courses/templates/topic/replicate.html b/courses/templates/topic/replicate.html index d0fb6a9..842180c 100644 --- a/courses/templates/topic/replicate.html +++ b/courses/templates/topic/replicate.html @@ -1,6 +1,11 @@ {% extends 'subject/index.html' %} -{% load static i18n permission_tags widget_tweaks %} +{% load static i18n permission_tags widget_tweaks django_bootstrap_breadcrumbs %} + +{% block breadcrumbs %} + {{ block.super }} + {% breadcrumb 'Replicate Topic' 'course:replicate_topic' %} +{% endblock breadcrumbs %} {% block content %} diff --git a/courses/views.py b/courses/views.py index 35143b7..d7678c8 100644 --- a/courses/views.py +++ b/courses/views.py @@ -639,6 +639,7 @@ class TopicsView(LoginRequiredMixin, LogMixin, generic.ListView): context['topic'] = topic context['subject'] = topic.subject + context['course'] = topic.subject.course context['activitys'] = activitys context['students_activit'] = students_activit context['materials'] = materials -- libgit2 0.21.2