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