Skip to content

Commit

Permalink
remove progress bar for courses to avoid confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
zardus committed Dec 14, 2024
1 parent 8558602 commit 0ea8d9c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dojo_theme/templates/macros/widgets.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</li>
{% endmacro %}

{% macro card(url, title=None, text_lines=None, icon=None, emoji=None, custom=False, solve_percent=0) -%}
{% macro card(url, title=None, text_lines=None, icon=None, emoji=None, custom=False, solve_percent=0, course=False) -%}
<a class="text-decoration-none" href="{{ url }}">
<li class="card card-small">
<div class="card-body">
Expand All @@ -33,11 +33,13 @@
{% endif %}
{% if text_lines %}<p class="card-text">{% for text in text_lines %}{{ text }}<br>{% endfor %}</p>{% endif %}
{% if custom %}{{ caller() }}{% endif %}
{% if not course %}
<div class="progress-bar" style="width:{{solve_percent}}%">
{% if solve_percent != 0 %}
<span class="progress-bar-text">{{solve_percent|round(0, 'floor')|int}}%</span>
{% endif %}
</div>
{% endif %}
</div>
</li>
</a>
Expand Down Expand Up @@ -87,6 +89,7 @@ <h2 class="mb-0">
icon=icon,
emoji=dojo.award.emoji,
solve_percent=solve_percent,
course=dojo.course,
) }}
{% endfor %}
{% if create_icon %}
Expand Down

0 comments on commit 0ea8d9c

Please sign in to comment.