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

Commit

Permalink
Move receiving/ from ~user to Team and stub it
Browse files Browse the repository at this point in the history
Includes charts.json
  • Loading branch information
chadwhitacre committed Aug 29, 2015
1 parent 26a53d6 commit 9579e2c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -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")

[-----------------------------------------------------------------------------]
Expand All @@ -29,8 +30,8 @@ title = _("Receiving")
</div>
<div class="chart-wrapper">
<a name="gifts"></a>
<h2>{{ _("Number of Patrons Per Week") }}</h2>
<div class="chart" data-chart="npatrons"></div>
<h2>{{ _("Number of Supporters Per Week") }}</h2>
<div class="chart" data-chart="nsupporters"></div>
<div class="x-axis">{{ _("weeks") }}</div>
</div>
</div>
Expand Down

0 comments on commit 9579e2c

Please sign in to comment.