fix challenges template
parent
9aa60925c0
commit
e666d50e51
|
@ -50,8 +50,18 @@
|
|||
<li class="challenge" data-category="{{ challenge.category }}">
|
||||
<div id="header{{ challenge.id }}" class="collapsible-header{% if challenge not in solved %} active{% endif %}">
|
||||
<strong style="font-size: 110%;">{{ challenge.name }}</strong>
|
||||
<span class="left" style="margin-right: -5px;"><i id="check{{ challenge.id }}" style="display:{{ "block" if challenge in solved else "none" }}" class="material-icons">check</i></span>
|
||||
<span class="right"><span>{{ challenge.author }}</span> <b>·</b> <span id="solves{{ challenge.id }}">{{ solves[challenge.id] }}</span> solve(s) <b>·</b> {{ challenge.category }} <b>·</b> {{ challenge.points }} pt</span>
|
||||
<span class="left" style="margin-right: -5px;">
|
||||
<i id="check{{ challenge.id }}" style="display:{{ "block" if challenge in solved else "none" }}" class="material-icons">check</i>
|
||||
</span>
|
||||
<span class="right">
|
||||
<span>{{ challenge.author }}</span>
|
||||
<b>·</b>
|
||||
<span id="solves{{ challenge.id }}">{{ solves[challenge.id] }}</span> solve(s)
|
||||
<b>·</b>
|
||||
{{ challenge.category }}
|
||||
<b>·</b>
|
||||
{{ challenge.points }} pt
|
||||
</span>
|
||||
</div>
|
||||
<div class="collapsible-body">
|
||||
<p>{{ challenge.description | safe }}
|
||||
|
@ -71,7 +81,6 @@
|
|||
</div>
|
||||
<button class="btn waves-effect waves-light" type="submit">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
<input name="_csrf_token" type="hidden" value="{{ csrf_token() }}" />
|
||||
</form><br />
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue