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

Commit

Permalink
Show n for tabs, no top-level N
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed Sep 1, 2015
1 parent 87d795a commit fd32b8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/js/test_authed_homepage.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('authed homepage', function() {
browser
.url('http://localhost:8537')
.getText('#content h1', function(err, text) {
assert.equal(text, 'Teams (N=0)');
assert.equal(text, 'Teams');
})
.deleteCookie('session')
.call(done);
Expand Down
4 changes: 2 additions & 2 deletions www/index.html.spt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ for key, tab in tabs.items():
nteams += n
tab['name'] = "{} (n={})".format(i18ned_statuses[key], n)

title = _("Teams (N={0})", nteams)
title = _("Teams")
suppress_sidebar = True
suppress_welcome = 'suppress-welcome' in request.cookie
[---]
Expand Down Expand Up @@ -61,7 +61,7 @@ suppress_welcome = 'suppress-welcome' in request.cookie
<div class="welcome">
<p><b>{{ _("Welcome to Gratipay!") }}</b></p>
<p>{{ _( "We have {nteams} Teams receiving and sharing money each week."
, nteams=napproved
, nteams=tabs['approved']['n']
) }}</p>
<p>{{ _( "Continue to explore our Teams, or {a}read more about us{_a}."
, a='<a href="/about/">'|safe
Expand Down

0 comments on commit fd32b8f

Please sign in to comment.