mirror of
https://github.com/kennethreitz-archive/www.gittip.com.git
synced 2026-06-21 07:40:58 +00:00
5c22715310
This changes "Twitter" to "on Twitter" to make clear that it's not a label for what the img above it is, but where it is coming from. Or something.
81 lines
3.3 KiB
HTML
81 lines
3.3 KiB
HTML
<h2>Connected Accounts</h2>
|
|
|
|
<table id="accounts">
|
|
<tr>
|
|
<td class="account-type">
|
|
<img src="/assets/twitter.png" />
|
|
</td>
|
|
<td class="account-details">
|
|
{% if twitter_account is None %}
|
|
{% if not user.ANON and user.id == participant.id %}
|
|
Connect a <a href="{{ twitter.oauth_url(website, u'connect') }}">Twitter account</a>.
|
|
{% else %}
|
|
No Twitter account connected.
|
|
{% end %}
|
|
{% else %}
|
|
<a href="{{ twitter_account.user_info.get('html_url', '') }}"
|
|
><img class="avatar"
|
|
src="{{ twitter_account.user_info.get('profile_image_url_https', '/assets/%s/no-avatar.png' % __version__) }}"
|
|
/>{{ twitter_account.user_info.get('screen_name') }}
|
|
{% if twitter_account.user_info.get('name') %}({{ twitter_account.user_info.get('name') }}){% end %}
|
|
</a>
|
|
{% end %}
|
|
<div class="account-type">on Twitter</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="account-type">
|
|
<img src="/assets/octocat.png" />
|
|
</td>
|
|
<td class="account-details">
|
|
{% if github_account %}
|
|
<a href="{{ github_account.user_info.get('html_url', '') }}"
|
|
><img class="avatar" src="{{ github_account.user_info.get('avatar_url', '/assets/%s/no-avatar.png' % __version__) }}"
|
|
/>{{ github_account.user_info.get('login') }}
|
|
{% if github_account.user_info.get('name') %}({{ github_account.user_info.get('name') }}){% end %}<br />
|
|
</a>
|
|
{% else %}
|
|
{% if not user.ANON and user.id == participant.id %}
|
|
Connect a <a href="{{ github.oauth_url(website, u'connect') }}">GitHub account</a>.
|
|
{% else %}
|
|
No GitHub account connected.
|
|
{% end %}
|
|
{% end %}
|
|
<div class="account-type">on GitHub</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="account-type">
|
|
<img src="/assets/balanced-avatar.png" /></a>
|
|
</td>
|
|
<td class="account-details">
|
|
{% if user.id == participant.id %}
|
|
|
|
<a href="/credit-card.html">Credit card</a>:
|
|
<!--
|
|
These spans are here because otherwise Chrome effs up the
|
|
unicode(?!)
|
|
-->
|
|
<span>{% if participant.last_bill_result != "" %}✘{% else %}✔{% end %}</span>
|
|
|
|
<a href="/bank-account.html">Bank account</a>:
|
|
<span>{% if participant.last_ach_result != "" %}✘{% else %}✔{% end %}</span>
|
|
|
|
{% else %}
|
|
|
|
Credit card:
|
|
<span>{% if participant.last_bill_result != "" %}✘{% else %}✔{% end %}</span>
|
|
|
|
Bank account:
|
|
<span>{% if participant.last_ach_result != "" %}✘{% else %}✔{% end %}</span>
|
|
|
|
{% end %}
|
|
<div class="account-type">{% if user.ADMIN and participant.balanced_account_uri %}
|
|
<a href="https://www.balancedpayments.com/{{ participant.balanced_account_uri[3:] }}"
|
|
>on Balanced Payments</a>{% else %}on Balanced Payments{% end %}</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
|