From a0468e69039ad8da5551d06506196a4caf0b18b7 Mon Sep 17 00:00:00 2001 From: Nikolas Nyby Date: Mon, 18 Dec 2023 10:03:11 -0500 Subject: [PATCH] Add unique title to course pages issue #5158 --- mediathread/templates/base_new.html | 2 +- mediathread/templates/courseaffils/course_detail.html | 4 +++- mediathread/templates/courseaffils/course_list.html | 2 +- mediathread/templates/courseaffils/course_update_form.html | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/mediathread/templates/base_new.html b/mediathread/templates/base_new.html index a21182f4d1..e505a54a08 100644 --- a/mediathread/templates/base_new.html +++ b/mediathread/templates/base_new.html @@ -9,7 +9,7 @@ - Mediathread {% block title %}{% endblock %} + {% block title %}{% endblock %} Mediathread diff --git a/mediathread/templates/courseaffils/course_detail.html b/mediathread/templates/courseaffils/course_detail.html index 3f15ace25d..accd1105f8 100644 --- a/mediathread/templates/courseaffils/course_detail.html +++ b/mediathread/templates/courseaffils/course_detail.html @@ -3,7 +3,9 @@ {% load static %} {% block title %} - Home + {% if object %} + {{ object.title }} | + {% endif %} {% endblock %} {% block masthead %} diff --git a/mediathread/templates/courseaffils/course_list.html b/mediathread/templates/courseaffils/course_list.html index 74b282c648..0b2c2f699d 100644 --- a/mediathread/templates/courseaffils/course_list.html +++ b/mediathread/templates/courseaffils/course_list.html @@ -2,7 +2,7 @@ {% load coursetags %} {% load static %} -{% block title %}— My Courses{% endblock %} +{% block title %}My Courses |{% endblock %} {% block coursetitle %} My Courses diff --git a/mediathread/templates/courseaffils/course_update_form.html b/mediathread/templates/courseaffils/course_update_form.html index 175deac1c2..ec7451ff63 100644 --- a/mediathread/templates/courseaffils/course_update_form.html +++ b/mediathread/templates/courseaffils/course_update_form.html @@ -1,7 +1,7 @@ {% extends 'dashboard/base_course_dashboard.html' %} {% load bootstrap4 %} -{% block title %}{{block.super}}— Manage Course{% endblock %} +{% block title %}{{block.super}}Manage Course |{% endblock %} {% block dashboard_content %} {{ form.media }}