summaryrefslogtreecommitdiff
path: root/resources/views/admin/control-panel-manager.phtml
blob: d8c17e6e44dbfe60979ee2421db0ef0e2f875a31 (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
<?php use Fisharebest\Webtrees\I18N; ?>

<h1><?= $title ?></h1>

<!-- WEBTREES VERSION -->
<div class="card mb-4">
    <div class="card-header">
        <h2 class="mb-0">
            <?= WT_WEBTREES ?>
            <span class="badge badge-secondary">
                <?= WT_VERSION ?>
            </span>
        </h2>
    </div>
    <div class="card-body">
        <p>
            <?= /* I18N: %s is a URL/link to the project website */
            I18N::translate('Support and documentation can be found at %s.', '<a href="https://webtrees.net/">webtrees.net</a>') ?>
        </p>
    </div>
</div>

<!-- FAMILY TREES -->
<div class="card mb-4 <?= array_sum($changes) ? 'card-outline-danger' : '' ?>">
    <div class="card-header">
        <h2 class="mb-0">
            <?= I18N::translate('Family trees') ?>
            <span class="badge badge-secondary">
                    <?= I18N::number(count($all_trees)) ?>
                </span>
        </h2>
    </div>
    <div class="card-body">
        <table class="table table-sm">
            <caption class="sr-only">
                <?= I18N::translate('Family trees') ?>
            </caption>
            <thead>
                <tr>
                    <th><?= I18N::translate('Family tree') ?></th>
                    <th><span class="sr-only"><?= I18N::translate('Manage family trees') ?></span></th>
                    <th class="text-right"><?= I18N::translate('Pending changes') ?></th>
                    <th class="d-none d-sm-table-cell text-right"><?= I18N::translate('Individuals') ?></th>
                    <th class="d-none d-lg-table-cell text-right"><?= I18N::translate('Families') ?></th>
                    <th class="d-none d-sm-table-cell text-right"><?= I18N::translate('Sources') ?></th>
                    <th class="d-none d-lg-table-cell text-right"><?= I18N::translate('Repositories') ?></th>
                    <th class="d-none d-sm-table-cell text-right"><?= I18N::translate('Media') ?></th>
                    <th class="d-none d-lg-table-cell text-right"><?= I18N::translate('Notes') ?></th>
                </tr>
            </thead>
            <tbody>
                <?= view('admin/control-panel-tree-list', [
                    'all_trees'    => $all_trees,
                    'changes'      => $changes,
                    'individuals'  => $individuals,
                    'families'     => $families,
                    'sources'      => $sources,
                    'repositories' => $repositories,
                    'media'        => $media,
                    'notes'        => $notes,
                ]); ?>
            </tbody>
        </table>
    </div>
</div>