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

fix avatar image and add @var docblock, fixes #3142

Closes #3142

Merge request studip/studip!2118
parent c7b7dc0c
No related branches found
No related tags found
No related merge requests found
<?php
/**
* @var Deputy[] $my_bosses
* @var bool $deputies_edit_about_enabled
* @var MyCoursesController $controller
*/
?>
<table class="default" id="my_deputy_bosses"> <table class="default" id="my_deputy_bosses">
<caption> <caption>
<?= _('Personen, deren Standardvertretung ich bin') ?> <?= _('Personen, deren Standardvertretung ich bin') ?>
...@@ -18,10 +25,14 @@ ...@@ -18,10 +25,14 @@
<? $boss_fullname = $boss->getBossFullname(); ?> <? $boss_fullname = $boss->getBossFullname(); ?>
<tr> <tr>
<td> <td>
<?= Avatar::getAvatar($boss->user_id)->getImageTag(Avatar::SMALL, ['title' => $boss_fullname]) ?> <a href="<?= $controller->link_for('profile', ['username' => $boss->boss_username]) ?>">
<?= Avatar::getAvatar($boss->range_id)->getImageTag(Avatar::SMALL, ['title' => $boss_fullname]) ?>
</a>
</td> </td>
<td> <td>
<?= htmlReady($boss_fullname)?> <a href="<?= $controller->link_for('profile', ['username' => $boss->boss_username]) ?>">
<?= htmlReady($boss_fullname)?>
</a>
</td> </td>
<td class="actions"> <td class="actions">
<? if ($boss->edit_about && $deputies_edit_about_enabled) : ?> <? if ($boss->edit_about && $deputies_edit_about_enabled) : ?>
......
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