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 %}

Donate with Liberapay

{% endif %} +

{{ _('Keyboard shortcuts') }}

Donate with Patreon

PieFed is free and open source

Privacy policy

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 %} -
+
{{ comment.up_votes - comment.down_votes }} -
+ {% endif %} diff --git a/app/templates/post/_post_voting_buttons.html b/app/templates/post/_post_voting_buttons.html index 75697f63..bb67026b 100644 --- a/app/templates/post/_post_voting_buttons.html +++ b/app/templates/post/_post_voting_buttons.html @@ -16,11 +16,11 @@
{% endif %} {% else %} -
+ -
+