Make the stars look consistent across platforms
[books.alexwlchan.net] / templates / _review_entry.html
index 1c4cec3..3a2fce5 100644 (file)
@@ -48,18 +48,13 @@ id="review_preview_{{ r }}_{{ g }}_{{ b }}">
           read {{ review_entry.review.date_read | render_date }}
             <br/>
           {% endif %}
-          {% if review_entry.review.rating %}
-            {% for _ in range(review_entry.review.rating) %}
-            ★
-            {% endfor %}
-            {% for _ in range(5 - review_entry.review.rating) %}
-            ☆
-            {% endfor %}
-          {% endif %}
-          {% if review_entry.review.did_not_finish %}
-            (did not finish)
-          {% endif %}
+          <div class="star_rating">
+            <img src="/static/{{ review_entry.review.rating }}star.svg">
+          </div>
         </small>
+        {% if review_entry.review.did_not_finish %}
+          (did not finish)
+        {% endif %}
       </p>
     </div>
   </a>