Merge pull request #53 from Adman/master

Added href to user's followers, modified organizations
This commit is contained in:
David Coallier
2012-10-25 13:08:44 -07:00
3 changed files with 17 additions and 5 deletions

View File

@@ -110,13 +110,21 @@ var run = function() {
name = data.name;
}
var avatar = '';
if (data.type == 'Organization'){
avatar = data.avatar_url.match(/https:\/\/secure.gravatar.com\/avatar\/[0-9a-z]+/)[0];
avatar += '?s=140&d=https://github.com/images/gravatars/gravatar-140.png';
}
var view = {
name: name,
type: data.type,
email: data.email,
created_at: data.created_at,
earlyAdopter: 0,
location: data.location,
gravatar_id: data.gravatar_id,
avatar_url: avatar,
repos: data.public_repos,
reposLabel: data.public_repos > 1 ? 'repositories' : 'repository',
followers: data.followers,
@@ -184,8 +192,9 @@ var run = function() {
view.blog = addHttp + data.blog;
}
var resume = (data.type == 'User' ? 'views/resume.html' : 'views/resumeOrgs.html');
$.ajax({
url: 'views/resume.html',
url: resume,
dataType: 'html',
success: function(data) {
var template = data,

View File

@@ -41,7 +41,7 @@
{{#location}}
based in <span class="adr locality">{{location}}</span>
{{/location}}
{{#repos}}with <a href="https://github.com/{{{username}}}">{{repos}} public {{reposLabel}}</a>{{/repos}}{{^repos}}without any public repository for now{{/repos}}{{#followers}}&nbsp;and {{followers}} {{followersLabel}}{{/followers}}.
{{#repos}}with <a href="https://github.com/{{{username}}}">{{repos}} public {{reposLabel}}</a>{{/repos}}{{^repos}}without any public repository for now{{/repos}}{{#followers}}&nbsp;and <a href="https://github.com/{{{username}}}/followers">{{followers}} {{followersLabel}}</a> {{/followers}}.
I've been using github.com since {{since}}{{#earlyAdopter}}, therefore I'm an early adopter,{{/earlyAdopter}}
{{#blog}}&nbsp;and sometimes I blog at <a href="{{blog}}" id="myblog" title="my blog">{{blog}}</a>.{{/blog}}
</p>

View File

@@ -13,7 +13,7 @@
<div class="yui-u">
<div class="contact-info">
{{#gravatar_id}}
<img src="https://secure.gravatar.com/avatar/{{gravatar_id}}?s=140&amp;d=https://github.com/images/gravatars/gravatar-140.png" alt=""/>
<img src="{{avatar_url}}" alt="" class="photo"/>
{{/gravatar_id}}
{{#email}}<h3><a href="mailto:{{email}}">{{email}}</a></h3>{{/email}}
</div><!--// .contact-info -->
@@ -31,11 +31,14 @@
</div>
<div class="yui-u">
<p class="enlarge">
We are XX developers gathered in a group
We are a developers gathered in a group
{{#location}}
based in {{location}}
{{/location}}
with <a href="https://github.com/{{{username}}}">{{repos}} public {{reposLabel}}</a>.
{{#repos}}
with <a href="https://github.com/{{{username}}}">{{repos}} public {{reposLabel}}</a>
{{/repos}}
{{#followers}}&nbsp;and <a href="https://github.com/{{{username}}}/followers">{{followers}} {{followersLabel}}</a>{{/followers}}.
We've created this Github group in {{since}}{{#earlyAdopter}}, therefore I'm an early adopter,{{/earlyAdopter}}{{#blog}}&nbsp;and you can find more informations about us at <a href="{{blog}}" id="myblog" title="my blog">{{blog}}</a>{{/blog}}.
</p>
<p id="languages" class="enlarge"></p>