aboutsummaryrefslogtreecommitdiff
path: root/app/templates/threads/view.html
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2020-07-10 19:01:58 +0100
committerrubenwardy <rw@rubenwardy.com>2020-07-10 19:01:58 +0100
commit1989eabf86729bcd16e226d96d5e4acacddbaae9 (patch)
tree0a6de3048da33f1da16ccf4a1391a686489dcd3d /app/templates/threads/view.html
parent491f9ed6796b1aa34437f3247cb8956c928b1143 (diff)
downloadcheatdb-1989eabf86729bcd16e226d96d5e4acacddbaae9.tar.xz
Add more obvious edit buttons for reviews
Diffstat (limited to 'app/templates/threads/view.html')
-rw-r--r--app/templates/threads/view.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/templates/threads/view.html b/app/templates/threads/view.html
index b91f866..b10d1e1 100644
--- a/app/templates/threads/view.html
+++ b/app/templates/threads/view.html
@@ -19,6 +19,14 @@ Threads
{% endif %}
{% endif %}
+ {% if current_user == thread.author and thread.review %}
+ <a class="btn btn-primary ml-1 float-right mr-2"
+ href="{{ thread.review.package.getReviewURL() }}">
+ <i class="fas fa-edit"></i>
+ {{ _("Edit Review") }}
+ </a>
+ {% endif %}
+
<h1>
{% if thread.review %}
{% if thread.review.recommends %}