From 9579e2c8f079c589fc0c217d2d888f490a31987c Mon Sep 17 00:00:00 2001 From: Chad Whitacre Date: Sat, 29 Aug 2015 17:38:02 -0400 Subject: [PATCH] Move receiving/ from ~user to Team and stub it Includes charts.json --- www/{~/%username => %team}/charts.json.spt | 0 .../receiving/index.html.spt | 17 +++++++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) rename www/{~/%username => %team}/charts.json.spt (100%) rename www/{~/%username => %team}/receiving/index.html.spt (85%) diff --git a/www/~/%username/charts.json.spt b/www/%team/charts.json.spt similarity index 100% rename from www/~/%username/charts.json.spt rename to www/%team/charts.json.spt diff --git a/www/~/%username/receiving/index.html.spt b/www/%team/receiving/index.html.spt similarity index 85% rename from www/~/%username/receiving/index.html.spt rename to www/%team/receiving/index.html.spt index fc3f8b0eb0..f551dbda83 100644 --- a/www/~/%username/receiving/index.html.spt +++ b/www/%team/receiving/index.html.spt @@ -1,13 +1,14 @@ +from aspen import Response from gratipay.utils import get_participant [-----------------------------------------------------------------------------] -participant = get_participant(state, restrict=False) -if participant.anonymous_receiving: - if user.participant != participant and not user.ADMIN: - website.redirect('../', base_url='') - -banner = '~' + participant.username +website.redirect('../', base_url='') +team = get_team(state) +if team.is_approved in (None, False): + if user.ANON: + raise Response(401) +banner = team.name title = _("Receiving") [-----------------------------------------------------------------------------] @@ -29,8 +30,8 @@ title = _("Receiving")
-

{{ _("Number of Patrons Per Week") }}

-
+

{{ _("Number of Supporters Per Week") }}

+
{{ _("weeks") }}