aboutsummaryrefslogtreecommitdiff
path: root/app/views/course/scm/index.php
blob: d0b2ffccf96612328534ac361ee338c217f10a67 (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
<article class="studip">
    <header>
        <h1>
            <?= htmlReady(isset($scm) ? $scm->tab_name : '') ?>
        </h1>
        <nav>
            <span>
            <? if (isset($scm) && $scm->user): ?>
                <?= sprintf(_('Zuletzt geändert von %s am %s'), ObjectdisplayHelper::link($scm->user), strftime('%x, %X', $scm->chdate)) ?>
            <? else: ?>
                <?= isset($scm) && $scm->chdate ? sprintf(_('Zuletzt geändert am %s'), strftime('%x, %X', $scm->chdate)) : '' ?>
            <? endif; ?>
            </span>
        <? if ($priviledged): ?>
            <a href="<?= $controller->edit($scm) ?>" title="<?= _('Bearbeiten') ?>" data-dialog>
                <?= Icon::create('edit') ?>
            </a>
            <? if (count($scms) > 1): ?>
                <? if ($scm->position != 0): ?>
                    <a href="<?= $controller->move($scm) ?>" title="<?= _('Diese Seite an die erste Position setzen') ?>">
                        <?= Icon::create('arr_2up') ?>
                    </a>
                <? endif; ?>
                <a href="<?= $controller->link_for('course/scm/' . $scm->id, ['verify' => 'delete']) ?>" title="<?= _('Diese Seite löschen') ?>">
                    <?= Icon::create('trash') ?>
                </a>
            <? endif; ?>
        <? endif; ?>
        </nav>
    </header>
    <section>
        <?= (isset($scm) && (string) $scm->content) ? formatReady($scm->content) : MessageBox::info(_('In diesem Bereich wurden noch keine Inhalte erstellt.')) ?>
    </section>
</article>