diff --git a/courses/templates/topic/index.html b/courses/templates/topic/index.html index a879755..8dafff3 100644 --- a/courses/templates/topic/index.html +++ b/courses/templates/topic/index.html @@ -13,7 +13,7 @@ {% block breadcrumbs %} {{ block.super }} - {% breadcrumb topic.name 'course:view_topic' %} + {% breadcrumb topic.name 'course:view_topic' topic.slug %} {% endblock %} {% block content %} diff --git a/forum/templates/forum/forum_view.html b/forum/templates/forum/forum_view.html index f56bfae..c48e989 100644 --- a/forum/templates/forum/forum_view.html +++ b/forum/templates/forum/forum_view.html @@ -1,6 +1,6 @@ -{% extends 'home.html' %} +{% extends 'topic/index.html' %} -{% load static i18n permission_tags list_post %} +{% load static i18n permission_tags list_post django_bootstrap_breadcrumbs %} {% load widget_tweaks %} {% block javascript %} @@ -8,17 +8,8 @@ {% endblock %} {% block breadcrumbs %} - -
+ {{ block.super }} + {% breadcrumb forum 'course:forum:view' forum.slug %} {% endblock %} diff --git a/forum/views.py b/forum/views.py index fdb789d..d8eb781 100644 --- a/forum/views.py +++ b/forum/views.py @@ -245,6 +245,9 @@ class ForumDetailView(LoginRequiredMixin, LogMixin, generic.DetailView): context['form'] = PostForm() context['forum'] = forum context['title'] = forum.name + context['course'] = forum.topic.subject.course + context['subject'] = forum.topic.subject + context['topic'] = forum.topic return context -- libgit2 0.21.2