From 3dea26a15675c978b389eb0ea2ebc3d99cf96354 Mon Sep 17 00:00:00 2001 From: Chad Whitacre Date: Mon, 16 Feb 2015 16:53:02 -0500 Subject: [PATCH] Prune leftovers from team/community listings --- www/index.html.spt | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/www/index.html.spt b/www/index.html.spt index 05c23429da..7b7ded50f9 100644 --- a/www/index.html.spt +++ b/www/index.html.spt @@ -3,13 +3,7 @@ from gratipay.models import community [---] if not user.ANON: - participant = user.participant # for team listing - title = _("Welcome, {0}!", participant.username) - communities = community.get_list_for(website.db, user.participant.id) - - def with_others(obj): - others = obj.nmembers - 1 - return ngettext("with {n} other", "with {n} others", others) + title = _("Welcome, {0}!", user.participant.username) [---] {% extends "templates/base.html" %} @@ -90,8 +84,8 @@ if not user.ANON:

{{ _("Giving") }}

-

{{ - _("You give {0} per week.", format_currency(participant.giving, 'USD')) +

{{ + _("You give {0} per week.", format_currency(user.participant.giving, 'USD')) }}

{{ _("Who inspires you? Use this search box to find your heroes on Gratipay:") }}

@@ -99,22 +93,22 @@ if not user.ANON:

{{ _("Receiving") }}

-

{{ - _("You receive {0} per week.", format_currency(participant.receiving, 'USD')) +

{{ + _("You receive {0} per week.", format_currency(user.participant.receiving, 'USD')) }}

- {% if not participant.accepts_tips %} + {% if not user.participant.accepts_tips %}

{{ _("You are currently declining tips, you can change that {0}on your profile{1}.", - ""|safe % participant.username, ""|safe) }}

- {% elif participant.goal and participant.receiving >= participant.goal %} -

{{ _("Congratulations, you have reached your goal of receiving {0} per week!", participant.goal) }}

+ ""|safe % user.participant.username, ""|safe) }}

+ {% elif user.participant.goal and user.participant.receiving >= user.participant.goal %} +

{{ _("Congratulations, you have reached your goal of receiving {0} per week!", user.participant.goal) }}

{% else %}

{{ _("To receive money, do something awesome and then tell people about it:") }}

  1. {{ _("{0}Fill out your profile{1} to let others know about you.", - ""|safe % participant.username, ""|safe) }}
  2. + ""|safe % user.participant.username, ""|safe) }}
  3. {{ _("Reach a wider audience by {0}embedding our widgets{1} on your blog/website.", - ""|safe % participant.username, ""|safe) }}
  4. + ""|safe % user.participant.username, ""|safe) }}
{% endif %}