blob: 1e7d642b96e596c5848d5f9549598e6789a7b3bb (
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
|
<div class="blubber_private_info indented">
<div class="icon">
<?= Icon::create('group3', Icon::ROLE_INFO)->asImg(50, ['title' => _('Dies ist ein privater Blubber.')]) ?>
</div>
<ul class="clean members">
<? foreach ($mentions as $mention) : ?>
<li>
<? if ($mention['external_contact']) : ?>
<? else : ?>
<? $user = User::find($mention['user_id']) ?>
<? if ($user) : ?>
<? if ($user->getId() !== $GLOBALS['user']->id && count($mentions) > 2) : ?>
<a class="float_right" href="<?= URLHelper::getLink('dispatch.php/blubber/write_to/' . $user->getId()) ?>" data-dialog title="<?= _('Anblubbern') ?>">
<?= Icon::create('blubber')->asImg(['class' => 'text-bottom']) ?>
</a>
<? endif ?>
<? if ($user->getId() === $GLOBALS['user']->id) : ?>
<a class="float_right"
href="<?= URLHelper::getLink("dispatch.php/blubber/leave_private/".$thread->getId()) ?>"
data-dialog="size=auto"
title="<?= _('Gruppe verlassen') ?>"
data-confirm="<?= _('Private Konversation wirklich verlassen?') ?>">
<?= Icon::create('door-leave')->asImg(['class' => 'text-bottom']) ?>
</a>
<? endif ?>
<a href="<?= URLHelper::getLink('dispatch.php/profile', ['username' => $user['username']]) ?>">
<? endif ?>
<?= Avatar::getAvatar($mention['user_id'])->getImageTag(Avatar::SMALL) ?>
<?= $user ? htmlReady($user->getFullName()) : _("unbekannt") ?>
<? if ($user) : ?>
</a>
<? endif ?>
<? endif ?>
</li>
<? endforeach ?>
<li>
<a href="<?= URLHelper::getLink('dispatch.php/blubber/add_member_to_private/'.$thread->getId()) ?>" data-dialog="width=600;height=300">
<?= Icon::create('add')->asImg(25, ['class' => 'text-bottom']) ?>
</a>
</li>
</ul>
</div>
<? if (!$GLOBALS['perm']->have_perm("admin")) : ?>
<div class="indented new_section">
<a href="<?= URLHelper::getLink("dispatch.php/blubber/private_to_studygroup/".$thread->getId()) ?>" data-dialog="size=auto">
<?= _("Aus diesem Blubber eine Studiengruppe machen.") ?>
</a>
</div>
<? endif ?>
|