Skip to content
Snippets Groups Projects
Select Git revision
  • 03388cb4f2eee8dfce2c1655252471e5e04ba4b3
  • main default protected
  • step-3263
  • feature/plugins-cli
  • feature/vite
  • step-2484-peerreview
  • biest/issue-5051
  • tests/simplify-jsonapi-tests
  • fix/typo-in-1a70031
  • feature/broadcasting
  • database-seeders-and-factories
  • feature/peer-review-2
  • feature-feedback-jsonapi
  • feature/peerreview
  • feature/balloon-plus
  • feature/stock-images-unsplash
  • tic-2588
  • 5.0
  • 5.2
  • biest/unlock-blocks
  • biest-1514
21 results

config.inc.php.dist

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.88 KiB
    <?php
    /**
     * @var array<string, string> $mapping
     * @var array<int, TracToGitlab\GitlabIssue> $issues
     */
    ?>
    <table class="default">
        <thead>
            <tr>
                <th><?= _('Issue') ?></th>
                <th><?= _('Typ') ?></th>
                <th><?= _('Status') ?></th>
                <th><?= _('Titel') ?></th>
                <th><?= _('Autor') ?></th>
                <th><?= _('Bearbeiter') ?></th>
            <? foreach ($mapping as $label => $abbrevation): ?>
                <th>
                    <abbr title="<?= htmlReady($label) ?>">
                        <?= htmlReady($abbrevation) ?>
                    </abbr>
                </th>
            <? endforeach; ?>
            </tr>
        </thead>
        <tbody>
        <? if (!$issues): ?>
            <tr>
                <td colspan="<?= 6 + count($mapping) ?>" style="text-align: center">
                    <?= _('Keine Issues für diesen Meilenstein und Typ') ?>
                </td>
            </tr>
        <? endif; ?>
        <? foreach ($issues as $issue): ?>
            <tr>
                <td>
                    <a href="<?= htmlReady($issue->web_url) ?>" target="_blank">
                        #<?= htmlReady($issue->iid) ?>
                    </a>
                </td>
                <td><?= htmlReady($issue->type) ?></td>
                <td>
                <? if ($issue->isClosed()): ?>
                    closed
                <? else: ?>
                    open
                <? endif; ?>
                </td>
                <td>
                    <a href="<?= htmlReady($issue->web_url) ?>" target="_blank">
                        <?= htmlReady($issue->title) ?>
                    </a>
                </td>
                <td><?= htmlReady($issue->author['username']) ?></td>
                <td><?= htmlReady($issue->assignee) ?></td>
            <? foreach ($mapping as $label => $abbrevation): ?>
                <td>
                    <?= $issue->getIconForQMLabel($label) ?>
                </td>
            <? endforeach; ?>
            </tr>
        <? endforeach; ?>
        </tbody>
    </table>