diff --git a/www/%participant_id/index.html b/www/%participant_id/index.html index 3c2b1f4d5a..b9e2912985 100644 --- a/www/%participant_id/index.html +++ b/www/%participant_id/index.html @@ -59,12 +59,13 @@ backed_amount = get_backed_amount(participant['id']) if not user.ANON: + if user.id == participant_id or user.ADMIN: + giving_histogram, npatrons, contributed = \ + get_histogram_of_giving(participant['id']) if user.id == participant_id: tips, total = get_tips_and_total(user.id) if total == 0: tips = tip_suggestions - giving_histogram, npatrons, contributed = \ - get_histogram_of_giving(participant['id']) assert backed_amount == contributed, (backed_amount, contributed) else: my_tip = get_tip(user.id, participant['id']) @@ -537,23 +538,7 @@

You receive ${{ backed_amount }} per week.

Here’s a breakdown of this estimate by tip amount, showing the percentage of the number of tips:

- - {% for amount, ncontributors, summed, pcontributors, psummed in giving_histogram %} - - {% if str(amount) == '-1' %} - - {% else %} - - - {% end %} - - - {% end %} -
Other${{ amount }} - - {{ "%5.1f" % (pcontributors * 100) }}% - ({{ ncontributors }}) -
+ {% include "templates/tip-distribution.html" %}


Here’s the same info, but showing the percentage of the total dollar amount of your tips:

@@ -644,6 +629,8 @@

{{ participant['id'] }} joined {{ to_age(participant['claimed_time']) }}. History

+ {% include "templates/tip-distribution.html" %} + {% end %}

Linked Accounts