Skip to content
Snippets Groups Projects
Commit 5f8fee0a authored by Moritz Strohm's avatar Moritz Strohm
Browse files

fix for BIESt #1128

Merge request studip/studip!673
parent e2b8f3dd
No related branches found
No related tags found
No related merge requests found
......@@ -155,13 +155,11 @@ $pagechooser = null;
<? endif ?>
<!-- Bereiche / Themen darstellen -->
<? if (!empty($constraint['depth'])) : ?>
<? if ($constraint['depth'] == 0) : ?>
<? if (empty($constraint['depth'])) : ?>
<?= $this->render_partial('course/forum/index/_areas') ?>
<? elseif ($constraint['depth'] == 1) : ?>
<?= $this->render_partial('course/forum/index/_threads') ?>
<? endif ?>
<? endif ?>
<? if (!empty($postings)) : ?>
<!-- Beiträge für das ausgewählte Thema darstellen -->
......@@ -176,8 +174,7 @@ $pagechooser = null;
<? endif ?>
<!-- Erstellen eines neuen Elements (Kategorie, Thema, Beitrag) -->
<? if (!empty($constraint['depth'])) : ?>
<? if ($constraint['depth'] == 0) : ?>
<? if (empty($constraint['depth'])) : ?>
<div style="clear: right; text-align: center">
<div class="button-group">
<? if (ForumPerm::has('abo', $seminar_id) && $section == 'index') : ?>
......@@ -192,7 +189,7 @@ $pagechooser = null;
</div>
</div>
<? if ($section == 'index' && $constraint['depth'] == 0 && ForumPerm::has('add_category', $seminar_id)) : ?>
<? if ($section == 'index' && ForumPerm::has('add_category', $seminar_id)) : ?>
<?= $this->render_partial('course/forum/index/_new_category') ?>
<? endif ?>
<? else : ?>
......@@ -206,7 +203,6 @@ $pagechooser = null;
['onClick' => 'STUDIP.Forum.answerEntry(); return false;',
'class' => 'hideWhenClosed',]) ?>
<? endif ?>
<? if ($constraint['depth'] > 1 && ($constraint['closed'] == 1)) : ?>
<?= Studip\LinkButton::create($button_face, $controller->url_for('course/forum/index/index/' . $topic_id. '?answer=1'),
['onClick' => 'STUDIP.Forum.answerEntry(); return false;',
......@@ -245,7 +241,6 @@ $pagechooser = null;
</div>
<? endif ?>
<? endif ?>
<? endif ?>
<? if ( (ForumPerm::has('add_area', $this->seminar_id))
|| ($constraint['depth'] >= 1 && ForumPerm::has('add_entry', $seminar_id)) ): ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment