xref: /webtrees/resources/views/admin/control-panel.phtml (revision aa6f03bb51be5a55a78fe8aed18753116689a6d3)
1dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\I18N; ?>
2dd6b2bfcSGreg Roach
3dd6b2bfcSGreg Roach<h1><?= $title ?></h1>
4dd6b2bfcSGreg Roach
5dd6b2bfcSGreg Roach<!-- WEBSITE / WEBTREES -->
6dd6b2bfcSGreg Roach<div class="card mb-4">
7dd6b2bfcSGreg Roach    <div class="card-header">
8dd6b2bfcSGreg Roach        <h2 class="mb-0">
9dd6b2bfcSGreg Roach            <?= I18N::translate('Website') ?>
10dd6b2bfcSGreg Roach            <span class="badge badge-secondary">
11dd6b2bfcSGreg Roach                <?= WT_VERSION ?>
12dd6b2bfcSGreg Roach            </span>
13dd6b2bfcSGreg Roach        </h2>
14dd6b2bfcSGreg Roach    </div>
15dd6b2bfcSGreg Roach    <div class="card-body">
16dd6b2bfcSGreg Roach        <?php foreach ($server_warnings as $server_warning) : ?>
17dd6b2bfcSGreg Roach            <p class="alert alert-warning"><?= $server_warning ?></p>
18dd6b2bfcSGreg Roach        <?php endforeach ?>
19dd6b2bfcSGreg Roach
20dd6b2bfcSGreg Roach        <p class="card-text">
21dd6b2bfcSGreg Roach            <?= /* I18N: %s is a URL/link to the project website */
22dd6b2bfcSGreg Roach            I18N::translate('Support and documentation can be found at %s.', '<a href="https://webtrees.net/">webtrees.net</a>') ?>
23dd6b2bfcSGreg Roach        </p>
24dd6b2bfcSGreg Roach        <p class="card-text ">
25dd6b2bfcSGreg Roach            <?php if ($latest_version === '') : ?>
26dd6b2bfcSGreg Roach                <?= I18N::translate('No upgrade information is available.') ?>
27dd6b2bfcSGreg Roach            <?php elseif (version_compare(WT_VERSION, $latest_version) < 0) : ?>
28dd6b2bfcSGreg Roach                <?= I18N::translate('A new version of webtrees is available.') ?>
29dd6b2bfcSGreg Roach                <a href="<?= e(route('upgrade')) ?>" class="error">
30dd6b2bfcSGreg Roach                    <?= /* I18N: %s is a version number */
31dd6b2bfcSGreg Roach                    I18N::translate('Upgrade to webtrees %s.', e($latest_version)) ?>
32dd6b2bfcSGreg Roach                </a>
33dd6b2bfcSGreg Roach            <?php else : ?>
34dd6b2bfcSGreg Roach                <?= I18N::translate('This is the latest version of webtrees. No upgrade is available.') ?>
35dd6b2bfcSGreg Roach            <?php endif ?>
36dd6b2bfcSGreg Roach        </p>
37dd6b2bfcSGreg Roach
38dd6b2bfcSGreg Roach        <div class="row">
39dd6b2bfcSGreg Roach            <div class="col-sm-6">
40dd6b2bfcSGreg Roach                <ul class="fa-ul">
41dd6b2bfcSGreg Roach                    <li>
42dd6b2bfcSGreg Roach                        <span class="fa-li"><?= view('icons/preferences') ?></span>
43dd6b2bfcSGreg Roach                        <a href="<?= e(route('admin-site-preferences')) ?>">
44dd6b2bfcSGreg Roach                            <?= I18N::translate('Website preferences') ?>
45dd6b2bfcSGreg Roach                        </a>
46dd6b2bfcSGreg Roach                    </li>
47dd6b2bfcSGreg Roach                    <li>
48dd6b2bfcSGreg Roach                        <span class="fa-li"><?= view('icons/preferences') ?></span>
49dd6b2bfcSGreg Roach                        <a href="<?= e(route('admin-site-mail')) ?>">
50dd6b2bfcSGreg Roach                            <?= I18N::translate('Sending email') ?>
51dd6b2bfcSGreg Roach                        </a>
52dd6b2bfcSGreg Roach                    </li>
53dd6b2bfcSGreg Roach                    <li>
54dd6b2bfcSGreg Roach                        <span class="fa-li"><?= view('icons/preferences') ?></span>
55dd6b2bfcSGreg Roach                        <a href="<?= e(route('admin-site-registration')) ?>">
56dd6b2bfcSGreg Roach                            <?= I18N::translate('Sign-in and registration') ?>
57dd6b2bfcSGreg Roach                        </a>
58dd6b2bfcSGreg Roach                    </li>
59dd6b2bfcSGreg Roach                    <li>
60dd6b2bfcSGreg Roach                        <span class="fa-li"><?= view('icons/preferences') ?></span>
61dd6b2bfcSGreg Roach                        <a href="<?= e(route('admin-site-languages')) ?>">
62dd6b2bfcSGreg Roach                            <?= I18N::translate('Languages') ?>
63dd6b2bfcSGreg Roach                        </a>
64dd6b2bfcSGreg Roach                    </li>
65dd6b2bfcSGreg Roach                    <li>
66dd6b2bfcSGreg Roach                        <span class="fa-li"><?= view('icons/preferences') ?></span>
67dd6b2bfcSGreg Roach                        <a href="<?= e(route('admin-site-analytics')) ?>">
68dd6b2bfcSGreg Roach                            <?= I18N::translate('Tracking and analytics') ?>
69dd6b2bfcSGreg Roach                        </a>
70dd6b2bfcSGreg Roach                    </li>
71dd6b2bfcSGreg Roach                </ul>
72dd6b2bfcSGreg Roach            </div>
73dd6b2bfcSGreg Roach            <div class="col-sm-6">
74dd6b2bfcSGreg Roach                <ul class="fa-ul">
75dd6b2bfcSGreg Roach                    <li>
76dd6b2bfcSGreg Roach                        <span class="fa-li"><?= view('icons/preferences') ?></span>
77dd6b2bfcSGreg Roach                        <a href="<?= e(route('admin-site-logs')) ?>">
78dd6b2bfcSGreg Roach                            <?= I18N::translate('Website logs') ?>
79dd6b2bfcSGreg Roach                        </a>
80dd6b2bfcSGreg Roach                    </li>
81dd6b2bfcSGreg Roach                    <li>
82dd6b2bfcSGreg Roach                        <span class="fa-li"><?= view('icons/preferences') ?></span>
83dd6b2bfcSGreg Roach                        <a href="<?= e(route('admin-clean-data')) ?>">
84dd6b2bfcSGreg Roach                            <?= I18N::translate('Clean up data folder') ?>
85dd6b2bfcSGreg Roach                        </a>
86dd6b2bfcSGreg Roach                    </li>
87dd6b2bfcSGreg Roach                    <li>
88dd6b2bfcSGreg Roach                        <span class="fa-li"><?= view('icons/preferences') ?></span>
89dd6b2bfcSGreg Roach                        <a href="<?= e(route('admin-site-information')) ?>">
90dd6b2bfcSGreg Roach                            <?= I18N::translate('Server information') ?>
91dd6b2bfcSGreg Roach                        </a>
92dd6b2bfcSGreg Roach                    </li>
93dd6b2bfcSGreg Roach                </ul>
94dd6b2bfcSGreg Roach            </div>
95dd6b2bfcSGreg Roach        </div>
96dd6b2bfcSGreg Roach    </div>
97dd6b2bfcSGreg Roach</div>
98dd6b2bfcSGreg Roach
99dd6b2bfcSGreg Roach<!-- FAMILY TREES -->
100dd6b2bfcSGreg Roach<div class="card mb-4 <?= array_sum($changes) ? 'card-outline-danger' : '' ?>">
101dd6b2bfcSGreg Roach    <div class="card-header">
102dd6b2bfcSGreg Roach        <h2 class="mb-0">
103dd6b2bfcSGreg Roach            <?= I18N::translate('Family trees') ?>
104dd6b2bfcSGreg Roach            <span class="badge badge-secondary">
105dd6b2bfcSGreg Roach                    <?= I18N::number(count($all_trees)) ?>
106dd6b2bfcSGreg Roach                </span>
107dd6b2bfcSGreg Roach        </h2>
108dd6b2bfcSGreg Roach    </div>
109dd6b2bfcSGreg Roach    <div class="card-body">
110dd6b2bfcSGreg Roach        <table class="table table-sm">
111dd6b2bfcSGreg Roach            <caption class="sr-only">
112dd6b2bfcSGreg Roach                <?= I18N::translate('Family trees') ?>
113dd6b2bfcSGreg Roach            </caption>
114dd6b2bfcSGreg Roach            <thead>
115dd6b2bfcSGreg Roach                <tr>
116dd6b2bfcSGreg Roach                    <th><?= I18N::translate('Family tree') ?></th>
117dd6b2bfcSGreg Roach                    <th><span class="sr-only"><?= I18N::translate('Manage family trees') ?></span></th>
118dd6b2bfcSGreg Roach                    <th class="text-right"><?= I18N::translate('Pending changes') ?></th>
119dd6b2bfcSGreg Roach                    <th class="d-none d-sm-table-cell text-right"><?= I18N::translate('Individuals') ?></th>
120dd6b2bfcSGreg Roach                    <th class="d-none d-lg-table-cell text-right"><?= I18N::translate('Families') ?></th>
121dd6b2bfcSGreg Roach                    <th class="d-none d-sm-table-cell text-right"><?= I18N::translate('Sources') ?></th>
122dd6b2bfcSGreg Roach                    <th class="d-none d-lg-table-cell text-right"><?= I18N::translate('Repositories') ?></th>
123dd6b2bfcSGreg Roach                    <th class="d-none d-sm-table-cell text-right"><?= I18N::translate('Media') ?></th>
124dd6b2bfcSGreg Roach                    <th class="d-none d-lg-table-cell text-right"><?= I18N::translate('Notes') ?></th>
125dd6b2bfcSGreg Roach                </tr>
126dd6b2bfcSGreg Roach            </thead>
127dd6b2bfcSGreg Roach            <tbody>
128dd6b2bfcSGreg Roach                <?= view('admin/control-panel-tree-list', [
129dd6b2bfcSGreg Roach                    'all_trees'    => $all_trees,
130dd6b2bfcSGreg Roach                    'changes'      => $changes,
131dd6b2bfcSGreg Roach                    'individuals'  => $individuals,
132dd6b2bfcSGreg Roach                    'families'     => $families,
133dd6b2bfcSGreg Roach                    'sources'      => $sources,
134dd6b2bfcSGreg Roach                    'repositories' => $repositories,
135dd6b2bfcSGreg Roach                    'media'        => $media,
136dd6b2bfcSGreg Roach                    'notes'        => $notes,
137dd6b2bfcSGreg Roach                ]); ?>
138dd6b2bfcSGreg Roach            </tbody>
139dd6b2bfcSGreg Roach            <tfoot>
140dd6b2bfcSGreg Roach                <tr>
141dd6b2bfcSGreg Roach                    <th scope="row">
142dd6b2bfcSGreg Roach                        <?= I18N::translate('Total') ?>
143dd6b2bfcSGreg Roach                    </th>
144dd6b2bfcSGreg Roach                    <td></td>
145dd6b2bfcSGreg Roach                    <td class="text-right">
146dd6b2bfcSGreg Roach                        <?= I18N::number(array_sum($changes)) ?>
147dd6b2bfcSGreg Roach                    </td>
148dd6b2bfcSGreg Roach                    <td class="d-none d-sm-table-cell text-right">
149dd6b2bfcSGreg Roach                        <?= I18N::number(array_sum($individuals)) ?>
150dd6b2bfcSGreg Roach                    </td>
151dd6b2bfcSGreg Roach                    <td class="d-none d-lg-table-cell text-right">
152dd6b2bfcSGreg Roach                        <?= I18N::number(array_sum($families)) ?>
153dd6b2bfcSGreg Roach                    </td>
154dd6b2bfcSGreg Roach                    <td class="d-none d-sm-table-cell text-right">
155dd6b2bfcSGreg Roach                        <?= I18N::number(array_sum($sources)) ?>
156dd6b2bfcSGreg Roach                    </td>
157dd6b2bfcSGreg Roach                    <td class="d-none d-lg-table-cell text-right">
158dd6b2bfcSGreg Roach                        <?= I18N::number(array_sum($repositories)) ?>
159dd6b2bfcSGreg Roach                    </td>
160dd6b2bfcSGreg Roach                    <td class="d-none d-sm-table-cell text-right">
161dd6b2bfcSGreg Roach                        <?= I18N::number(array_sum($media)) ?>
162dd6b2bfcSGreg Roach                    </td>
163dd6b2bfcSGreg Roach                    <td class="d-none d-lg-table-cell text-right">
164dd6b2bfcSGreg Roach                        <?= I18N::number(array_sum($notes)) ?>
165dd6b2bfcSGreg Roach                    </td>
166dd6b2bfcSGreg Roach                </tr>
167dd6b2bfcSGreg Roach            </tfoot>
168dd6b2bfcSGreg Roach        </table>
169dd6b2bfcSGreg Roach
170dd6b2bfcSGreg Roach        <ul class="fa-ul">
171dd6b2bfcSGreg Roach            <li>
172dd6b2bfcSGreg Roach                <span class="fa-li"><?= view('icons/preferences') ?></span>
173*aa6f03bbSGreg Roach                <a href="<?= e(route('admin-trees', ['ged' => $tree->name()])) ?>">
174dd6b2bfcSGreg Roach                    <?= I18N::translate('Manage family trees') ?>
175dd6b2bfcSGreg Roach                </a>
176dd6b2bfcSGreg Roach            </li>
177dd6b2bfcSGreg Roach            <li>
178dd6b2bfcSGreg Roach                <span class="fa-li"><?= view('icons/preferences') ?></span>
179dd6b2bfcSGreg Roach                <a href="<?= e(route('tree-page-default-edit')) ?>">
180dd6b2bfcSGreg Roach                    <?= I18N::translate('Set the default blocks for new family trees') ?>
181dd6b2bfcSGreg Roach                </a>
182dd6b2bfcSGreg Roach            </li>
183dd6b2bfcSGreg Roach            <?php if (count($all_trees) > 1) : ?>
184dd6b2bfcSGreg Roach                <li>
185dd6b2bfcSGreg Roach                    <span class="fa-li"><?= view('icons/preferences') ?></span>
186dd6b2bfcSGreg Roach                    <a href="<?= e(route('admin-trees-merge')) ?>">
187dd6b2bfcSGreg Roach                        <?= I18N::translate('Merge family trees') ?>
188dd6b2bfcSGreg Roach                    </a>
189dd6b2bfcSGreg Roach                </li>
190dd6b2bfcSGreg Roach            <?php endif ?>
191dd6b2bfcSGreg Roach        </ul>
192dd6b2bfcSGreg Roach    </div>
193dd6b2bfcSGreg Roach</div>
194dd6b2bfcSGreg Roach
195dd6b2bfcSGreg Roach<!-- USERS -->
196dd6b2bfcSGreg Roach<div class="card mb-4 <?= $unapproved || $unverified ? 'card-outline-danger' : '' ?>">
197dd6b2bfcSGreg Roach    <div class="card-header">
198dd6b2bfcSGreg Roach        <h2 class="mb-0">
199dd6b2bfcSGreg Roach            <?= I18N::translate('Users') ?>
200dd6b2bfcSGreg Roach            <span class="badge badge-secondary">
201dd6b2bfcSGreg Roach                    <?= I18N::number(count($all_users)) ?>
202dd6b2bfcSGreg Roach                </span>
203dd6b2bfcSGreg Roach        </h2>
204dd6b2bfcSGreg Roach    </div>
205dd6b2bfcSGreg Roach    <div class="card-body">
206dd6b2bfcSGreg Roach        <dl class="row">
207dd6b2bfcSGreg Roach            <?php foreach ([I18N::translate('Administrators') => $administrators, I18N::translate('Managers') => $managers, I18N::translate('Moderators') => $moderators, I18N::translate('Not verified by the user') => $unverified, I18N::translate('Not approved by an administrator') => $unapproved] as $label => $list) : ?>
208dd6b2bfcSGreg Roach                <?php if (!empty($list)) : ?>
209dd6b2bfcSGreg Roach                    <dt class="col-sm-3">
210dd6b2bfcSGreg Roach                        <?= $label ?>
211dd6b2bfcSGreg Roach                    </dt>
212dd6b2bfcSGreg Roach                    <dd class="col-sm-9">
213dd6b2bfcSGreg Roach                        <?php foreach ($list as $n => $user) : ?>
214dd6b2bfcSGreg Roach                            <?= $n ? I18N::$list_separator : '' ?>
215dd6b2bfcSGreg Roach                            <a href="<?= e(route('admin-users-edit', ['user_id' => $user->getUserId()])) ?>" dir="auto">
216dd6b2bfcSGreg Roach                                <?= e($user->getRealName()) ?>
217dd6b2bfcSGreg Roach                            </a>
218dd6b2bfcSGreg Roach                        <?php endforeach ?>
219dd6b2bfcSGreg Roach                    </dd>
220dd6b2bfcSGreg Roach                <?php endif ?>
221dd6b2bfcSGreg Roach            <?php endforeach ?>
222dd6b2bfcSGreg Roach        </dl>
223dd6b2bfcSGreg Roach
224dd6b2bfcSGreg Roach        <div class="row">
225dd6b2bfcSGreg Roach            <div class="col-sm-6">
226dd6b2bfcSGreg Roach                <ul class="fa-ul">
227dd6b2bfcSGreg Roach                    <li>
228dd6b2bfcSGreg Roach                        <span class="fa-li"><?= view('icons/preferences') ?></span>
229*aa6f03bbSGreg Roach                        <a href="<?= e(route('admin-users', ['ged' => $tree->name()])) ?>">
230dd6b2bfcSGreg Roach                            <?= I18N::translate('User administration') ?>
231dd6b2bfcSGreg Roach                        </a>
232dd6b2bfcSGreg Roach                    </li>
233dd6b2bfcSGreg Roach                    <li>
234dd6b2bfcSGreg Roach                        <span class="fa-li"><?= view('icons/preferences') ?></span>
235*aa6f03bbSGreg Roach                        <a href="<?= e(route('admin-users-create', ['ged' => $tree->name()])) ?>">
236dd6b2bfcSGreg Roach                            <?= I18N::translate('Add a user') ?>
237dd6b2bfcSGreg Roach                        </a>
238dd6b2bfcSGreg Roach                    </li>
239dd6b2bfcSGreg Roach                    <li>
240dd6b2bfcSGreg Roach                        <span class="fa-li"><?= view('icons/preferences') ?></span>
241dd6b2bfcSGreg Roach                        <a href="<?= e(route('admin-users-cleanup')) ?>">
242dd6b2bfcSGreg Roach                            <?= I18N::translate('Delete inactive users') ?>
243dd6b2bfcSGreg Roach                        </a>
244dd6b2bfcSGreg Roach                    </li>
245dd6b2bfcSGreg Roach                    <li>
246dd6b2bfcSGreg Roach                        <span class="fa-li"><?= view('icons/preferences') ?></span>
247dd6b2bfcSGreg Roach                        <a href="<?= e(route('user-page-default-edit')) ?>">
248dd6b2bfcSGreg Roach                            <?= I18N::translate('Set the default blocks for new users') ?>
249dd6b2bfcSGreg Roach                        </a>
250dd6b2bfcSGreg Roach                    </li>
251dd6b2bfcSGreg Roach                </ul>
252dd6b2bfcSGreg Roach            </div>
253dd6b2bfcSGreg Roach            <div class="col-sm-6">
254dd6b2bfcSGreg Roach                <ul class="fa-ul">
255dd6b2bfcSGreg Roach                    <li>
256dd6b2bfcSGreg Roach                        <span class="fa-li"><?= view('icons/email') ?></span>
257dd6b2bfcSGreg Roach                        <a href="<?= e(route('broadcast', ['to' => 'all'])) ?>">
258dd6b2bfcSGreg Roach                            <?= I18N::translate('Send a message to all users') ?>
259dd6b2bfcSGreg Roach                        </a>
260dd6b2bfcSGreg Roach                    </li>
261dd6b2bfcSGreg Roach                    <li>
262dd6b2bfcSGreg Roach                        <span class="fa-li"><?= view('icons/email') ?></span>
263dd6b2bfcSGreg Roach                        <a href="<?= e(route('broadcast', ['to' => 'never_logged'])) ?>">
264dd6b2bfcSGreg Roach                            <?= I18N::translate('Send a message to users who have never signed in') ?>
265dd6b2bfcSGreg Roach                        </a>
266dd6b2bfcSGreg Roach                    </li>
267dd6b2bfcSGreg Roach                    <li>
268dd6b2bfcSGreg Roach                        <span class="fa-li"><?= view('icons/email') ?></span>
269dd6b2bfcSGreg Roach                        <a href="<?= e(route('broadcast', ['to' => 'last_6mo'])) ?>">
270dd6b2bfcSGreg Roach                            <?= I18N::translate('Send a message to users who have not signed in for 6 months') ?>
271dd6b2bfcSGreg Roach                        </a>
272dd6b2bfcSGreg Roach                    </li>
273dd6b2bfcSGreg Roach                </ul>
274dd6b2bfcSGreg Roach            </div>
275dd6b2bfcSGreg Roach        </div>
276dd6b2bfcSGreg Roach    </div>
277dd6b2bfcSGreg Roach</div>
278dd6b2bfcSGreg Roach
279dd6b2bfcSGreg Roach<!-- MODULES -->
280dd6b2bfcSGreg Roach<div class="card mb-4">
281dd6b2bfcSGreg Roach    <div class="card-header">
282dd6b2bfcSGreg Roach        <h2 class="mb-0">
283dd6b2bfcSGreg Roach            <?= I18N::translate('Modules') ?>
284dd6b2bfcSGreg Roach            <span class="badge badge-secondary">
285dd6b2bfcSGreg Roach                <?= I18N::number(count($all_modules)) ?>
286dd6b2bfcSGreg Roach            </span>
287dd6b2bfcSGreg Roach        </h2>
288dd6b2bfcSGreg Roach    </div>
289dd6b2bfcSGreg Roach    <div class="card-body">
290dd6b2bfcSGreg Roach        <div class="row">
291dd6b2bfcSGreg Roach            <div class="col-sm-6">
292dd6b2bfcSGreg Roach                <ul class="fa-ul">
293dd6b2bfcSGreg Roach                    <li>
294dd6b2bfcSGreg Roach                        <span class="fa-li"><?= view('icons/menu') ?></span>
295dd6b2bfcSGreg Roach                        <a href="<?= e(route('admin-menus')) ?>">
296dd6b2bfcSGreg Roach                            <?= I18N::translate('Menus') ?>
297dd6b2bfcSGreg Roach                        </a>
298dd6b2bfcSGreg Roach                    </li>
299dd6b2bfcSGreg Roach                    <li>
300dd6b2bfcSGreg Roach                        <span class="fa-li"><?= view('icons/tab') ?></span>
301dd6b2bfcSGreg Roach                        <a href="<?= e(route('admin-tabs')) ?>">
302dd6b2bfcSGreg Roach                            <?= I18N::translate('Tabs') ?>
303dd6b2bfcSGreg Roach                        </a>
304dd6b2bfcSGreg Roach                    </li>
305dd6b2bfcSGreg Roach                    <li>
306dd6b2bfcSGreg Roach                        <span class="fa-li"><?= view('icons/block') ?></span>
307dd6b2bfcSGreg Roach                        <a href="<?= e(route('admin-blocks')) ?>">
308dd6b2bfcSGreg Roach                            <?= I18N::translate('Blocks') ?>
309dd6b2bfcSGreg Roach                        </a>
310dd6b2bfcSGreg Roach                    </li>
311dd6b2bfcSGreg Roach                    <li>
312dd6b2bfcSGreg Roach                        <span class="fa-li"><?= view('icons/sidebar') ?></span>
313dd6b2bfcSGreg Roach                        <a href="<?= e(route('admin-sidebars')) ?>">
314dd6b2bfcSGreg Roach                            <?= I18N::translate('Sidebars') ?>
315dd6b2bfcSGreg Roach                        </a>
316dd6b2bfcSGreg Roach                    </li>
317dd6b2bfcSGreg Roach                    <li>
318dd6b2bfcSGreg Roach                        <span class="fa-li"><?= view('icons/chart') ?></span>
319dd6b2bfcSGreg Roach                        <a href="<?= e(route('admin-charts')) ?>">
320dd6b2bfcSGreg Roach                            <?= I18N::translate('Charts') ?>
321dd6b2bfcSGreg Roach                        </a>
322dd6b2bfcSGreg Roach                    </li>
323dd6b2bfcSGreg Roach                    <li>
324dd6b2bfcSGreg Roach                        <span class="fa-li"><?= view('icons/report') ?></span>
325dd6b2bfcSGreg Roach                        <a href="<?= e(route('admin-reports')) ?>">
326dd6b2bfcSGreg Roach                            <?= I18N::translate('Reports') ?>
327dd6b2bfcSGreg Roach                        </a>
328dd6b2bfcSGreg Roach                    </li>
329dd6b2bfcSGreg Roach                </ul>
330dd6b2bfcSGreg Roach            </div>
331dd6b2bfcSGreg Roach            <div class="col-sm-6">
332dd6b2bfcSGreg Roach                <ul class="fa-ul">
333dd6b2bfcSGreg Roach                    <?php foreach ($config_modules as $module) : ?>
334dd6b2bfcSGreg Roach                        <li>
335dd6b2bfcSGreg Roach                            <span class="fa-li"><?= view('icons/preferences') ?></span>
336dd6b2bfcSGreg Roach                            <a href="<?= e($module->getConfigLink()) ?>">
337dd6b2bfcSGreg Roach                                <?= $module->getTitle() ?>
338dd6b2bfcSGreg Roach                            </a>
339dd6b2bfcSGreg Roach                        </li>
340dd6b2bfcSGreg Roach                    <?php endforeach ?>
341dd6b2bfcSGreg Roach                </ul>
342dd6b2bfcSGreg Roach            </div>
343dd6b2bfcSGreg Roach        </div>
344dd6b2bfcSGreg Roach
345dd6b2bfcSGreg Roach        <ul class="fa-ul">
346dd6b2bfcSGreg Roach            <li>
347dd6b2bfcSGreg Roach                <span class="fa-li"><?= view('icons/preferences') ?></span>
348dd6b2bfcSGreg Roach                <a href="<?= e(route('admin-modules')) ?>">
349dd6b2bfcSGreg Roach                    <?= I18N::translate('Module administration') ?>
350dd6b2bfcSGreg Roach                </a>
351dd6b2bfcSGreg Roach            </li>
352dd6b2bfcSGreg Roach        </ul>
353dd6b2bfcSGreg Roach    </div>
354dd6b2bfcSGreg Roach</div>
355dd6b2bfcSGreg Roach
356dd6b2bfcSGreg Roach<!-- MEDIA -->
357dd6b2bfcSGreg Roach<div class="card mb-4">
358dd6b2bfcSGreg Roach    <div class="card-header">
359dd6b2bfcSGreg Roach        <h2 class="mb-0">
360dd6b2bfcSGreg Roach            <?= I18N::translate('Media') ?>
361dd6b2bfcSGreg Roach        </h2>
362dd6b2bfcSGreg Roach    </div>
363dd6b2bfcSGreg Roach    <div class="card-body">
364dd6b2bfcSGreg Roach        <ul class="fa-ul">
365dd6b2bfcSGreg Roach            <li>
366dd6b2bfcSGreg Roach                <span class="fa-li"><?= view('icons/preferences') ?></span>
367dd6b2bfcSGreg Roach                <a href="<?= e(route('admin-media')) ?>">
368dd6b2bfcSGreg Roach                    <?= I18N::translate('Manage media') ?>
369dd6b2bfcSGreg Roach                </a>
370dd6b2bfcSGreg Roach            </li>
371dd6b2bfcSGreg Roach            <li>
372dd6b2bfcSGreg Roach                <span class="fa-li"><?= view('icons/preferences') ?></span>
373dd6b2bfcSGreg Roach                <a href="<?= e(route('admin-media-upload')) ?>">
374dd6b2bfcSGreg Roach                    <?= I18N::translate('Upload media files') ?>
375dd6b2bfcSGreg Roach                </a>
376dd6b2bfcSGreg Roach            </li>
377dd6b2bfcSGreg Roach            <li>
378dd6b2bfcSGreg Roach                <span class="fa-li"><?= view('icons/preferences') ?></span>
379dd6b2bfcSGreg Roach                <a href="<?= e(route('admin-fix-level-0-media')) ?>">
380dd6b2bfcSGreg Roach                    <?= I18N::translate('Link media objects to facts and events') ?>
381dd6b2bfcSGreg Roach                </a>
382dd6b2bfcSGreg Roach            </li>
383dd6b2bfcSGreg Roach            <li>
384dd6b2bfcSGreg Roach                <span class="fa-li"><?= view('icons/preferences') ?></span>
385dd6b2bfcSGreg Roach                <a href="<?= e(route('admin-webtrees1-thumbs')) ?>">
386dd6b2bfcSGreg Roach                    <?= I18N::translate('Import custom thumbnails from webtrees version 1') ?>
387dd6b2bfcSGreg Roach                </a>
388dd6b2bfcSGreg Roach            </li>
389dd6b2bfcSGreg Roach        </ul>
390dd6b2bfcSGreg Roach    </div>
391dd6b2bfcSGreg Roach</div>
392dd6b2bfcSGreg Roach
393dd6b2bfcSGreg Roach<!-- MAPS -->
394dd6b2bfcSGreg Roach<div class="card mb-4">
395dd6b2bfcSGreg Roach    <div class="card-header">
396dd6b2bfcSGreg Roach        <h2 class="mb-0">
397dd6b2bfcSGreg Roach            <?= I18N::translate('Map') ?>
398dd6b2bfcSGreg Roach        </h2>
399dd6b2bfcSGreg Roach    </div>
400dd6b2bfcSGreg Roach    <div class="card-body">
401dd6b2bfcSGreg Roach        <div class="row">
402dd6b2bfcSGreg Roach            <div class="col-sm-6">
403dd6b2bfcSGreg Roach                <ul class="fa-ul">
404dd6b2bfcSGreg Roach                    <li>
405dd6b2bfcSGreg Roach                        <span class="fa-li"><?= view('icons/location') ?></span>
406dd6b2bfcSGreg Roach                        <a href="<?= e(route('map-data')) ?>">
407dd6b2bfcSGreg Roach                            <?= I18N::translate('Geographic data') ?>
408dd6b2bfcSGreg Roach                        </a>
409dd6b2bfcSGreg Roach                    </li>
410dd6b2bfcSGreg Roach                </ul>
411dd6b2bfcSGreg Roach            </div>
412dd6b2bfcSGreg Roach            <div class="col-sm-6">
413dd6b2bfcSGreg Roach                <ul class="fa-ul">
414dd6b2bfcSGreg Roach                    <li>
415dd6b2bfcSGreg Roach                        <span class="fa-li"><?= view('icons/map') ?></span>
416dd6b2bfcSGreg Roach                        <a href="<?= e(route('map-provider')) ?>">
417dd6b2bfcSGreg Roach                            <?= I18N::translate('Map provider') ?>
418dd6b2bfcSGreg Roach                        </a>
419dd6b2bfcSGreg Roach                    </li>
420dd6b2bfcSGreg Roach                </ul>
421dd6b2bfcSGreg Roach            </div>
422dd6b2bfcSGreg Roach        </div>
423dd6b2bfcSGreg Roach    </div>
424dd6b2bfcSGreg Roach</div>
425dd6b2bfcSGreg Roach
426dd6b2bfcSGreg Roach<!-- OLD FILES -->
427dd6b2bfcSGreg Roach<?php if (!empty($files_to_delete)) : ?>
428dd6b2bfcSGreg Roach    <div class="card mb-4 card-outline-danger">
429dd6b2bfcSGreg Roach        <div class="card-header">
430dd6b2bfcSGreg Roach            <h2 class="mb-0">
431dd6b2bfcSGreg Roach                <?= I18N::translate('Old files found') ?>
432dd6b2bfcSGreg Roach            </h2>
433dd6b2bfcSGreg Roach        </div>
434dd6b2bfcSGreg Roach        <div class="card-body">
435dd6b2bfcSGreg Roach            <p>
436dd6b2bfcSGreg Roach                <?= I18N::translate('Files have been found from a previous version of webtrees. Old files can sometimes be a security risk. You should delete them.') ?>
437dd6b2bfcSGreg Roach            </p>
438dd6b2bfcSGreg Roach            <ul class="list-unstyled">
439dd6b2bfcSGreg Roach                <?php foreach ($files_to_delete as $file_to_delete) : ?>
440dd6b2bfcSGreg Roach                    <li dir="ltr"><code><?= e($file_to_delete) ?></code></li>
441dd6b2bfcSGreg Roach                <?php endforeach ?>
442dd6b2bfcSGreg Roach            </ul>
443dd6b2bfcSGreg Roach        </div>
444dd6b2bfcSGreg Roach    </div>
445dd6b2bfcSGreg Roach<?php endif ?>
446