<!-- Main navbar -->
<div class="navbar navbar-inverse">
<div class="navbar-header">
{% if asset_exists('/assets/images/platform/logo.png') %}
<a class="navbar-brand" href="/" style="padding:0px;float:none">
<img class="center_block" src="{{ asset('assets/images/platform/logo.png') }}" alt="">
</a>
{% else %}
<a class="navbar-brand" href="/">
<img class="center_block" src="{{ asset('assets/images/placeholder.jpg') }}" alt="">
</a>
{% endif %}
<ul class="nav navbar-nav visible-xs-block">
<li><a data-toggle="collapse" data-target="#navbar-mobile"><i class="icon-tree5"></i></a></li>
<li><a class="sidebar-mobile-main-toggle"><i class="icon-paragraph-justify3"></i></a></li>
</ul>
</div>
<div class="navbar-collapse collapse" id="navbar-mobile">
<ul class="nav navbar-nav">
<li><a class="sidebar-control sidebar-main-toggle hidden-xs"><i class="icon-paragraph-justify3"></i></a></li>
</ul>
{#{{ dump( app.session.get('_todoalert')) }}#}
<ul class="nav navbar-nav navbar-right">
<li class="dropdown dropdown-user">
<a class="dropdown-toggle" data-toggle="dropdown">
{% if app.user.picture is not empty %}
{% if app.session.get('_todoalert') == "0" %}
<img src="{{ asset(app.user.picture) }}" alt="">
{% else %}
<img src="{{ asset(app.user.picture) }}" alt=""><span class="badge dark-blue-badge text-orange-400 parpadea" style="position: absolute; color: #ffd500; font-size: 16px; top: -10%; left: -95%;z-index: 99"><b>{{ app.session.get('_todoalert') }}</b></span>
{% endif %}
{#<img src="{{ asset(app.user.picture) }}" alt=""><span class="badge dark-blue-badge text-orange-400 parpadea" style="position: absolute; color: #ffd500; font-size: 16px; top: -10%; left: -95%;z-index: 99"><b>{{ app.session.get('_todoalert') }}</b></span>#}
{% else %}
{% if app.session.get('_todoalert') == "0" %}
{#<img src="{{ asset(app.user.picture) }}" alt=""><span class="badge dark-blue-badge text-grey-800 parpadea" style="position: absolute; top: -10%; left: -95%;z-index: 99"><b>{{ app.session.get('_todoalert') }}</b></span>#}
<img src="{{ asset('assets/images/placeholder.jpg') }}" alt="">
{% else %}
<img src="{{ asset('assets/images/placeholder.jpg') }}" alt=""><span class="badge dark-blue-badge text-orange-400 parpadea" style="position: absolute; color: #ffd500; font-size: 16px; top: -10%; left: -95%;z-index: 99"><b>{{ app.session.get('_todoalert') }}</b></span>
{% endif %}
{#<img src="{{ asset(app.user.picture) }}" alt=""><span class="badge dark-blue-badge text-orange-400 parpadea" style="position: absolute; color: #ffd500; font-size: 16px; top: -10%; left: -95%;z-index: 99"><b>{{ app.session.get('_todoalert') }}</b></span>#}
{% endif %}
<span>{{ app.user.name }} {{ app.user.lastname }}</span>
<i class="caret"></i>
</a>
<ul class="dropdown-menu dropdown-menu-right">
{% if app.user.id == 122 %}
<li><a href="/logout"><i class="icon-switch2"></i>{% trans %} Logout {% endtrans %}</a></li>
{% else %}
<li><a href="/users/view/{{ app.user.id }}"><i class="icon-user-plus"></i> {% trans %}My profile{% endtrans %} </a></li>
<li><a href="/users/list"><i class="icon-users"></i> {% trans %}Users{% endtrans %} </a></li>
<li><a href="/user/assists/list"><i class="icon-briefcase"></i> {% trans %}List of diets{% endtrans %} </a></li>
{#<li><a href="#"><i class="icon-coins"></i>{% trans %} My balance {% endtrans %}</a></li>#}
{#<li><a href="#"><span class="badge bg-teal-400 pull-right">58</span> <i class="icon-comment-discussion"></i>{% trans %} Messages {% endtrans %}</a></li>#}
<li><a href="/presentation/presagentlist"><span class="badge bg-teal-400 pull-right"></span> <i class="icon-share3"></i>{% trans %} Compartir {% endtrans %}</a></li>
<li><a href="/todo/log"><span class="badge bg-teal-400 pull-right"></span> <i class="icon-exclamation"></i>{% trans %} Task Notifications {% endtrans %}</a></li>
<li><a href="/events/holidaySummaryCreate"><span class="badge bg-teal-400 pull-right"></span> <i class="icon-list"></i> {% trans %}Created Holiday Summary{% endtrans %}</a></li>
<li class="divider"></li>
<li><a href="#"><i class="icon-cog5"></i>{% trans %} Account settings {% endtrans %}</a></li>
<li><a href="/logout"><i class="icon-switch2"></i>{% trans %} Logout {% endtrans %}</a></li>
{% endif %}
</ul>
</li>
</ul>
</div>
</div>
<!-- /main navbar -->