Skip to content

Commit fe0e7fe

Browse files
authored
Add hint title to challenge.html (#103)
* Add hint title to UI to support CTFd/CTFd#2699
1 parent 7382ca5 commit fe0e7fe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

templates/challenge.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@ <h3 class="challenge-value text-center">
7979
</details>
8080
{% else %}
8181
<details @toggle="showHint(event)">
82+
{% if hint.title %}
83+
<summary>{{ hint.title }}(Cost: {{ hint.cost }} point{{ hint.cost|pluralize }})</summary>
84+
{% else %}
8285
<summary>Unlock Hint for {{ hint.cost }} point{{ hint.cost|pluralize }}</summary>
86+
{% endif %}
8387
<div x-html="html"></div>
8488
</details>
8589
{% endif %}

0 commit comments

Comments
 (0)