diff --git a/dojo_theme/templates/macros/widgets.html b/dojo_theme/templates/macros/widgets.html index f089bb81..9fa8feca 100644 --- a/dojo_theme/templates/macros/widgets.html +++ b/dojo_theme/templates/macros/widgets.html @@ -20,7 +20,7 @@ {% 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) -%}
  • @@ -33,11 +33,13 @@ {% endif %} {% if text_lines %}

    {% for text in text_lines %}{{ text }}
    {% endfor %}

    {% endif %} {% if custom %}{{ caller() }}{% endif %} + {% if not course %}
    {% if solve_percent != 0 %} {{solve_percent|round(0, 'floor')|int}}% {% endif %}
    + {% endif %}
  • @@ -87,6 +89,7 @@

    icon=icon, emoji=dojo.award.emoji, solve_percent=solve_percent, + course=dojo.course, ) }} {% endfor %} {% if create_icon %}