From b072bd50d59cb7e9b5f6e66859dcd25c1773814b Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Fri, 27 Mar 2020 10:11:32 -0700 Subject: [PATCH] Render pages when logged out Fixes #92 --- fedireads/templates/snippets/follow_button.html | 2 +- fedireads/templates/snippets/interaction.html | 17 ++++++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/fedireads/templates/snippets/follow_button.html b/fedireads/templates/snippets/follow_button.html index 109a4b20..fa718c8f 100644 --- a/fedireads/templates/snippets/follow_button.html +++ b/fedireads/templates/snippets/follow_button.html @@ -1,4 +1,4 @@ -{% if request.user == user %} +{% if request.user == user or not request.user.is_authenticated %} {% elif request.user in user.follower_requests.all %}
diff --git a/fedireads/templates/snippets/interaction.html b/fedireads/templates/snippets/interaction.html index c7a92ca7..0e0a7d30 100644 --- a/fedireads/templates/snippets/interaction.html +++ b/fedireads/templates/snippets/interaction.html @@ -1,6 +1,6 @@ {% load fr_display %}
- + {% if request.user.is_authenticated %}
{% csrf_token %} @@ -45,5 +45,20 @@
+ {% else %} + + + Comment + + + + Boost status + + + + Like status + + + {% endif %}