From 5f1d0ed9464cff2d140dd628dfbba332546f5d96 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Tue, 22 Aug 2023 00:48:08 +0100 Subject: [PATCH] Disable quick_review_voting.js for guest users --- app/templates/index.html | 4 +++- app/templates/packages/reviews_list.html | 4 +++- app/templates/packages/view.html | 4 +++- app/templates/threads/view.html | 4 +++- app/templates/users/profile.html | 4 +++- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/app/templates/index.html b/app/templates/index.html index 45d3716d..a63a8e55 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -21,7 +21,9 @@ } } - +{% if current_user.is_authenticated %} + +{% endif %} {% endblock %} {% block content %} diff --git a/app/templates/packages/reviews_list.html b/app/templates/packages/reviews_list.html index 0d93d279..c80a53ef 100644 --- a/app/templates/packages/reviews_list.html +++ b/app/templates/packages/reviews_list.html @@ -5,7 +5,9 @@ {% endblock %} {% block scriptextra %} - + {% if current_user.is_authenticated %} + + {% endif %} {% endblock %} {% block content %} diff --git a/app/templates/packages/view.html b/app/templates/packages/view.html index da9f8b71..d9cc1e11 100644 --- a/app/templates/packages/view.html +++ b/app/templates/packages/view.html @@ -19,7 +19,9 @@ {% block scriptextra %} - + {% if current_user.is_authenticated %} + + {% endif %} {% endblock %} {% macro render_license(license) %} diff --git a/app/templates/threads/view.html b/app/templates/threads/view.html index 00c9ae31..37f3e1fc 100644 --- a/app/templates/threads/view.html +++ b/app/templates/threads/view.html @@ -26,7 +26,9 @@ {% endblock %} {% block scriptextra %} - + {% if current_user.is_authenticated %} + + {% endif %} {% endblock %} {% block content %} diff --git a/app/templates/users/profile.html b/app/templates/users/profile.html index b366b9d2..92857144 100644 --- a/app/templates/users/profile.html +++ b/app/templates/users/profile.html @@ -9,7 +9,9 @@ {% endblock %} {% block scriptextra %} - + {% if current_user.is_authenticated %} + + {% endif %} {% endblock %} {% block content %}