Browse Source

added if no review found in manager review list

Mohidul Islam 4 years ago
parent
commit
2fb280ab71
1 changed files with 13 additions and 10 deletions
  1. 13 10
      manager/templates/review-list-man.html

+ 13 - 10
manager/templates/review-list-man.html

@@ -50,16 +50,19 @@
     </div>
     </div>
   </div>
   </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">
 <div align="center">
   {% if reviews.has_other_pages %}
   {% if reviews.has_other_pages %}