Skip to content

Commit dc76a79

Browse files
committed
Reworked changes
1 parent 31f00b4 commit dc76a79

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

maindb.db

0 Bytes
Binary file not shown.

templates/home.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,14 @@ <h1 style="color: steelblue; text-align: center;">Your workshops</h1>
1414
<h1 class="display-5">Mechanical Engineering Workshop</h1>
1515
<hr class="my-4">
1616
<p style="font-size: 26px; color: teal">Progress: {{lab1}} / 2 experiments completed</p>
17-
{% if lab1 %}
17+
{% if lab1 == '1' %}
1818
<div class="progress">
1919
<div class="progress-bar progress-bar-striped progress-bar-animated" role="progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100" style="width: 50%"></div>
2020
</div>
21+
{% elif lab1 == '2' %}
22+
<div class="progress">
23+
<div class="progress-bar progress-bar-striped progress-bar-animated" role="progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100" style="width: 100%"></div>
24+
</div>
2125
{% else %}
2226
<div class="progress">
2327
<div class="progress-bar progress-bar-striped progress-bar-animated" role="progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100" style="width: 0%"></div>

0 commit comments

Comments
 (0)