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

Commit

Permalink
Move github/ under on/ (#80)
Browse files Browse the repository at this point in the history
This paves the way for adding new social networks. By putting these
under their own namespace we remove clutter from the top-level
namespace, which is for Gittip users. What if GitHub wants an account on
Gittip? :-)
  • Loading branch information
chadwhitacre committed Sep 11, 2012
1 parent 35e3a10 commit 3cf866c
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion www/%participant_id/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
login = participant['user_info'].get('login')
if login is None:
raise Response(404)
request.redirect('/github/%s/' % login)
request.redirect('/on/github/%s/' % login)

if not user.ANON:
if user.id == username:
Expand Down
2 changes: 1 addition & 1 deletion www/assets/%version/gittip.js
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ Gittip.initJumpToPerson = function()
e.preventDefault();
e.stopPropagation();
if (val !== '')
window.location = '/github/' + val + '/';
window.location = '/on/github/' + val + '/';
return false;
}
$('#jump').submit(jump);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ <h2 class="first"><b>{{ name }}</b> is an {{ usertype }} on GitHub.</h2>
<tr class="not-over"><td>
{% if not user.ANON %}
<th>
<a href="/github/{{ member['login'] }}/"><img src="{{ member.get('avatar_url', '/assets/%s/no-avatar.png' % __version__) }}" />
<a href="/on/github/{{ member['login'] }}/"><img src="{{ member.get('avatar_url', '/assets/%s/no-avatar.png' % __version__) }}" />
{{ member['login'] }}</a>
</th>
<td>
Expand All @@ -170,7 +170,7 @@ <h2 class="first"><b>{{ name }}</b> is an {{ usertype }} on GitHub.</h2>
</td>
{% else %}
<td>
<a href="/github/{{ member['login'] }}/"><img src="{{ member.get('avatar_url', '/assets/%s/no-avatar.png' % __version__) }}" />
<a href="/on/github/{{ member['login'] }}/"><img src="{{ member.get('avatar_url', '/assets/%s/no-avatar.png' % __version__) }}" />
{{ member['login'] }}</a>
</td>
{% end %}
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 3cf866c

Please sign in to comment.