{% extends "postings/generic_page.html" %}
{# Represents a single entity's detail page. #}
{% block content %}
Name: {{ entity.name }} {{ entity.average }}
Average rating: {{ entity.average_rating|floatformat:"-2" }}
{# Depending on the type of entity, some detailed info is provided here. #}
{% block entity_info %}
{% endblock %}
{# This section displays all reviews for a given entity. #}
Reviews
{% for review in entity.review_set.all %}
{% include "postings/rateables/review.html" with review=review only %}
{% endfor %}
{# This section is where the user can write a review for a particular entity and submit it. #}