{% extends 'core/base.html' %}

{% block meta %}
<title>Chowist | {{ restaurant.name }}</title>
{% endblock %}

{% block content %}
<div class="container lead-container pb-3">
  <h1>{{ restaurant.name }}</h1>
  <p>Here are some details about the restaurant:</p>
  <ul>
    <li>Description: {{ restaurant.description }}</li>
    <li>Address: {{ restaurant.address }}</li>
    <li>Minimum Party: {{ restaurant.min_party }}</li>
    <li>Maximum Party: {{ restaurant.max_party }}</li>
  </ul>
  <p><a href="https://www.yelp.com/biz/{{ restaurant.yelp_link }}">Click here</a> to see the Yelp link.</p>
  {% if user.is_authenticated %}
    <a class="btn btn-primary" href="{% url 'places:restaurant-update' restaurant.id %}">Update</a>
  {% else %}
    <a class="btn btn-primary disabled" href="{% url 'places:restaurant-update' restaurant.id %}">Update</a>
  {% endif %}
</div>
{% endblock %}

{% extends 'core/base.html' %}

{% block meta %}
<title>Chowist | {{ restaurant.name }}</title>
{% endblock %}

{% block content %}
<div class="container lead-container pb-3">
  <h1>{{ restaurant.name }}</h1>
  <p>Here are some details about the restaurant:</p>
  <ul>
    <li>Description: {{ restaurant.description }}</li>
    <li>Address: {{ restaurant.address }}</li>
    <li>Minimum Party: {{ restaurant.min_party }}</li>
    <li>Maximum Party: {{ restaurant.max_party }}</li>
  </ul>
  <p>Ratings for this restaurant:</p>
  <ul>
    {% for rating in restaurant.ratings.all %}
      <li>{{ rating.author }}, {{ rating.stars }} - {{ rating.snippet }}</li>
    {% empty %}
      <li>No ratings yet.</li>
    {% endfor %}
  </ul>
  <p><a href="https://www.yelp.com/biz/{{ restaurant.yelp_link }}">Click here</a> to see the Yelp link.</p>
  {% if user.is_authenticated %}
    <a class="btn btn-primary" href="{% url 'places:restaurant-update' restaurant.id %}">Update</a>
  {% else %}
    <a class="btn btn-primary disabled" href="{% url 'places:restaurant-update' restaurant.id %}">Update</a>
  {% endif %}
</div>
{% endblock %}

Add area for restaurant ratings
Add area for restaurant ratings
