mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 14:04:20 +01:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user