Skip to content

Commit

Permalink
fix: update landing page button links based on user authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
jumagu committed Dec 31, 2024
1 parent f342a00 commit 4aa046a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/templates/landing/hero.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ <h1 class="mb-5 text-5xl font-bold">
excepturi exercitationem quasi. In deleniti eaque aut repudiandae et a
id nisi.
</p>
<a href="{% url 'account_signup' %}" class="btn btn-primary">
{% if request.user.is_authenticated %}
{% if request.user.is_authenticated %}
<a href="{% url 'dashboard' %}" class="btn btn-primary">
Go to Dashboard
{% else %}
</a>
{% else %}
<a href="{% url 'account_signup' %}" class="btn btn-primary">
Get Started
{% endif %}
</a>
</a>
{% endif %}
</div>
</div>
</div>

0 comments on commit 4aa046a

Please sign in to comment.