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

Commit

Permalink
Prune leftovers from team/community listings
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed Feb 16, 2015
1 parent d222c8c commit 7be241d
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions www/index.html.spt
Original file line number Diff line number Diff line change
Expand Up @@ -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" %}
Expand Down Expand Up @@ -90,31 +84,31 @@ if not user.ANON:
<div class="col0">
<h2>{{ _("Giving") }}</h2>

<p><a href="/{{ participant.username }}/giving/">{{
_("You give {0} per week.", format_currency(participant.giving, 'USD'))
<p><a href="/{{ user.participant.username }}/giving/">{{
_("You give {0} per week.", format_currency(user.participant.giving, 'USD'))
}}</a></p>

<p>{{ _("Who inspires you? Use this search box to find your heroes on Gratipay:") }}</p>
{% include "templates/search-box.html" %}

<h2>{{ _("Receiving") }}</h2>

<p><a href="/{{ participant.username }}/receiving/">{{
_("You receive {0} per week.", format_currency(participant.receiving, 'USD'))
<p><a href="/{{ user.participant.username }}/receiving/">{{
_("You receive {0} per week.", format_currency(user.participant.receiving, 'USD'))
}}</a></p>

{% if not participant.accepts_tips %}
{% if not user.participant.accepts_tips %}
<p>{{ _("You are currently declining tips, you can change that {0}on your profile{1}.",
"<a href='/%s/'>"|safe % participant.username, "</a>"|safe) }}</p>
{% elif participant.goal and participant.receiving >= participant.goal %}
<p>{{ _("Congratulations, you have reached your goal of receiving {0} per week!", participant.goal) }}</p>
"<a href='/%s/'>"|safe % user.participant.username, "</a>"|safe) }}</p>
{% elif user.participant.goal and participant.receiving >= user.participant.goal %}
<p>{{ _("Congratulations, you have reached your goal of receiving {0} per week!", user.participant.goal) }}</p>
{% else %}
<p>{{ _("To receive money, do something awesome and then tell people about it:") }}</p>
<ol>
<li>{{ _("{0}Fill out your profile{1} to let others know about you.",
"<a href='/%s/'>"|safe % participant.username, "</a>"|safe) }}</li>
"<a href='/%s/'>"|safe % user.participant.username, "</a>"|safe) }}</li>
<li>{{ _("Reach a wider audience by {0}embedding our widgets{1} on your blog/website.",
"<a href='/%s/widgets'>"|safe % participant.username, "</a>"|safe) }}</li>
"<a href='/%s/widgets'>"|safe % user.participant.username, "</a>"|safe) }}</li>
</ol>
{% endif %}
</div>
Expand Down

0 comments on commit 7be241d

Please sign in to comment.