{% extends 'devices/base.html' %}{% load i18n %} {% block title %}Google Calendar · RemindHub{% endblock %} {% block content %} ← {{ device.label }}

{{ device.label }}

Google Calendar

{% translate 'Read appointments from your primary Google calendar.' %}

{% translate 'RemindHub can only read your events. It cannot change your Google calendar. Only appointment titles and dates are sent to this device.' %}

{% if not google_enabled %}

{% translate 'Google Calendar is not available yet. The service administrator needs to complete Google Cloud setup.' %}

{% endif %} {% if connection %} {% if connection.status == 'ok' %}

{% translate 'Calendar connected' %}

{% elif connection.status == 'reconnect_required' %}

{% translate 'Google access has expired or was revoked. Connect again to resume synchronization.' %}

{% elif connection.status == 'capacity_exceeded' %}

{% translate 'Too many appointments to synchronize safely. Reduce the calendar contents or remove old manual appointments.' %}

{% elif connection.status == 'pending' %}

{% translate 'Waiting for the first synchronization.' %}

{% else %}

{% translate 'Google is temporarily unavailable. Previously fetched appointments remain available.' %}

{% endif %}
{% translate 'Last successful synchronization' %}
{% if connection.fetched_at %}{{ connection.fetched_at|date:'DATETIME_FORMAT' }}{% else %}{% translate 'Not yet' %}{% endif %}
{% translate 'Cached appointments' %}
{{ connection.events|length }}
{% if google_enabled %}
{% csrf_token %}
{% endif %} {% endif %} {% if google_enabled %}
{% csrf_token %}
{% endif %}

{% translate 'Synchronization runs about every five minutes. This first version supports one primary Google calendar per device and up to 250 Google appointments in the coming eight days.' %}

{% if connection %}

{% translate 'Cached appointments' %}

{% for event in appointments %}
{{ event.title }}{{ event.display_range }}
{% empty %}

{% translate 'No appointments in the current calendar window.' %}

{% endfor %}

{% translate 'Disconnect Google Calendar' %}

{% translate 'Disconnecting deletes the saved Google credentials and calendar cache on this server. Offline devices keep their previous cache until they reconnect.' %}

{% translate 'To revoke the entire Google authorization, also remove RemindHub in your Google Account connections. This may affect your other RemindHub devices.' %} Google Account

{% csrf_token %}
{% endif %} {% endblock %}