Select Git revision
Forked from
Stud.IP / Stud.IP
Source project has a limited visibility.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
index.php 1.62 KiB
<article class="studip">
<header>
<h1>
<?= Icon::create('infopage', Icon::ROLE_INACTIVE)->asImg(['class' => 'text-top']) ?>
<?= 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('admin') ?>
</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>