fix: html refactor
This commit is contained in:
@@ -1,24 +1,19 @@
|
||||
{% load i18n %}
|
||||
{% load static %}
|
||||
<nav class="navbar bg-base-100 shadow-sm">
|
||||
<div class="flex-1">
|
||||
|
||||
<nav class="flex justify-between navbar bg-base-300 shadow-md px-4 fixed top-0 z-10 left-0 w-full">
|
||||
<div class="text-base-content">
|
||||
<a href="{% url 'web:index' %}" class="flex text-xl">
|
||||
<img class="mr-4" src="{{ logo }}" alt="{{ web_title }} logo">
|
||||
{{ web_title }}
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="flex gap-2">
|
||||
<input type="text" placeholder="{% trans 'Buscar...' %}" class="input input-bordered w-24 md:w-auto"/>
|
||||
|
||||
{% include 'components/generic/theme-switch.html' %}
|
||||
{% if user.is_authenticated %}
|
||||
{% include 'components/generic/user_dropdown.html' %}
|
||||
{% else %}
|
||||
<a href="{% url 'users:login' %}"
|
||||
class="link-button flex items-center">
|
||||
<a href="{% url 'users:login' %}" class="link-button flex items-center">
|
||||
{% translate 'Inicia sesión' %}
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user