aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorThomas Hackl <hackl@data-quest.de>2025-06-16 15:50:24 +0200
committerThomas Hackl <hackl@data-quest.de>2025-06-16 15:51:05 +0200
commit4f15d96653f165313a4704b97fd25ece84ed7bdb (patch)
tree2efad6e9e61d262ffb7f9eea5d09950abd4b902c /templates
parentf0d493a5dca17dccf04e6a697d20f008112071a4 (diff)
Resolve "Studierendenansicht: Messagebox statt Notification"
Closes #5637 Merge request studip/studip!4263
Diffstat (limited to 'templates')
-rw-r--r--templates/change_view.php3
-rw-r--r--templates/header.php19
2 files changed, 11 insertions, 11 deletions
diff --git a/templates/change_view.php b/templates/change_view.php
index ba6a66e..56041f0 100644
--- a/templates/change_view.php
+++ b/templates/change_view.php
@@ -1,5 +1,4 @@
-<?php
-PageLayout::postInfo(sprintf(_('Die Veranstaltung wird in der Ansicht für %s angezeigt. '.
+<?= MessageBox::info(sprintf(_('Die Veranstaltung wird in der Ansicht für %s angezeigt. '.
'Sie können die Ansicht %shier zurücksetzen%s.'),
htmlReady(get_title_for_status($changed_status, 2)),
'<a href="'.URLHelper::getLink('dispatch.php/course/change_view/reset_changed_view').'">', '</a>'));
diff --git a/templates/header.php b/templates/header.php
index c598b66..aa1922f 100644
--- a/templates/header.php
+++ b/templates/header.php
@@ -293,15 +293,6 @@ if ($navigation) {
<div id="current-page-structure" <? if (!($contextable)) echo 'class="contextless"'; ?>>
- <? if (
- PageLayout::isHeaderEnabled()
- && Navigation::hasItem('/course')
- && Navigation::getItem('/course')->isActive()
- && !empty($_SESSION['seminar_change_view_'.Context::getId()])
- ) : ?>
- <?= $this->render_partial('change_view', ['changed_status' => $_SESSION['seminar_change_view_'.Context::getId()]]) ?>
- <? endif ?>
-
<? if (Context::get() || PageLayout::isHeaderEnabled()): ?>
<? if ($contextable) : ?>
<div id="context-title">
@@ -330,6 +321,15 @@ if ($navigation) {
</div>
<? endif ?>
+ <? if (
+ PageLayout::isHeaderEnabled()
+ && Navigation::hasItem('/course')
+ && Navigation::getItem('/course')->isActive()
+ && !empty($_SESSION['seminar_change_view_'.Context::getId()])
+ ) : ?>
+ <?= $this->render_partial('change_view', ['changed_status' => $_SESSION['seminar_change_view_'.Context::getId()]]) ?>
+ <? endif ?>
+
<nav id="navigation-level-2" aria-label="<?= _('Zweite Navigationsebene') ?>">
<? if (PageLayout::isHeaderEnabled() /*&& isset($navigation)*/) : ?>
@@ -363,6 +363,7 @@ if ($navigation) {
}
}
?>
+
<div id="page-title-container" class="hidden-medium-up">
<div id="page-title">
<? if (Context::get() && strpos(PageLayout::getTitle(), Context::getHeaderLine() . ' - ') !== FALSE) : ?>