Skip to content
Snippets Groups Projects
Select Git revision
  • 930bebbafeb70b813ee83afec9c434838f056413
  • main default protected
  • studip-rector
  • ci-opt
  • course-members-export-as-word
  • data-vue-app
  • pipeline-improvements
  • webpack-optimizations
  • rector
  • icon-renewal
  • http-client-and-factories
  • jsonapi-atomic-operations
  • vueify-messages
  • tic-2341
  • 135-translatable-study-areas
  • extensible-sorm-action-parameters
  • sorm-configuration-trait
  • jsonapi-mvv-routes
  • docblocks-for-magic-methods
19 results

index.php

Blame
  • 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>