diff --git a/PyRIGS/settings.py b/PyRIGS/settings.py index 54a3d228..20d1ac1f 100644 --- a/PyRIGS/settings.py +++ b/PyRIGS/settings.py @@ -35,6 +35,8 @@ if DEBUG: ALLOWED_HOSTS.append('localhost') ALLOWED_HOSTS.append('example.com') ALLOWED_HOSTS.append('127.0.0.1') + ALLOWED_HOSTS.append('.app.github.dev') + CSRF_TRUSTED_ORIGINS = ALLOWED_HOSTS SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') if not DEBUG: diff --git a/RIGS/templates/partials/event_status.html b/RIGS/templates/partials/event_status.html index 7c521de1..55c9192a 100644 --- a/RIGS/templates/partials/event_status.html +++ b/RIGS/templates/partials/event_status.html @@ -1,4 +1,4 @@ -
| # | -Dates & Times | -Event Details | -MIC | -
|---|---|---|---|
| {{ event.display_id }} | - -
- {% if not event.cancelled %}
- {% if event.meet_at %}
- Meet: {{ event.meet_at|date:"D d/m/Y H:i" }}
- {% endif %}
- {% if event.access_at %}
- Access: {{ event.access_at|date:"D d/m/Y H:i" }} - {% endif %} - {% endif %} - Start: {{ event.start_date|date:"D d/m/Y" }} - {% if event.has_start_time %} - {{ event.start_time|date:"H:i" }} - {% endif %} - - {% if event.end_date %} - - End: {% if event.end_date != event.start_date %}{{ event.end_date|date:"D d/m/Y" }}{% endif %} - {% if event.has_end_time %} - {{ event.end_time|date:"H:i" }} - {% endif %} - - {% endif %} - |
-
-
- - - {{ event.name }} - - {% if event.venue %} - at {{ event.venue|namewithnotes:'venue_detail' }} - {% endif %} - {% if event.dry_hire %} - Dry Hire - {% endif %} -- {% if event.is_rig and not event.cancelled %} -- {{ event.person.name }} - {% if event.organisation %} - for {{ event.organisation.name }} - {% endif %} -- {% endif %} - {% if not event.cancelled and event.description %} -{{ event.description|markdown }} - {% endif %} - {% include 'partials/event_status.html' %} - |
-
-
- {% if event.mic %}
- {% if perms.RIGS.view_profile %}
-
- {% endif %}
- |
-
| No events found | -|||