xref: /webtrees/resources/views/components/progress.phtml (revision ac71572d8462e396ed5a307f05b29381e49f9e6e)
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