Files
www.gittip.com/templates/tip-distribution.html
Chad Whitacre 8847792dcf Fix width on distribution bars; #620 == #701
This isn't my favorite distribution ever, would love to replace it. But
for now we should maintain it.
2013-03-05 17:49:27 -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 * 240 }}pt"></span>
{{ "%5.1f" % (pcontributors * 100) }}%
<span class="number">({{ ncontributors }})</span>
</td>
</tr>
{% end %}
</table>