<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>{% block title %}Researching{% endblock %}</title>
{# Run `composer require symfony/webpack-encore-bundle`
and uncomment the following Encore helpers to start using Symfony UX #}
{% block stylesheets %}
<link href="https://fonts.googleapis.com/css?family=Ubuntu:400,400i,700,700i&display=swap" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="//cdn.datatables.net/1.11.3/css/jquery.dataTables.min.css">
<link href="https://cdn.datatables.net/buttons/2.0.1/css/buttons.dataTables.min.css" rel="stylesheet">
{{ encore_entry_link_tags('app') }}
{% endblock %}
<link rel="icon" type="image/x-icon" href="{{asset('imgs/uc_icon.png')}}" />
{% block javascripts %}
{{ encore_entry_script_tags('app') }}
{% endblock %}
</head>
{% for flash_message in app.session.flashBag.get('notice') %}
<div class="alert alert-{{ flash_message.alert }} alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert">
<span aria-hidden="true">×</span><span class="sr-only">Close</span>
</button>
<strong>{{ flash_message.title }}</strong> {{ flash_message.message }}
</div>
{% endfor %}
<header>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark mb-5">
<div class="container-fluid">
<a class="navbar-brand" href="{{path('homepage')}}">Researching</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
{% if is_granted('IS_AUTHENTICATED_FULLY') %}
<li class="nav-item"><a class="nav-link" href="{{path('my_publications_index')}}">Mis Publicaciones</a></li>
{% if is_granted('ROLE_ADMIN') %}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
Publicaciones
</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="{{path('publication_index')}}">Validadas</a></li>
<li><a class="dropdown-item" href="{{path('publication_to_validate')}}">Por Validar</a></li>
</ul>
</li>
<li class="nav-item"><a class="nav-link" href="{{path('wos_record_index')}}">Wos Records</a></li>
<li class="nav-item"><a class="nav-link" href="{{path('app_publisher_index')}}">Revistas</a></li>
<li class="nav-item"><a class="nav-link" href="{{path('author_index')}}">Autores</a></li>
<li class="nav-item"><a class="nav-link" href="{{path('user_index')}}">Usuarios</a></li>
{% endif %}
{% endif %}
</ul>
<ul class="navbar-nav d-flex mb-2 mb-lg-0">
{% if is_granted('IS_AUTHENTICATED_FULLY') %}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarScrollingDropdown" role="button"
data-bs-toggle="dropdown" aria-expanded="false">
{{ app.user.email }} <i class="bi bi-person-fill"></i>
</a>
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarScrollingDropdown">
<!--<li><a <a class="dropdown-item" href="{{ path('user_show', { 'id': app.user.id }) }}">Perfil</a></li>-->
<li><a class="dropdown-item" href="{{path('my_publications_index')}}">Mis Publicaciones</a></li>
<li role="separator" class="divider"></li>
<li><a <a class="dropdown-item" href="{{path('logout')}}">Cerrar Sesión</a></li>
{% if is_granted('IS_IMPERSONATOR') %}
<li><a <a class="dropdown-item" href="{{path('user_index', {'ditto': '_exit'})}}">Dejar de
personificar</a></li>
{% endif %}
</ul>
</li>
{% else %}
<li><a href="{{path('login')}}">Iniciar Sesión</a></li>
{% endif %}
</ul>
</div>
</div>
</nav>
</header>
<body>
<div class="loader"></div>
<div class="body-content" style="margin: 0 5%;">
{% block body %}{% endblock %}
</div>
</body>
</html>