prettier challenges template

master
Fox Wilson 2015-11-08 02:09:06 -05:00
parent 14ae202d44
commit ae4d757b3a
1 changed files with 3 additions and 2 deletions

View File

@ -29,8 +29,9 @@ function toggle() {
{% for challenge in challenges %} {% for challenge in challenges %}
<li> <li>
<div class="collapsible-header{% if challenge not in solved %} active{% endif %}"> <div class="collapsible-header{% if challenge not in solved %} active{% endif %}">
<strong>{% if challenge in solved %}<i class="material-icons">check</i>{% endif %}{{ challenge.name }}</strong> <strong>{{ challenge.name }}</strong>
<span class="right">{% if challenge in solved %}Solved{% else %}Unsolved{% endif %}: {{ challenge.points }}pt. {{ challenge.category }}</span> <span class="left" style="margin-right: -5px;">{% if challenge in solved %}<i class="material-icons">check_circle</i>{% endif %}</span>
<span class="right">{{ challenge.category }} {{ challenge.points }}pt</span>
</div> </div>
<div class="collapsible-body"> <div class="collapsible-body">
<p>{{ challenge.description }}</p> <p>{{ challenge.description }}</p>