Merge pull request #16 from dsaub/copilot/fix-home-page-register-buttons

Hide register buttons on home page for authenticated users
This commit is contained in:
Daniel (elordenador)
2026-04-10 10:25:03 +02:00
committed by GitHub
+4
View File
@@ -128,9 +128,11 @@
<a href="{% url 'productos' %}" class="btn btn-light btn-lg"> <a href="{% url 'productos' %}" class="btn btn-light btn-lg">
🛍️ Explorar Productos 🛍️ Explorar Productos
</a> </a>
{% if not user.is_authenticated %}
<a href="{% url 'register' %}" class="btn btn-outline-light btn-lg"> <a href="{% url 'register' %}" class="btn btn-outline-light btn-lg">
📝 Registrarse 📝 Registrarse
</a> </a>
{% endif %}
</div> </div>
</div> </div>
@@ -219,6 +221,7 @@
{% endif %} {% endif %}
<!-- Call to Action --> <!-- Call to Action -->
{% if not user.is_authenticated %}
<div class="row mt-5 mb-5"> <div class="row mt-5 mb-5">
<div class="col-md-12"> <div class="col-md-12">
<div style="background-color: #f8f9fa; padding: 40px; border-radius: 8px; text-align: center;"> <div style="background-color: #f8f9fa; padding: 40px; border-radius: 8px; text-align: center;">
@@ -232,4 +235,5 @@
</div> </div>
</div> </div>
</div> </div>
{% endif %}
{% endblock %} {% endblock %}