Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Oops, forgot to add a file (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed Oct 10, 2012
1 parent fbcdc57 commit 329fd1d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions templates/tip-distribution.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<table id="tip-distribution">
{% for amount, ncontributors, summed, pcontributors, psummed in giving_histogram %}
<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>

0 comments on commit 329fd1d

Please sign in to comment.