Skip to content

Instantly share code, notes, and snippets.

@vsmihaylovsky
Created March 21, 2016 17:29
Show Gist options
  • Save vsmihaylovsky/fce43f66b86c8e5f73d5 to your computer and use it in GitHub Desktop.
Save vsmihaylovsky/fce43f66b86c8e5f73d5 to your computer and use it in GitHub Desktop.
<a {% for attr, value in options %} {{ attr }}="{{ value }}"{% endfor %}>
{{ title }}
{% if options.class == 'sortable' %}
<span class="glyphicon glyphicon-sort" aria-hidden="true"></span>
{% elseif options.class == 'asc' %}
<span class="glyphicon glyphicon-sort-by-attributes" aria-hidden="true"></span>
{% else %}
<span class="glyphicon glyphicon-sort-by-attributes-alt" aria-hidden="true"></span>
{% endif %}
</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment