diff --git a/www/github/%login/index.html b/www/github/%login/index.html index 180b3d9dca..f62abb4d4c 100644 --- a/www/github/%login/index.html +++ b/www/github/%login/index.html @@ -45,12 +45,13 @@ resp = requests.get("https://api.github.com/orgs/%s/members" % username) if resp.status_code == 200: members = json.loads(resp.text) - can_tip = False + can_tip = user.ANON else: can_tip = False tip_or_pledge = "pledge" nbackers = get_number_of_backers(username) +members = [(member, get_tip(user.id, member['login'])) for member in members] # ========================================================================== ^L {% extends templates/participant.html %} @@ -73,13 +74,13 @@
If you are {{ username }} you can explicitly opt out of Gittip by locking this account. We don’t allow new pledges to locked accounts, and we’ll set aside your username on Gittip to prevent @@ -128,11 +129,14 @@
- - {{ member['login'] }} + {% for member, tip in members %} + | |||
+ {% if not user.ANON %} + | + + {{ member['login'] }} + | ++ {% for amount in AMOUNTS %} + + {% end %} + {% if tip not in AMOUNTS %} + + + — + old amount! + + {% end %} + | + {% else %} ++ + {{ member['login'] }} + | + {% end %}
---|