Display number of followers (issue #9)

This commit is contained in:
NumEricR
2011-04-10 21:53:53 +02:00
parent 8f954d4812
commit 0c809ee3ab
2 changed files with 4 additions and 2 deletions

View File

@@ -85,7 +85,9 @@ var run = function() {
location: data.user.location,
gravatar_id: data.user.gravatar_id,
repos: data.user.public_repo_count,
plural: data.user.public_repo_count > 1 ? 'repositories' : 'repository',
reposLabel: data.user.public_repo_count > 1 ? 'repositories' : 'repository',
followers: data.user.followers_count,
followersLabel: data.user.followers_count > 1 ? 'followers' : 'follower',
username: username,
since: since
};

View File

@@ -35,7 +35,7 @@
{{#location}}
based in {{location}}
{{/location}}
with <a href="https://github.com/{{{username}}}">{{repos}} public {{plural}}</a>.
with <a href="https://github.com/{{{username}}}">{{repos}} public {{reposLabel}}</a>{{#followers}}&nbsp;and {{followers}} {{followersLabel}}{{/followers}}.
I've been using github.com since {{since}}{{#blog}}&nbsp;and sometimes I blog at <a href="{{blog}}" id="myblog" title="my blog">{{blog}}</a>{{/blog}}.
</p>
<p id="languages" class="enlarge"></p>