This repository has been archived by the owner on Feb 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f5da28f
commit 5630740
Showing
3 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
from aspen import Response | ||
[---] | ||
platform = getattr(website.platforms, path['platform'], None) | ||
if platform is None: | ||
raise Response(404) | ||
title = platform.display_name | ||
account = user.participant.get_account_elsewhere(platform.name) | ||
[---] text/html | ||
{% extends "templates/base.html" %} | ||
{% block content %} | ||
|
||
|
||
{% if user.ANON %} | ||
|
||
<p>{{ _("Sign in to Gratipay with {0} to find your friends from there.", | ||
platform.display_name) }}</p> | ||
|
||
{% else %} | ||
<p>{{ _("Here are your friends from {0} who are also on Gratipay:", | ||
platform.display_name) }}</p> | ||
|
||
<table class="table"> | ||
<tr> | ||
<th>{{ _('Name') }}</th> | ||
</tr> | ||
{% for friend in account.get_friends() %} | ||
<tr> | ||
<td>{{ friend['name'] }}</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
{% endif %} | ||
{% endblock %} |