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