summaryrefslogtreecommitdiff
path: root/resources/views/modules/html/template-statistics.phtml
blob: 93d937cf3fd493659843bfb06188da5f7f23c19d (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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?php

use Fisharebest\Webtrees\Http\RequestHandlers\TreePage;
use Fisharebest\Webtrees\I18N;
use Fisharebest\Webtrees\Tree;

/**
 * @var Tree $tree
 */

?>

<div class="gedcom_stats">
    <p>
        <a href="<?= e(route(TreePage::class, ['tree' => $tree->name()])) ?>">#gedcomTitle#</a>
    </p>

    <?= I18N::translate('This family tree was last updated on %s.', '#gedcomUpdated#') ?>

    <div class="row">
        <div class="col col-sm-4">
            <table class="table wt-facts-table">
                <tr>
                    <th scope="row"><?= I18N::translate('Individuals') ?></th>
                    <td>#totalIndividuals#</td>
                </tr>
                <tr>
                    <th scope="row"><?= I18N::translate('Males') ?></th>
                    <td>#totalSexMales#<br>#totalSexMalesPercentage#</td>
                </tr>
                <tr>
                    <th scope="row"><?= I18N::translate('Females') ?></th>
                    <td>#totalSexFemales#<br>#totalSexFemalesPercentage#</td>
                </tr>
                <tr>
                    <th scope="row"><?= I18N::translate('Total surnames') ?></th>
                    <td>#totalSurnames#</td>
                </tr>
                <tr>
                    <th scope="row"><?= I18N::translate('Families') ?></th>
                    <td>#totalFamilies#</td>
                </tr>
                <tr>
                    <th scope="row"><?= I18N::translate('Sources') ?></th>
                    <td>#totalSources#</td>
                </tr>
                <tr>
                    <th scope="row"><?= I18N::translate('Media objects') ?></th>
                    <td>#totalMedia#</td>
                </tr>
                <tr>
                    <th scope="row"><?= I18N::translate('Repositories') ?></th>
                    <td>#totalRepositories#</td>
                </tr>
                <tr>
                    <th scope="row"><?= I18N::translate('Events') ?></th>
                    <td>#totalEvents#</td>
                </tr>
                <tr>
                    <th scope="row"><?= I18N::translate('Users') ?></th>
                    <td>#totalUsers#</td>
                </tr>
            </table>
        </div>

        <div class="col col-sm-8">
            <table class="table wt-facts-table">
                <tr>
                    <th scope="row"><?= I18N::translate('Earliest birth') ?></th>
                    <td>#firstBirth#</td>
                </tr>
                <tr>
                    <th scope="row"><?= I18N::translate('Latest birth') ?></th>
                    <td>#lastBirth#</td>
                </tr>
                <tr>
                    <th scope="row"><?= I18N::translate('Earliest death') ?></th>
                    <td>#firstDeath#</td>
                </tr>
                <tr>
                    <th scope="row"><?= I18N::translate('Latest death') ?></th>
                    <td>#lastDeath#</td>
                </tr>
                <tr>
                    <th scope="row"><?= I18N::translate('Individual who lived the longest') ?></th>
                    <td>#longestLife#</td>
                </tr>
                <tr>
                    <th scope="row"><?= I18N::translate('Average age at death') ?></th>
                    <td>#averageLifespan#</td>
                </tr>
                <tr>
                    <th scope="row"><?= I18N::translate('Family with the most children') ?></th>
                    <td>#largestFamilySize#<br>#largestFamily#</td>
                </tr>
                <tr>
                    <th scope="row"><?= I18N::translate('Average number of children per family') ?></th>
                    <td>#averageChildren#</td>
                </tr>
            </table>
        </div>
    </div>

    <p>
        <b><?= I18N::translate('Most common surnames') ?></b>
    </p>

    <p>
        #commonSurnames#
    </p>
</div>