Add ability to make neutral reviews

This commit is contained in:
rubenwardy
2023-04-15 02:37:58 +01:00
parent 1235bc14db
commit b1bd39c0fc
15 changed files with 101 additions and 34 deletions

View File

@@ -69,9 +69,11 @@
<span class="btn" title="{{ _('Reviews') }}">
<i class="fas fa-star-half-alt"></i>
<span class="count">
+{{ package.reviews | selectattr("recommends") | list | length }}
+{{ package.reviews | selectattr("rating", "equalto", 5) | list | length }}
/
-{{ package.reviews | rejectattr("recommends") | list | length }}
{{ package.reviews | selectattr("rating", "equalto", 3) | list | length }}
/
-{{ package.reviews | selectattr("rating", "equalto", 1) | list | length }}
</span>
</span>
</div>