Files
www.gittip.com/templates/tip-distribution.html
2013-02-06 19:00:38 -05:00

18 lines
672 B
HTML

<table class="tip-distribution">
{% for amount, ncontributors, summed, pcontributors, psummed in tip_distribution%}
<tr>
{% if str(amount) == '-1' %}
<td class="amount" colspan="2">Other</td>
{% else %}
<td class="dollar-sign">$</td>
<td class="amount">{{ amount }}</td>
{% end %}
<td class="count">
<span class="bar" style="width:{{ pcontributors * 300 }}pt"></span>
{{ "%5.1f" % (pcontributors * 100) }}%
<span class="number">({{ ncontributors }})</span>
</td>
</tr>
{% end %}
</table>