{% extends 'base.html' %} {% from 'macros.html' import show_avg_rating, entity_rate_form, show_life_span, display_pagination, show_review_buttons with context %} {% from 'common.html' import rating_script with context %} {% block title %}{{ place.name }} - CritiqueBrainz{% endblock %} {% block scripts_top %} {{ super() }} {% endblock %} {% block content %}

{{ place.name }}

{{ show_review_buttons(id, my_review, "place") }}
{% if place['coordinates'] is defined %} {% set lat = place['coordinates']['latitude'] | float %} {% set long = place['coordinates']['longitude'] | float %} {% endif %}
{% if lat is defined %}
{% endif %}
{{ entity_rate_form('place', 'place') }}

{{ _('Reviews') }}

{% if not reviews %}

{{ _('No reviews found') }}

{% else %} {% for review in reviews %} {% endfor %}
{{ _('Published on') }} {{ _('Votes (+/-)') }}
{{ _('by %(reviewer)s', reviewer=review.user.display_name) }} {{ review.published_on | date }} {{ review.votes_positive_count }}/{{ review.votes_negative_count }}
{% endif %}

{{ _('Place information') }}

{% if avg_rating %}
{{ show_avg_rating(avg_rating.rating, avg_rating.count) }}
{% endif %} {% if place['external-urls'] is defined %} {{ _('External links') }} {% endif %} {% if place['part-of'] is defined %} {{ _('Part of') }} {% endif %} {% if place['parts'] is defined %} {{ _('Parts') }} {% endif %}

{{ _('Events') }}

{% if events_count==0 %}

{{ _('No events found') }}

{% else %} {% for event in events %} {% endfor %}
{{ _('Title') }} {{ _('Date') }}
{{ event.name }} {{ show_life_span(event, True) }}
{{ display_pagination(page, events_count, events_limit, 'place.entity', {'id': id, 'event_type': event_type}) }} {% endif %}
{% endblock %} {% block scripts %} {{ rating_script }} {% endblock %}