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

@@ -3,10 +3,12 @@
{% block title %}
{%- if thread.package -%}
{%- if thread.review -%}
{%- if thread.review.recommends -%}
{%- if thread.review.rating > 3 -%}
{%- set rating = "👍" -%}
{%- else -%}
{%- elif thread.review.rating < 3 -%}
{%- set rating = "👎" -%}
{%- else -%}
{%- set rating = "-" -%}
{%- endif -%}
{%- endif -%}
{{ rating }} {{ thread.title }} - {{ thread.package.title }}
@@ -70,10 +72,12 @@
<h1>
{% if thread.review %}
{% if thread.review.recommends %}
{% if thread.review.rating > 3 %}
<i class="fas fa-thumbs-up mr-2" style="color:#6f6;"></i>
{% else %}
{% elif thread.review.rating < 3 %}
<i class="fas fa-thumbs-down mr-2" style="color:#f66;"></i>
{% else %}
<i class="fas fa-minus mr-2" style="color:#999"></i>
{% endif %}
{% endif %}
{% if thread.private %}&#x1f512; {% endif %}{{ thread.title }}