blob: f5aca3258af60c8d84462e029cb15bce5e296ab6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
<div class="blubber_course_info indented">
<div class="headline">
<div class="side">
<a href="<?= URLHelper::getLink("seminar_main.php", ['auswahl' => $course->getId()]) ?>">
<?= htmlReady($course->name) ?>
</a>
<div class="icons">
<ul class="my-courses-navigation">
<? foreach ($icons as $icon) : ?>
<li class="my-courses-navigation-item <? if ($icon->getImage()->signalsAttention()) echo 'my-courses-navigation-important'; ?>">
<a href="<?= URLHelper::getLink("seminar_main.php", ['auswahl' => $course->getId(), 'redirect_to' => $icon->getURL()]) ?>"<?= $icon->getTitle() ? ' title="'.htmlReady($icon->getTitle()).'"' : "" ?>>
<?= $icon->getImage()->asImg(20) ?>
</a>
</li>
<? endforeach ?>
</ul>
</div>
</div>
</div>
<? if ($nextdate) : ?>
<div>
<h4><?= _('Nächster Termin') ?></h4>
<a href="<?= URLHelper::getLink("dispatch.php/course/dates/details/".$nextdate->getId(), ['cid' => $course->id]) ?>" data-dialog="size=auto">
<?= Icon::create('date')->asImg(['class' => "text-bottom"]) ?>
<?= htmlReady($nextdate->getFullname()) ?>
</a>
</div>
<? endif ?>
<div>
<? $sem_class = $course->getSemClass() ?>
<h4><?= htmlReady($sem_class['title_dozent_plural'] ?: $GLOBALS['DEFAULT_TITLE_FOR_STATUS']['dozent'][1]) ?></h4>
<ol class="clean members">
<? foreach ($teachers as $teacher) : ?>
<li>
<a href="<?= URLHelper::getLink("dispatch.php/profile", ['username' => $teacher['username']]) ?>">
<?= Avatar::getAvatar($teacher['user_id'])->getImageTag(Avatar::SMALL) ?>
<?= htmlReady($teacher->getUserFullname()) ?>
</a>
</li>
<? endforeach ?>
</ol>
<? if (count($tutors)) : ?>
<h4><?= htmlReady($sem_class['title_tutor_plural'] ?: $GLOBALS['DEFAULT_TITLE_FOR_STATUS']['tutor'][1]) ?></h4>
<ol class="clean members">
<? foreach ($tutors as $tutor) : ?>
<li>
<a href="<?= URLHelper::getLink("dispatch.php/profile", ['username' => $tutor['username']]) ?>">
<?= Avatar::getAvatar($tutor['user_id'])->getImageTag(Avatar::SMALL) ?>
<?= htmlReady($tutor->getUserFullname()) ?>
</a>
</li>
<? endforeach ?>
</ol>
<? endif ?>
<h4>
<?= sprintf(_("%s %s und %s"), $students_count, $sem_class['title_tutor_plural'] ?: $GLOBALS['DEFAULT_TITLE_FOR_STATUS']['autor'][1], $GLOBALS['DEFAULT_TITLE_FOR_STATUS']['user'][1]) ?>
</h4>
</div>
</div>
<?= $this->render_partial("blubber/_tagcloud") ?>
<? if (!$GLOBALS['perm']->have_perm("admin")) : ?>
<div class="indented new_section">
<a href="#"
onClick="STUDIP.Blubber.followunfollow('<?= htmlReady($thread->id) ?>'); return false;"
class="followunfollow<?= $unfollowed ? " unfollowed" : "" ?>"
title="<?= _("Benachrichtigungen für diese Konversation abstellen.") ?>"
data-thread_id="<?= htmlReady($thread->id) ?>">
<?= Icon::create("notification2+remove")->asImg(20, ['class' => "follow text-bottom"]) ?>
<?= Icon::create("notification2")->asImg(20, ['class' => "unfollow text-bottom"]) ?>
<?= _("Benachrichtigungen aktiviert") ?>
</a>
</div>
<? endif ?>
|