aboutsummaryrefslogtreecommitdiff
path: root/app/views/wiki/info.php
blob: 54f9e8628316d9cd03ea69fbd0e2786d66ccdc13 (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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<h1>
    <?= $keyword === 'WikiWikiWeb' ? _("Wiki-Startseite") : htmlReady($keyword) ?>
</h1>

<aside class="wiki-info-aside">
    <table class="default nohover">
        <caption>
            <?= _('Details') ?>
        </caption>

        <tbody>
            <tr>
                <td><?= _('Version') ?></td>
                <td><?= $last_page['version'] ?></td>
            </tr>
            <tr>
                <td><?= _('Erstellt') ?></td>
                <td><?= date('d.m.Y, H:i', $first_page['chdate']) ?></td>
            </tr>
            <tr>
                <td><?= _('Erstellt von') ?></td>
                <td><?= htmlReady($first_user->username) ?></td>
            </tr>
            <tr>
                <td><?= _('Zuletzt geändert') ?></td>
                <td><?= date('d.m.Y, H:i', $last_page['chdate']) ?></td>
            </tr>
            <tr>
                <td><?= _('Geändert von') ?></td>
                <td><?= htmlReady($last_user->username) ?></td>
            </tr>
        </tbody>
    </table>
</aside>

<table class="default nohover wiki-backlinks">
    <caption>
        <?=_('Verweise auf diese Seite') ?>
    </caption>

    <tbody>
        <? if ($backlinks): ?>
            <? foreach (getBacklinks($keyword) as $backlink) : ?>
                <tr>
                    <td>
                        <a href="<?= URLHelper::getLink('wiki.php', ['keyword' => $backlink]) ?>">
                            <?= Icon::create('link-extern') ?>
                            <?= $backlink === 'WikiWikiWeb' ? _('Wiki-Startseite') : htmlReady($backlink) ?>
                        </a>
                    </td>
                </tr>
            <? endforeach ?>
        <? else: ?>
            <tr>
                <td><?= _('keine') ?></td>
            </tr>
        <? endif ?>
    </tbody>
</table>

<table class="default nohover wiki-backlinks">
    <caption>
        <?=_('Untergeordnete Seiten') ?>
    </caption>

    <tbody>
        <? if ($descendants): ?>
            <? foreach ($descendants as $descendant) : ?>
                <tr>
                    <td>
                    <a href="<?= URLHelper::getLink('wiki.php', ['keyword' => $descendant->keyword]) ?>">
                            <?= Icon::create('wiki') ?>
                            <?= htmlReady($descendant->keyword) ?>
                        </a>
                    </td>
                </tr>
            <? endforeach ?>
        <? else: ?>
            <tr>
                <td><?= _('keine') ?></td>
            </tr>
        <? endif ?>
    </tbody>
</table>