diff --git a/tienda/migrations/__pycache__/0001_initial.cpython-312.pyc b/tienda/migrations/__pycache__/0001_initial.cpython-312.pyc deleted file mode 100644 index a016c5b..0000000 Binary files a/tienda/migrations/__pycache__/0001_initial.cpython-312.pyc and /dev/null differ diff --git a/tienda/migrations/__pycache__/0002_verificationcode_code_mode_and_more.cpython-312.pyc b/tienda/migrations/__pycache__/0002_verificationcode_code_mode_and_more.cpython-312.pyc index db00f0c..9a93634 100644 Binary files a/tienda/migrations/__pycache__/0002_verificationcode_code_mode_and_more.cpython-312.pyc and b/tienda/migrations/__pycache__/0002_verificationcode_code_mode_and_more.cpython-312.pyc differ diff --git a/tienda/migrations/__pycache__/0003_order_transaction_code.cpython-312.pyc b/tienda/migrations/__pycache__/0003_order_transaction_code.cpython-312.pyc index 33e19c0..f464762 100644 Binary files a/tienda/migrations/__pycache__/0003_order_transaction_code.cpython-312.pyc and b/tienda/migrations/__pycache__/0003_order_transaction_code.cpython-312.pyc differ diff --git a/tienda/migrations/__pycache__/0004_product_stock_stockreservation_stockreservationitem.cpython-312.pyc b/tienda/migrations/__pycache__/0004_product_stock_stockreservation_stockreservationitem.cpython-312.pyc index 1ec7e54..e27c241 100644 Binary files a/tienda/migrations/__pycache__/0004_product_stock_stockreservation_stockreservationitem.cpython-312.pyc and b/tienda/migrations/__pycache__/0004_product_stock_stockreservation_stockreservationitem.cpython-312.pyc differ diff --git a/tienda/migrations/__pycache__/0005_savedpaymentmethod.cpython-312.pyc b/tienda/migrations/__pycache__/0005_savedpaymentmethod.cpython-312.pyc index 6250c5b..e30e438 100644 Binary files a/tienda/migrations/__pycache__/0005_savedpaymentmethod.cpython-312.pyc and b/tienda/migrations/__pycache__/0005_savedpaymentmethod.cpython-312.pyc differ diff --git a/tienda/migrations/__pycache__/0006_alter_category_name.cpython-312.pyc b/tienda/migrations/__pycache__/0006_alter_category_name.cpython-312.pyc index 1c6cf9b..55f0906 100644 Binary files a/tienda/migrations/__pycache__/0006_alter_category_name.cpython-312.pyc and b/tienda/migrations/__pycache__/0006_alter_category_name.cpython-312.pyc differ diff --git a/tienda/migrations/__pycache__/__init__.cpython-312.pyc b/tienda/migrations/__pycache__/__init__.cpython-312.pyc index e42c277..f5e996f 100644 Binary files a/tienda/migrations/__pycache__/__init__.cpython-312.pyc and b/tienda/migrations/__pycache__/__init__.cpython-312.pyc differ diff --git a/tienda/templates/tienda/index.html b/tienda/templates/tienda/index.html index 8aecd0e..2efde6c 100644 --- a/tienda/templates/tienda/index.html +++ b/tienda/templates/tienda/index.html @@ -2,8 +2,24 @@ {% load vat_filters %} {% block content %}
-
-
Categorias
+
+ +
+
    + {% if categories %} + {% for category in categories %} +
  • + {{ category.name }} +
  • + {% endfor %} + {% endif %} +
+
+
+
+
Categorías
    {% if categories %} {% for category in categories %} @@ -14,7 +30,7 @@ {% endif %}
-
+
{% if products %} {% for producto in products %}
@@ -39,4 +55,4 @@ {% endif %}
-{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/tienda/templatetags/__pycache__/__init__.cpython-312.pyc b/tienda/templatetags/__pycache__/__init__.cpython-312.pyc index ad84b47..7be98f2 100644 Binary files a/tienda/templatetags/__pycache__/__init__.cpython-312.pyc and b/tienda/templatetags/__pycache__/__init__.cpython-312.pyc differ diff --git a/tienda/templatetags/__pycache__/vat_filters.cpython-312.pyc b/tienda/templatetags/__pycache__/vat_filters.cpython-312.pyc index 82d83b2..2a4987d 100644 Binary files a/tienda/templatetags/__pycache__/vat_filters.cpython-312.pyc and b/tienda/templatetags/__pycache__/vat_filters.cpython-312.pyc differ diff --git a/tienda/tests.py b/tienda/tests.py index 2e01718..9d51e11 100644 --- a/tienda/tests.py +++ b/tienda/tests.py @@ -1358,6 +1358,13 @@ class EndpointViewTests(TestCase): response = self.client.get(url) self.assertEqual(response.status_code, 200) + def test_index_shows_mobile_categories_toggle(self): + response = self.client.get(reverse("index")) + + self.assertEqual(response.status_code, 200) + self.assertContains(response, 'data-bs-target="#mobileCategoriasCollapse"') + self.assertContains(response, 'id="mobileCategoriasCollapse"') + self.assertContains(response, ">Categorías<") def test_home_header_renders_mobile_title_outside_collapsible_menu(self): response = self.client.get(reverse("home")) self.assertEqual(response.status_code, 200)