xref: /webtrees/resources/views/components/progress.phtml (revision 0db1e7d20bab9209012a4f3fdc1af3ef87a1a528)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\I18N;
6
7/**
8 * @var float $progress
9 */
10
11?>
12
13<div class="progress">
14    <div
15    class="progress-bar"
16    role="progressbar"
17    aria-valuenow="<?= $progress * 100 ?>"
18    aria-valuemin="0"
19    aria-valuemax="100"
20    style="width: <?= $progress * 100 ?>%; min-width: 2.5rem;"
21    >
22        <?= I18N::percentage($progress, 1) ?>
23    </div>
24</div>
25