diff --git a/theme/templates/theme/base.html b/theme/templates/theme/base.html
index 4ad77ba..207f9b2 100644
--- a/theme/templates/theme/base.html
+++ b/theme/templates/theme/base.html
@@ -7,7 +7,7 @@
{{ title }}
{% include "theme/seo.html" %}
-
+
{% tailwind_css %}
diff --git a/web/static/favicon.ico b/web/static/favicon.ico
new file mode 100644
index 0000000..97068fe
Binary files /dev/null and b/web/static/favicon.ico differ
diff --git a/web/templates/components/cart/cart_dropdown.html b/web/templates/components/cart/cart_dropdown.html
deleted file mode 100644
index 9e52769..0000000
--- a/web/templates/components/cart/cart_dropdown.html
+++ /dev/null
@@ -1,57 +0,0 @@
-{% load i18n %}
-
-
-
- {% if cart.items.count == 0 %}
-
No hay nada en el carrito
- {% endif %}
-
- {% for cart_item in cart.items.all %}
-
-
-
-
{% translate 'Cantidad' %}: {{ cart_item.quantity }}
-
-
-
-
-
-
- {% endfor %}
-
-
-
-{% if cart.items.count > 0 %}
- {% translate 'Ir a pagar' %}
-
-{% endif %}
diff --git a/web/templates/components/generic/navbar.html b/web/templates/components/generic/navbar.html
index 42b5457..7b3834f 100644
--- a/web/templates/components/generic/navbar.html
+++ b/web/templates/components/generic/navbar.html
@@ -46,7 +46,7 @@
{% include 'components/theme-switch.html' %}
-
+
{% if request.user.is_authenticated %}
diff --git a/web/views.py b/web/views.py
index 625ec4c..7dc2638 100644
--- a/web/views.py
+++ b/web/views.py
@@ -38,7 +38,7 @@ class ProductDetail(TemplateView):
)
def add_cart_item(request, *args, **kwargs):
product = get_object_or_404(Product, pk=request.POST.get("product"))
- response = HttpResponse(status=201)
+ response = HttpResponse(status=201, headers={'HX-Trigger': 'updated-cart'})
if not request.user.is_authenticated:
cart = Cart.objects.create(
@@ -72,7 +72,7 @@ def delete_cart_item(request, pk, *args, **kwargs):
cart = get_cart(request)
cart_item = get_object_or_404(CartItem, pk=pk, cart=cart)
cart_item.delete()
- return HttpResponse(status=204)
+ return HttpResponse(status=204, headers={'HX-Trigger': 'updated-cart'})
index = IndexView.as_view()