Skip to content
Snippets Groups Projects
Commit e0111cd1 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

add context title to page title, fixes #2228

Closes #2228

Merge request studip/studip!1459
parent 35202e1e
No related branches found
No related tags found
1 merge request!4Draft: Icon creation
......@@ -21,7 +21,11 @@ class Consultation_AdminController extends ConsultationController
}
$this->activateNavigation('admin');
PageLayout::setTitle(_('Verwaltung der Termine'));
if (Context::isCourse() || Context::isInstitute()) {
PageLayout::setTitle(Context::get()->getFullname() . ' - ' . _('Verwaltung der Termine'));
} else {
PageLayout::setTitle(_('Verwaltung der Termine'));
}
$this->range_config = $this->range->getConfiguration();
......
......@@ -20,7 +20,7 @@ class Course_CoursewareController extends CoursewareController
{
parent::before_filter($action, $args);
PageLayout::setTitle(_('Courseware'));
PageLayout::setTitle(Context::get()->getFullname() . ' - ' . _('Courseware'));
PageLayout::setHelpKeyword('Basis.Courseware');
checkObject();
......
......@@ -11,10 +11,10 @@ class Course_MessengerController extends AuthenticatedController
public function course_action($thread_id = null)
{
PageLayout::setTitle(_("Blubber"));
PageLayout::setTitle(Context::get()->getFullname() . ' - ' . _('Blubber'));
if (Navigation::hasItem('/course/blubber')) {
Navigation::activateItem("/course/blubber");
Navigation::activateItem('/course/blubber');
}
$this->threads = BlubberThread::findByContext(Context::get()->id, true, Context::getType());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment