Revert "FEATURE: display github profile links on user card and profile"

This reverts commit 95c518329a.
This commit is contained in:
Sam
2014-11-05 07:45:35 +11:00
parent e8a750e27a
commit cc9b040502
8 changed files with 2 additions and 31 deletions
@@ -437,15 +437,7 @@ Discourse.User = Discourse.Model.extend({
});
}
}, function () {});
},
githubProfileUrl: function(){
var screenName = this.get('github_screen_name');
if(screenName) {
return "https://github.com/" + screenName;
}
}.property()
}
});
@@ -57,9 +57,6 @@
<div class="metadata">
<h3><span class='desc'>{{i18n last_post}}</span> {{format-date path="user.last_posted_at" leaveAgo="true"}} </h3>
<h3><span class='desc'>{{i18n joined}}</span> {{format-date path="user.created_at" leaveAgo="true"}}</h3>
{{#if user.githubProfileUrl}}
<h3><a href="{{unbound user.githubProfileUrl}}">{{i18n user.github_profile}}</a></h3>
{{/if}}
</div>
{{/if}}
@@ -150,10 +150,6 @@
{{/if}}
</dd>
{{/if}}
{{#if github_screen_name}}
<dt>GitHub</dt>
<dd><a href="{{unbound githubProfileUrl}}">{{github_screen_name}}</a></dd>
{{/if}}
</dl>
{{plugin-outlet "user-profile-secondary"}}
</div>