mirror of
https://github.com/resume/resume.github.com.git
synced 2025-12-30 15:49:30 -06:00
Merge pull request #53 from Adman/master
Added href to user's followers, modified organizations
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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}} 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}} 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}} and sometimes I blog at <a href="{{blog}}" id="myblog" title="my blog">{{blog}}</a>.{{/blog}}
|
||||
</p>
|
||||
|
||||
@@ -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&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}} 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}} 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>
|
||||
|
||||
Reference in New Issue
Block a user