1
0
Fork 0
my_spells/src/views/table-sort.monk
2016-08-08 00:08:37 -05:00

28 lines
1 KiB
Text

<th class="hide-phone">
<label class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect mdl-data-table__select" for="table-header">
<input type="checkbox" id="table-header" class="mdl-checkbox__input" />
</label>
</th>
{% for name of data %}
<th data-action-sort="{{ name }}" class="mdl-data-table__cell--non-numeric {{ current === 'ranking' ? 'mdl-color-text--grey-200 do-nothing' : '' }}">
<i class="material-icons mdl-list__item-icon">
{% if name === 'level' %}
exposure
{% endif %}
{% if name === 'name' %}
flash_on
{% endif %}
{% if name === 'school' %}
school
{% endif %}
</i>
<span>
&nbsp; {{ name }}
</span>
<i class="material-icons mdl-color-text--teal-600 mdl-list__item-icon {{ name === current ? 'mdl-color-text--teal-600' : 'mdl-color-text--grey-300' }}">
{{ rev ? 'keyboard_arrow_up' : 'keyboard_arrow_down' }}
</i>
</th>
{% endfor %}