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

consultations: fix display of responsible persons in ungrouped view, fixes #767

parent fa94ef62
No related branches found
No related tags found
No related merge requests found
......@@ -44,12 +44,16 @@
<?= $displayNote($slot->note, 29, 'below') ?>
</td>
<td>
<? if ($block->teacher): ?>
<a href="<?= URLHelper::getLink('dispatch.php/profile', ['username' => $block->teacher->username]) ?>">
<?= htmlReady($block->teacher->getFullName()) ?>
</a>
<? else: ?>
&ndash;
<? if (count($block->responsibilities) > 0): ?>
<ul class="default">
<? foreach ($block->responsibilities as $responsibility): ?>
<li>
<a href="<?= URLHelper::getLink($responsibility->getURL(), [], true) ?>">
<?= htmlReady($responsibility->getName()) ?>
</a>
</li>
<? endforeach; ?>
</ul>
<? endif; ?>
</td>
<td>
......
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