mirror of
https://github.com/kennethreitz-archive/www.gittip.com.git
synced 2026-06-18 06:10:59 +00:00
8847792dcf
This isn't my favorite distribution ever, would love to replace it. But for now we should maintain it.
18 lines
672 B
HTML
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>
|