"did not finish" should be small, should not show star rating
authorAlex Chan <alex@alexwlchan.net>
Sun, 13 Dec 2020 22:45:30 +0000 (22:45 +0000)
committerAlex Chan <alex@alexwlchan.net>
Wed, 16 Dec 2020 21:00:14 +0000 (21:00 +0000)
templates/_review_entry.html

index 865664b..65fd6d0 100644 (file)
@@ -28,8 +28,9 @@ id="review_preview_{{ r }}_{{ g }}_{{ b }}">
             <br/>
           {% endif %}
 
-          <span class="star_rating">
-          {% if review_entry.review.rating %}
+          {% if review_entry.review.rating and not review_entry.review.did_not_finish %}
+            <span class="star_rating">
+
             {% for _ in range(review_entry.review.rating) -%}
             ★
             {%- endfor -%}
@@ -38,10 +39,11 @@ id="review_preview_{{ r }}_{{ g }}_{{ b }}">
             {%- endfor %}
           {% endif %}
           </span>
-        </small>
-        {% if review_entry.review.did_not_finish %}
+
+          {% if review_entry.review.did_not_finish %}
           (did not finish)
-        {% endif %}
+          {% endif %}
+        </small>
       </p>
     </div>
   </a>