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