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

include dollars in the welcome #3742

Merged
merged 1 commit into from
Sep 1, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion www/index.html.spt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ teams = website.db.all("""
ORDER BY ctime DESC

""")
volume = website.db.one("SELECT volume FROM paydays ORDER BY ts_start DESC LIMIT 1", default=0)
volume = int(round(volume, -2))

tabs = OrderedDict()
tabs['approved'] = {'teams': []}
Expand Down Expand Up @@ -60,8 +62,9 @@ suppress_welcome = 'suppress-welcome' in request.cookie
{% if not suppress_welcome %}
<div class="welcome">
<p><b>{{ _("Welcome to Gratipay!") }}</b></p>
<p>{{ _( "We have {nteams} Teams receiving and sharing money each week."
<p>{{ _( "We have {nteams} Teams receiving and sharing about {volume} each week."
, nteams=tabs['approved']['n']
, volume=format_currency(volume, 'USD', trailing_zeroes=False)
) }}</p>
<p>{{ _( "Continue to explore our Teams, or {a}read more about us{_a}."
, a='<a href="/about/">'|safe
Expand Down