Kaynağa Gözat

Change email template a lilbit

Mohidul Islam 5 yıl önce
ebeveyn
işleme
ce2f465d63
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  1. 4 0
      analytics/templates/weekly_report.html

+ 4 - 0
analytics/templates/weekly_report.html

@@ -51,6 +51,9 @@
       <tr>
         <td>Google</td>
         <td>
+          {% if google_ratings.count == 0 %}
+          <span style="color: red; font-weight: bold;">No Ratings!</span>
+          {% else %}
           {% for r in google_ratings %}
             {% if r.star_rating < 3 %}
               <span style="color: red; font-weight: bold;">{{ r.star_rating }}* star: {{ r.total }}</span> </br>
@@ -58,6 +61,7 @@
               <span>{{ r.star_rating }}* star: {{ r.total }}</span> </br>
             {% endif %}
           {% endfor %}
+          {% endif %}
         </td>
         <td>
           {% for s_n in google_staffs %}