Add ability to make neutral reviews
This commit is contained in:
@@ -198,9 +198,11 @@
|
||||
<a class="btn" href="#reviews" 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>
|
||||
</a>
|
||||
{% if package.website %}
|
||||
|
||||
Reference in New Issue
Block a user