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