fix(ui): make pricing page CTAs link to /signup when local signup is enabled
All four CTA anchor elements on pricing.html were hardcoded to /login. They now use /signup when allow_signup is True (MULTI_USER_ENABLED and ALLOW_LOCAL_SIGNUP both true), falling back to /login when signup is disabled. Bottom CTA button text also updates accordingly. Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
@@ -114,7 +114,7 @@
|
|||||||
<!-- CTA button -->
|
<!-- CTA button -->
|
||||||
<div class="p-6 pt-0">
|
<div class="p-6 pt-0">
|
||||||
{% if tier.id == 'free' %}
|
{% if tier.id == 'free' %}
|
||||||
<a href="/login"
|
<a href="{{ '/signup' if allow_signup else '/login' }}"
|
||||||
class="block w-full text-center py-3 px-4 rounded-lg border-2 border-blue-600 text-blue-600 font-semibold hover:bg-blue-50 transition"
|
class="block w-full text-center py-3 px-4 rounded-lg border-2 border-blue-600 text-blue-600 font-semibold hover:bg-blue-50 transition"
|
||||||
>{{ tier.cta }}</a>
|
>{{ tier.cta }}</a>
|
||||||
{% elif tier.stripe_price_id_monthly or tier.stripe_price_id_yearly %}
|
{% elif tier.stripe_price_id_monthly or tier.stripe_price_id_yearly %}
|
||||||
@@ -125,11 +125,11 @@
|
|||||||
style="min-height:44px;"
|
style="min-height:44px;"
|
||||||
>{{ tier.cta }}</button>
|
>{{ tier.cta }}</button>
|
||||||
{% elif tier.highlight %}
|
{% elif tier.highlight %}
|
||||||
<a href="/login"
|
<a href="{{ '/signup' if allow_signup else '/login' }}"
|
||||||
class="block w-full text-center py-3 px-4 rounded-lg bg-indigo-600 text-white font-semibold hover:bg-indigo-700 transition shadow-md"
|
class="block w-full text-center py-3 px-4 rounded-lg bg-indigo-600 text-white font-semibold hover:bg-indigo-700 transition shadow-md"
|
||||||
>{{ tier.cta }}</a>
|
>{{ tier.cta }}</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="/login"
|
<a href="{{ '/signup' if allow_signup else '/login' }}"
|
||||||
class="block w-full text-center py-3 px-4 rounded-lg bg-blue-600 text-white font-semibold hover:bg-blue-700 transition"
|
class="block w-full text-center py-3 px-4 rounded-lg bg-blue-600 text-white font-semibold hover:bg-blue-700 transition"
|
||||||
>{{ tier.cta }}</a>
|
>{{ tier.cta }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -375,9 +375,9 @@
|
|||||||
<div class="mt-20 rounded-2xl bg-gradient-to-r from-blue-600 to-indigo-700 text-white p-10 text-center shadow-xl">
|
<div class="mt-20 rounded-2xl bg-gradient-to-r from-blue-600 to-indigo-700 text-white p-10 text-center shadow-xl">
|
||||||
<h2 class="text-2xl font-bold mb-2">Ready to get started?</h2>
|
<h2 class="text-2xl font-bold mb-2">Ready to get started?</h2>
|
||||||
<p class="text-indigo-100 mb-6">Start with the free tier — no credit card required.</p>
|
<p class="text-indigo-100 mb-6">Start with the free tier — no credit card required.</p>
|
||||||
<a href="/login"
|
<a href="{{ '/signup' if allow_signup else '/login' }}"
|
||||||
class="inline-block bg-white text-indigo-700 font-bold px-8 py-3 rounded-lg hover:bg-indigo-50 transition shadow">
|
class="inline-block bg-white text-indigo-700 font-bold px-8 py-3 rounded-lg hover:bg-indigo-50 transition shadow">
|
||||||
Create your free account
|
{% if allow_signup %}Create your free account{% else %}Sign in{% endif %}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user