diff options
| author | rubenwardy <rw@rubenwardy.com> | 2020-07-09 04:10:09 +0100 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2020-07-09 04:10:09 +0100 |
| commit | 307b8f8ddea30cb44ad02170b40dd3c0d1d3d6c3 (patch) | |
| tree | 50572120643ec9f6f5da9b68c507bd4b61d1d5ff /app/templates/threads/view.html | |
| parent | 9d033acffff319e4f38b98a09ff2519f3f36dc88 (diff) | |
| download | cheatdb-307b8f8ddea30cb44ad02170b40dd3c0d1d3d6c3.tar.xz | |
Add reviews
Fixes #173
Diffstat (limited to 'app/templates/threads/view.html')
| -rw-r--r-- | app/templates/threads/view.html | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/app/templates/threads/view.html b/app/templates/threads/view.html index 13097fe..b91f866 100644 --- a/app/templates/threads/view.html +++ b/app/templates/threads/view.html @@ -19,12 +19,21 @@ Threads {% endif %} {% endif %} - <h1>{% if thread.private %}🔒 {% endif %}{{ thread.title }}</h1> - - {% if thread.package or current_user.is_authenticated %} - {% if thread.package %} - <p>Package: <a href="{{ thread.package.getDetailsURL() }}">{{ thread.package.title }}</a></p> + <h1> + {% if thread.review %} + {% if thread.review.recommends %} + <i class="fas fa-thumbs-up mr-2" style="color:#6f6;"></i> + {% else %} + <i class="fas fa-thumbs-down mr-2" style="color:#f66;"></i> + {% endif %} {% endif %} + {% if thread.private %}🔒 {% endif %}{{ thread.title }} + </h1> + + {% if thread.package %} + <p> + Package: <a href="{{ thread.package.getDetailsURL() }}">{{ thread.package.title }}</a> + </p> {% endif %} {% if thread.private %} |
