From daf5121420f5ae0b45e4e55456c5ccf46da79faa Mon Sep 17 00:00:00 2001 From: Drikus Roor Date: Mon, 7 Oct 2024 09:33:50 +0200 Subject: [PATCH] fix: Show subscribe button only for authenticated users on author page --- src/blog/templates/blog/author_page.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/blog/templates/blog/author_page.html b/src/blog/templates/blog/author_page.html index b815978..2db4daf 100644 --- a/src/blog/templates/blog/author_page.html +++ b/src/blog/templates/blog/author_page.html @@ -6,7 +6,9 @@

{{ page.title }}

- {% include "blog/includes/subscribe-author.html" with author=page.user user=user class="h-10 w-10" %} + {% if user.is_authenticated %} + {% include "blog/includes/subscribe-author.html" with author=page.user user=user class="h-10 w-10" %} + {% endif %}