diff --git a/app/static/js/scripts.js b/app/static/js/scripts.js index e766ae94..18466f26 100644 --- a/app/static/js/scripts.js +++ b/app/static/js/scripts.js @@ -151,6 +151,15 @@ function setupConfirmFirst() { return false; }); }) + + const redirect_login = document.querySelectorAll('.redirect_login'); + redirect_login.forEach(element => { + element.addEventListener("click", function(event) { + location.href = '/auth/login'; + event.preventDefault(); + return false; + }); + }); } function setupSubmitOnInputChange() { diff --git a/app/templates/base.html b/app/templates/base.html index d6e4f72d..201dcdd5 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -210,6 +210,7 @@ {% else %}
{% endif %} + diff --git a/app/templates/post/_comment_voting_buttons.html b/app/templates/post/_comment_voting_buttons.html index d5afc7c9..373d9687 100644 --- a/app/templates/post/_comment_voting_buttons.html +++ b/app/templates/post/_comment_voting_buttons.html @@ -15,11 +15,11 @@ {% endif %} {% else %} -