xref: /webtrees/resources/views/components/progress.phtml (revision 774eb6bada09fdd46a086fd31e84fd157a6351c4)
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" role="progressbar" aria-valuenow="<?= $progress * 100 ?>" aria-valuemin="0" aria-valuemax="100">
14    <div class="progress-bar" style="width: <?= $progress * 100 ?>%; min-width: 2.5rem;">
15        <?= I18N::percentage($progress, 1) ?>
16    </div>
17</div>
18