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