{% set current_route = app.request.attributes.get('_route') %}
<header class="header-top {{ current_route == 'homepage' ? 'is-transparant' : '' }}">
<div class="main-header">
<div class="container">
<nav
class="navbar navbar-expand-lg navbar-light is-customized">
<!-- bg-dark -->
<a class="navbar-brand" href="{{ path('homepage') }}">
<img class="img1" src="{{ asset('/assets/logo/kota_kediri.png') }}">
{% if current_route == 'homepage' %}
<img class="img2" src="{{ asset('/assets/logo/logo_masbup.png') }}">
{% else %}
<img class="img3" src="{{ asset('/assets/logo/logo_masbup_merah.png') }}">
{% endif %}
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-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 ml-auto text-header">
<li class="nav-item">
<a class="nav-link {{ current_route == 'homepage' ? 'is-home' : '' }}" href="{{ path('homepage')}}" class="nav-link {{ app.request.get('_route') == 'index' ? 'active' }} " style="padding-right: 0.75rem!important;">BERANDA</a>
</li>
<li class="nav-item">
<a href="{{ path('dataset')}}" class="nav-link {{ current_route == 'homepage' ? 'is-home' : '' }} {{ app.request.get('_route') == 'dataset' ? 'active' }} " style="padding-right: 0.75rem!important;">DATASET</a>
</li>
{# <li class="nav-item">
<a href="{{ path('infografik')}}" class="nav-link {{ current_route == 'homepage' ? 'is-home' : '' }} {{ app.request.get('_route') == 'infografik' ? 'active' }} ">INFOGRAFIK</a>
</li> #}
<li class="nav-item">
<a href="{{ path('publikasii')}}" class="nav-link {{ current_route == 'homepage' ? 'is-home' : '' }} {{ app.request.get('_route') == 'publikasii' ? 'active' }} ">PUBLIKASI</a>
</li>
<li class="nav-item">
<a href="{{ path('list-publikasi')}}" class="nav-link {{ current_route == 'homepage' ? 'is-home' : '' }} {{ app.request.get('_route') == 'list-publikasi' ? 'active' }} ">DAFTAR RILIS PUBLIKASI</a>
</li>
<li class="nav-item">
<a href="{{ path('visualisasi')}}" class="nav-link {{ current_route == 'homepage' ? 'is-home' : '' }} {{ app.request.get('_route') == 'visualisasi' ? 'active' }} ">VISUALISASI</a>
</li>
</li>
</ul>
</div>
</nav>
</div>
</div></header>