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 @@
Here’s a breakdown of this estimate by tip amount, showing the percentage of the number of tips:
-Other | - {% else %} -$ | -{{ amount }} | - {% end %} -- - {{ "%5.1f" % (pcontributors * 100) }}% - ({{ ncontributors }}) - | -
Here’s the same info, but showing the percentage of the
total dollar amount of your tips: