Max Attempts improvements in challenge.html (#1725)

* Fixed issue where the current attempt count would have a typo
* Fixed issue where the max attempts for a challenge would not show if it was set to 1
* Works on #1655
This commit is contained in:
Kevin Chung
2020-11-18 02:34:52 -05:00
committed by GitHub
parent 66ff9c0b91
commit 9efa102487

View File

@@ -83,11 +83,11 @@
{% endfor %}
</div>
{% if max_attempts > 1 %}
{% if max_attempts > 0 %}
<div class="row text-center">
<div class="col-md-12">
<p>
{{ attempts }}/{{ max_attempts }} attempt{{ attempts|pluralize(attempts) }}
{{ attempts }}/{{ max_attempts }} attempt{{ max_attempts|pluralize }}
</p>
</div>
</div>