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

use correct avatar for study groups, closes #2192

Closes #2192

Merge request studip/studip!1432
parent 8dbf9926
No related branches found
No related tags found
1 merge request!4Draft: Icon creation
......@@ -35,7 +35,11 @@ if (Request::get('range_type')) {
<tr>
<td class="avatar">
<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>
</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