{% extends "base.html" %} {% block title %}Google Calendar — {{ club.name }}{% endblock %} {% block content %} {% include "club_ribbon.html" %} {% if not google_calendar_configured %}
Google Calendar is not configured on this site. Contact your site administrator.
{% elif not club.google_calendar_connected %} {# Not connected yet #}
Connect Google Calendar

Connect your club's Google account and we'll make a calendar called “{{ club.name }} events” in it. From then on your auctions and events appear there automatically, and anything you add in Google Calendar shows up on your club page.

We can only see and change the calendar we create — not the rest of your Google account.

Connect Google Calendar
{% else %} {# Connected #} {% if not club.google_calendar_is_public %} {% comment %} Setup guidance, not an error — the site's own iCal feed already works, so this uses the documented "do this first" bg-primary banner rather than alert-warning. This has to be a {% templatetag openblock %} comment {% templatetag closeblock %} block: Django's {% templatetag openbrace %}# … #{% templatetag closebrace %} form is single-line only, and a two-line one renders onto the page. {% endcomment %}
One more step to let members subscribe

Your calendar is syncing, but it's still private, so members can't add it to their own Google Calendar yet. We can't make it public for you — that would mean asking for access to all of your calendars instead of just this one.

Show me how — takes a minute
{% endif %}
Google Calendar connection Connected
Google account
{{ club.google_calendar_account_email|default:"—" }}
Calendar
{{ club.name }} events {% if club.google_calendar_public_url %} — open in Google Calendar {% endif %}
Upcoming events
{{ upcoming_count }}{% if auction_event_count %} ({{ auction_event_count }} from auctions){% endif %}
Last sync
{{ club.google_calendar_last_sync|default:"—" }}

Changes sync both ways every 15 minutes, and immediately when you add an event here.

{% if club.google_calendar_last_error %}
Last error: {{ club.google_calendar_last_error }}
{% endif %}
Share it with your members {% if club.google_calendar_is_public %} Public {% else %} Private {% endif %}

Your club page already offers a subscribe link that works in Google Calendar, Apple Calendar and Outlook. You don't have to do anything else.

If you'd also like members to subscribe to the Google calendar itself, make it public in Google Calendar — we can't do it for you, because that would mean asking for access to all of your calendars rather than just this one:

  1. Open Google Calendar settings.
  2. Pick {{ club.name }} events from the list on the left.
  3. Under Access permissions for events, tick Make available to public.
  4. Come back here and tick the box below.
{% if club.google_calendar_is_public %} {% endif %}
{% endif %}
Event settings
{% csrf_token %}
{% if club.google_calendar_connected %}
{% endif %}

Your club page always offers an iCal feed of your events, whether or not Google Calendar is connected.

{% endblock %}