feat: added categories

This commit is contained in:
2024-12-31 11:19:28 +01:00
parent eae54d5198
commit 3de6bbcc29
16 changed files with 166 additions and 36 deletions
+4 -14
View File
@@ -22,24 +22,14 @@
{% translate 'Inicio' %}
</a>
</li>
{% for category in navbar_categories %}
<li class="shrink-0">
<a href="{% url 'web:index' %}" title=""
<a href="{% url 'web:category_view' slug=category.slug %}" title=""
class="flex text-sm font-medium text-gray-900 hover:text-primary-700 dark:text-white dark:hover:text-primary-500">
{% translate 'Más vendidos' %}
</a>
</li>
<li class="shrink-0">
<a href="{% url 'web:index' %}" title=""
class="flex text-sm font-medium text-gray-900 hover:text-primary-700 dark:text-white dark:hover:text-primary-500">
{% translate 'Ideas de regalo' %}
</a>
</li>
<li class="shrink-0">
<a href="{% url 'web:index' %}" title=""
class="text-sm font-medium text-gray-900 hover:text-primary-700 dark:text-white dark:hover:text-primary-500">
{% translate 'Ofertas del día' %}
{{ category.name }}
</a>
</li>
{% endfor %}
</ul>
</div>