{% from 'templates/avatar-url.html' import avatar_img with context %}

{% set account = accounts.get('venmo', None) %}
<tr class="{{ 'has-avatar' if account }}">
    <td class="account-type">
        <div class="sanity-preserving-wrapper">
            {% if account != None %}
                {{ avatar_img(account) }}
            {% endif %}
          <img class="platform" src="{{ website.asset('platforms/venmo.png') }}" />
        </div>
    </td>
    <td class="account-details">
        {% if account %}
            <a class="account-username" rel="me" href="{{ account.html_url }}"
                >{{ account.user_name }}
                {% if account.display_name and account.display_name != account.user_name %}
                    ({{ account.display_name }})
                {% endif %}
            </a>
        {% endif %}

        <div class="account-type">Venmo</div>
    </td>
    <td class="account-action">
        {% if account == None %}
            {% if not user.ANON and user.participant == participant %}
                {% call auth_button('venmo', 'connect') %}
                    {{ _("+ Add") }}
                {% endcall %}
            {% endif %}
        {% else %}
            {% if user.participant == participant %}
                <div class="account-delete" title="{{ _('Disconnect') }}"
                        data-platform="venmo"
                        data-user_id="{{ account.user_id }}">
                </div>
            {% else %}
                <div class="venmo-button">
                    <a class="venmo-pay-button" data-recipient-id="{{account.user_id}}"></a>
                </div>
            {% endif %}
        {% endif %}
    </td>
</tr>

<script src="https://platform.venmo.com/sdk.js"></script>

Revert "Remove template for Venmo"
Revert "Remove template for Venmo"

This reverts commit c50ea5377dd3e9000ebd414a4ee7d66a93924ff5.
