Skip to content

Instantly share code, notes, and snippets.

@morganwilde
Last active December 15, 2015 09:09
Show Gist options
  • Save morganwilde/5235875 to your computer and use it in GitHub Desktop.
Save morganwilde/5235875 to your computer and use it in GitHub Desktop.
temp
<thead>
<tr>
{% for column in temvar['table']['columns'] %}
{% set thClass = '' %}
{% if column[2] == 'int4' and column[0] != temvar['table']['primary'] %}
{% set thClass = 'aright' %}
{% elif column[0] == temvar['table']['primary'] %}
{% set thClass = 'colPrimary' %}
{% else %}
{% set thClass = 'aleft' %}
{% endif %}
<th class="{{ thClass }}" style="width: {{ temvar['table']['columnsLength'][column[0]]['percentage'] }}%">
<div class="colName" colname="{{ column[0] }}" colnumber="{{ loop.index0 }}">{{ column[0] }}</div>
</th>
{% endfor %}
</tr>
</thead>
<thead>
<tr>
<th colspan="{{ temvar['table']['columns']|length }}">
<ul class="colNames">
{% for column in temvar['table']['columns'] %}
{% set thClass = '' %}
{% if column[2] == 'int4' and column[0] != temvar['table']['primary'] %}
{% set thClass = 'aright' %}
{% elif column[0] == temvar['table']['primary'] %}
{% set thClass = 'colPrimary' %}
{% else %}
{% set thClass = 'aleft' %}
{% endif %}
<li style="width: {{ temvar['table']['columnsLength'][column[0]]['percentage'] }}%">{{ column[0] }}</li>
{% endfor %}
</ul>
</th>
</tr>
</thead>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment