|
@@ -50,16 +50,19 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-{% for review in reviews %}
|
|
|
- {% if platform == 'google' %}
|
|
|
- {% include '_google_review.html' %}
|
|
|
- {% elif platform == 'facebook' %}
|
|
|
- {% include '_facebook_review.html' %}
|
|
|
- {% elif platform == 'yelp' %}
|
|
|
- {% include '_yelp_review.html' %}
|
|
|
- {% endif %}
|
|
|
-{% endfor %}
|
|
|
-
|
|
|
+{% if reviews %}
|
|
|
+ {% for review in reviews %}
|
|
|
+ {% if platform == 'google' %}
|
|
|
+ {% include '_google_review.html' %}
|
|
|
+ {% elif platform == 'facebook' %}
|
|
|
+ {% include '_facebook_review.html' %}
|
|
|
+ {% elif platform == 'yelp' %}
|
|
|
+ {% include '_yelp_review.html' %}
|
|
|
+ {% endif %}
|
|
|
+ {% endfor %}
|
|
|
+{% else %}
|
|
|
+ <h3 style="text-align: center;margin: 2rem">No review found!</h3>
|
|
|
+{% endif %}
|
|
|
<div align="center">
|
|
|
{% if reviews.has_other_pages %}
|
|
|
|