[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>
<a href="{{ path('main_all') }}" class='hover-effect {{ active('main_all') }}'>Network</a>
</li>
<li>
<a href="{{ path('actors') }}" class='hover-effect {{ active('actors') }}'>Actors</a>
</li>
{% for tab in main_nav_tabs %}
<li>
<a href="{{ path(tab['route']) }}" class='hover-effect {{ active(tab['route']) }}' >{{ tab['title'] }}</a>
</li>
{% endfor %}
{% if main_nav_tabs is defined %}
{% for tab in main_nav_tabs %}
<li>
<a href="{{ path(tab['route']) }}" class='hover-effect {{ active(tab['route']) }}' >{{ tab['title'] }}</a>
</li>
{% endfor %}
{% endif %}
</ul>
</nav>
<div class="timeline">