{% load membership_tags %}

{{ member.display_name }}

{{ club.name }}

{% if member.club.show_member_barcode %}
Membership number
{{ member.membership_number }}
{% if member.barcode_image_link %}
Membership barcode
{% endif %} {% endif %} {% if member.club.membership_annual_fee and member.membership_expiration_date %}

Membership expires: {{ member.membership_expiration_date|date:"M j, Y" }}

{% endif %} {% if member.bap_points or member.hap_points or member.culture_points %}

{% if member.bap_points %}BAP: {{ member.bap_points }} pts{% endif %} {% if member.hap_points %}{% if member.bap_points %}  |  {% endif %}HAP: {{ member.hap_points }} pts{% endif %} {% if member.culture_points %}{% if member.bap_points or member.hap_points %}  |  {% endif %}Culture: {{ member.culture_points }} pts{% endif %}

{% endif %}

Member since: {{ member.createdon|date:"M j, Y" }}

{% google_wallet_save_url member as wallet_url %} {% comment %} In the app, only the wallet that phone actually has: the Google Wallet save URL opens in the system browser, so on an iPhone it's a button that leaves the app to do nothing, and an Apple Wallet download on Android is the same in reverse. On the web both are offered, since the browser could be on either platform. {% endcomment %}
{% if wallet_url and request.mobile_app_platform != 'ios' %} Add to Google Wallet {% endif %} {% if apple_wallet_enabled and member.club.show_member_barcode %} {% if request.mobile_app_platform != 'android' %} Add to Apple Wallet {% endif %} {% elif wallet_url and not request.is_mobile_app %} {% comment %} Google Wallet is configured but Apple isn't — show a stub that explains why. Web only: the explainer's "or just take a screenshot" is written for someone reading on a computer, and it reads as nonsense on the phone that would have held the pass. {% endcomment %} {% endif %}
{% if not apple_wallet_enabled and wallet_url and not request.is_mobile_app %}
Apple wants a hundred bucks to add passes, which is crazy given everything else is completely free. If you want to add membership cards to your iPhone, send the $100 to TFCB and we'll get verified with them and enable Apple Wallet integration for everyone. Or just take a screenshot.
{% endif %}