Things we clear immediately include your “making the
- world better” statement, any funding goal, the tips
- you're receiving, and those you're giving. You'll also be
- removed from any communities and teams you were a part of. If
- you're closing a team account, all team members will be removed
- from the team.
+
Things we clear immediately include your profile statement,
+ any funding goal, the tips you're receiving, and those you're
+ giving. You'll also be removed from any communities and teams
+ you were a part of. If you're closing a team account, all team
+ members will be removed from the team.
We specifically don't delete your past giving and
receiving history on the site, because that information also
diff --git a/www/%username/index.html.spt b/www/%username/index.html.spt
index 2fa84f5282..751b1be172 100644
--- a/www/%username/index.html.spt
+++ b/www/%username/index.html.spt
@@ -30,17 +30,12 @@ accounts = participant.get_accounts_elsewhere()
long_statement = len(participant.statement) > LONG_STATEMENT
communities = community.get_list_for(website.db, participant.id)
-I_AM_MAKING = _("I am making the world better by {0}")
-WE_ARE_MAKING = _("We are making the world better by {0}")
-
if participant.number == 'singular':
- MAKING = I_AM_MAKING
GRATEFUL = _("I'm grateful for gifts, but don't have a specific funding goal.")
PATRON = _("I'm here as a patron.")
PATRON_NO_GIFTS = _("I'm here as a patron, and politely decline to receive gifts.")
GOAL_RAW = _("My goal is to receive {0} per week on Gratipay.")
else:
- MAKING = WE_ARE_MAKING
GRATEFUL = _("We're grateful for gifts, but don't have a specific funding goal.")
PATRON = _("We're here as a patron.")
PATRON_NO_GIFTS = _("We're here as a patron, and politely decline to receive gifts.")
@@ -62,8 +57,8 @@ def with_others(obj):
- {% if participant.statement %}
-
+ {% if statement %}
+
{% else %}
{% endif %}
@@ -101,7 +96,7 @@ $(document).ready(function() {
{% include "templates/team-listing.html" %}
{% include "templates/community-listing.html" %}
diff --git a/www/%username/number.json.spt b/www/%username/number.json.spt
new file mode 100644
index 0000000000..3ab9547ec9
--- /dev/null
+++ b/www/%username/number.json.spt
@@ -0,0 +1,24 @@
+from __future__ import print_function, unicode_literals
+
+from aspen import Response
+from gratipay.utils import get_participant, wrap
+from gratipay.exceptions import ProblemChangingNumber
+
+[-----------------------------------------------------------------------------]
+
+request.allow("POST")
+participant = get_participant(request, restrict=True)
+
+number = request.body["number"]
+
+if number not in ("singular", "plural"):
+ raise Response(400)
+
+if number != participant.number:
+ try:
+ participant.update_number(number)
+ except ProblemChangingNumber, e:
+ raise Response(400, unicode(e))
+
+[---] application/json via json_dump
+{"number": wrap(number)}
diff --git a/www/%username/statement.json.spt b/www/%username/statement.json.spt
index 187e44ec73..f1b47cdf96 100644
--- a/www/%username/statement.json.spt
+++ b/www/%username/statement.json.spt
@@ -1,32 +1,16 @@
from __future__ import print_function, unicode_literals
from aspen import Response
-from gratipay.utils import wrap, markdown
-from gratipay.exceptions import ProblemChangingNumber
+from gratipay.utils import get_participant, markdown
[-----------------------------------------------------------------------------]
-if user.ANON:
- raise Response(404)
request.allow("POST")
+participant = get_participant(request, restrict=True)
statement = request.body["statement"]
-number = request.body["number"]
-if number not in ("singular", "plural"):
- raise Response(400)
-
-if number != user.participant.number:
- try:
- user.participant.update_number(number)
- except ProblemChangingNumber, e:
- raise Response(400, unicode(e))
-user.participant.update_statement(statement)
-
-I_AM_MAKING = _("I am making the world better by {0}")
-WE_ARE_MAKING = _("We are making the world better by {0}")
-
-MAKING = I_AM_MAKING if (number == 'singular') else WE_ARE_MAKING
+participant.update_statement(statement)
[---] application/json via json_dump
-{"statement": markdown.render(MAKING.format(statement)), "number": wrap(number)}
+{"statement": markdown.render(statement)}
diff --git a/www/about/teams/index.spt b/www/about/teams/index.spt
index 612ff69b9e..ef71562e55 100644
--- a/www/about/teams/index.spt
+++ b/www/about/teams/index.spt
@@ -19,15 +19,8 @@ make use of those funds to help support them in reaching their team's goals.
Creating a team
-
Team accounts are created just like regular accounts. Just login. Once you've
-setup your team account there are three steps to change it from a regular
-account into a team account:
-
-
-
On your team's Profile page, edit the "Statement" section.
-
Change "I am" into "We are".
-
Save the change.
-
+
Team accounts are created just like regular accounts. Just login. Then go to
+your Account page and change from "Individual" to "Team".
After you saved the change, the navigation section on the profile page should
include a new "Members" button. This section will list all of the team's members
diff --git a/www/for/%slug/index.html.spt b/www/for/%slug/index.html.spt
index f2841aa5d2..90c65f06c9 100644
--- a/www/for/%slug/index.html.spt
+++ b/www/for/%slug/index.html.spt
@@ -1,6 +1,6 @@
from aspen import Response
from gratipay.models.community import name_pattern, slugize, Community
-from gratipay.utils import format_money, to_statement
+from gratipay.utils import excerpt_intro, format_money
from gratipay.utils.query_cache import QueryCache
LUXURY = 4
@@ -9,9 +9,6 @@ query_cache = QueryCache(website.db, threshold=20)
[---]
-I_AM_MAKING = _("I am making the world better by {0}")
-WE_ARE_MAKING = _("We are making the world better by {0}")
-
_slug = path['slug']
if name_pattern.match(_slug) is None:
raise Response(404)
@@ -183,7 +180,7 @@ $(document).ready(function() {
{% for i, participant in enumerate(new_participants, start=1) %}