Skip to content

Commit

Permalink
fix: Show subscribe button only for authenticated users on author page
Browse files Browse the repository at this point in the history
  • Loading branch information
drikusroor committed Oct 7, 2024
1 parent ec422be commit daf5121
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/blog/templates/blog/author_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
<div class="flex flex-col gap-4 max-w-3xl md:max-w-5xl lg:max-w-7xl xl:max-w-[1500px] mx-auto p-4 bg-white rounded-xl overflow-hidden drop-shadow">
<div class="flex flex-row justify-between items-center">
<h1 class="text-4xl font-bold text-black">{{ page.title }}</h1>
{% 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 %}
</div>


Expand Down

0 comments on commit daf5121

Please sign in to comment.