🎨 reduce LOC by moving some comments out of loops

This commit is contained in:
Viren Mohindra 2017-02-03 20:04:38 -05:00
commit 4919be8c51
No known key found for this signature in database
GPG key ID: 6148352D8545AEF9

View file

@ -153,13 +153,9 @@ layout: page
</thead>
<tbody class="list">
{% for promise in promises %}
<!-- add color to each policy -->
<tr class="promise
{% if promise.status == 'In progress' %}warning{% endif %}
{% if promise.status == 'Achieved' %}success{% endif %}
{% if promise.status == 'Broken' %}danger{% endif %}
">
{% for promise in promises %}
<tr class="promise {% if promise.status == 'In progress' %}warning{% endif %}{% if promise.status == 'Achieved' %}success{% endif %}{% if promise.status == 'Broken' %}danger{% endif %}">
<td class="promise__id">{{ forloop.index }}.</td>
<td class="promise__status" title="{{ promise.status }}">