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

use correct avatar for study groups, closes #2192

Closes #2192

Merge request !1432
parent aadb2d24
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,11 @@ if (Request::get('range_type')) { ...@@ -35,7 +35,11 @@ if (Request::get('range_type')) {
<tr> <tr>
<td class="avatar"> <td class="avatar">
<a href="<?= $controller->link_for('file/choose_file_from_course/' . $folder_id, array_merge($options, ['course_id' => $course->id])) ?>" data-dialog> <a href="<?= $controller->link_for('file/choose_file_from_course/' . $folder_id, array_merge($options, ['course_id' => $course->id])) ?>" data-dialog>
<?= CourseAvatar::getAvatar($course->id)->getImageTag(Avatar::MEDIUM, ['style' => 'width: 50px; height: 50px;']) ?> <? if ($course->isStudygroup()) : ?>
<?= StudygroupAvatar::getAvatar($course->id)->getImageTag(Avatar::MEDIUM, ['style' => 'width: 50px; height: 50px;']) ?>
<? else : ?>
<?= CourseAvatar::getAvatar($course->id)->getImageTag(Avatar::MEDIUM, ['style' => 'width: 50px; height: 50px;']) ?>
<? endif ?>
</a> </a>
</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