diff options
| author | Moritz Strohm <strohm@data-quest.de> | 2024-09-02 09:41:30 +0000 |
|---|---|---|
| committer | Moritz Strohm <strohm@data-quest.de> | 2024-09-02 09:41:30 +0000 |
| commit | 7cc46886fa8ce53bc2eb0f5ef867ca491e2e1229 (patch) | |
| tree | 7be5fc86c6b5bc6a9904e2ead959499190a9f8aa /app/views/course/details/index.php | |
| parent | f00164f6f8b823872d0934830a466aeb2af7114b (diff) | |
TIC 4392, closes #4392
Closes #4392
Merge request studip/studip!3207
Diffstat (limited to 'app/views/course/details/index.php')
| -rw-r--r-- | app/views/course/details/index.php | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/app/views/course/details/index.php b/app/views/course/details/index.php index 29db9bd..569a266 100644 --- a/app/views/course/details/index.php +++ b/app/views/course/details/index.php @@ -6,6 +6,7 @@ * @var Course_DetailsController $controller * @var string $prelim_discussion * @var stdClass $id_sfx + * @var StudipStudyArea[] $study_areas */ ?> <style> @@ -351,6 +352,12 @@ <? endif ?> <? if (isset($studyAreaTree) && $studyAreaTree->required_children) : ?> + <? + $semester_id = ''; + if ($course->end_semester && $course->end_semester !== Semester::findCurrent()) { + $semester_id = $course->end_semester->id; + } + ?> <article class="studip"> <header> <h1><?= _('Studienbereiche') ?></h1> @@ -361,6 +368,7 @@ 'study_area/tree.php', [ 'node' => $studyAreaTree, + 'semester_id' => $semester_id, 'open' => true, 'dont_open' => Config::get()->COURSE_SEM_TREE_CLOSED_LEVELS ] @@ -377,9 +385,18 @@ </header> <section> <ul class="list-unstyled"> + <? + $url_params = []; + if ($course->end_semester && $course->end_semester !== Semester::findCurrent()) { + $url_params['semester'] = $course->end_semester->id; + } + ?> <? foreach ($study_areas as $area) : ?> + <? + $url_params['node_id'] = 'StudipStudyArea_' . $area->id; + ?> <li> - <a href="<?=URLHelper::getScriptLink('show_bereich.php?level=sbb&id=' . $area->id)?>"> + <a href="<?= URLHelper::getLink('dispatch.php/search/courses', $url_params, true) ?>"> <?= htmlReady($area->getPath(' > ')) ?> </a> </li> |
