{% extends "base/base.html" %} {% load static %} {% load park_tags %} {% load cotton %} {% block title %}{{ park.name }} - ThrillWiki{% endblock %} {% block extra_head %} {% if park.location.exists %} {% endif %} {% endblock %} {% block content %}

{{ park.name }}

{% if park.formatted_location %}

{{ park.formatted_location }}

{% endif %}
{{ park.get_status_display }} {% if park.average_rating %} {{ park.average_rating|floatformat:1 }}/10 {% endif %}
{% if park.operator %}
Operator
{{ park.operator.name }}
{% endif %} {% if park.property_owner and park.property_owner != park.operator %}
Property Owner
{{ park.property_owner.name }}
{% endif %}
Total Rides
{{ park.ride_count|default:"N/A" }}
Roller Coasters
{{ park.coaster_count|default:"N/A" }}
Status
{{ park.get_status_display }}
{% if park.opening_date %}
Opened
{{ park.opening_date }}
{% endif %} {% if park.website %}
Website
Visit
{% endif %}
{% if park.photos.exists %}

Photos

{% include "media/partials/photo_display.html" with photos=park.photos.all content_type="parks.park" object_id=park.id %}
{% endif %}
{% if park.description %}

About

{{ park.description|linebreaks }}
{% endif %}

Rides & Attractions

View All
{% if park.rides.exists %}
{% for ride in park.rides.all|slice:":6" %} {% endfor %}
{% else %}

No rides or attractions listed yet.

{% endif %}
{% if park.location.exists %}

Location

{% with location=park.location.first %} {% if location.latitude is not None and location.longitude is not None %}
{% else %}

Location information not available

{% endif %} {% endwith %}
{% endif %}

History

{% for record in history %}
{{ record.history_date|date:"M d, Y H:i" }} {% if record.history_user %} by {{ record.history_user.username }} {% endif %}
{% for field, changes in record.diff_against_previous.items %} {% if field != "updated_at" %}
{{ field|title }}: {{ changes.old }} {{ changes.new }}
{% endif %} {% endfor %}
{% empty %}

No history available.

{% endfor %}
{% if perms.media.add_photo %}

Upload Photos

{% include "media/partials/photo_upload.html" with content_type="parks.park" object_id=park.id %}
{% endif %} {% endblock %} {% block extra_js %} {% if park.location.exists %} {% endif %} {% endblock %}