[UI][TIMELINES] Fix undefined main_nav_tabs in logged out view

This commit is contained in:
Daniel 2020-12-02 15:57:52 +00:00 committed by Hugo Sales
parent 98145f4f1a
commit c36436c1a1
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0

View File

@ -90,14 +90,13 @@
<li> <li>
<a href="{{ path('main_all') }}" class='hover-effect {{ active('main_all') }}'>Network</a> <a href="{{ path('main_all') }}" class='hover-effect {{ active('main_all') }}'>Network</a>
</li> </li>
<li> {% if main_nav_tabs is defined %}
<a href="{{ path('actors') }}" class='hover-effect {{ active('actors') }}'>Actors</a>
</li>
{% for tab in main_nav_tabs %} {% for tab in main_nav_tabs %}
<li> <li>
<a href="{{ path(tab['route']) }}" class='hover-effect {{ active(tab['route']) }}' >{{ tab['title'] }}</a> <a href="{{ path(tab['route']) }}" class='hover-effect {{ active(tab['route']) }}' >{{ tab['title'] }}</a>
</li> </li>
{% endfor %} {% endfor %}
{% endif %}
</ul> </ul>
</nav> </nav>
<div class="timeline"> <div class="timeline">