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