templates/common/navbar.html.twig line 1

Open in your IDE?
  1.     <!-- Main navbar -->
  2.     <div class="navbar navbar-inverse">
  3.         <div class="navbar-header">
  4.             {% if asset_exists('/assets/images/platform/logo.png') %}
  5.             <a class="navbar-brand" href="/" style="padding:0px;float:none">
  6.                 <img class="center_block" src="{{ asset('assets/images/platform/logo.png') }}" alt="">
  7.             </a>
  8.             {% else %}
  9.             <a class="navbar-brand" href="/">
  10.                 <img class="center_block" src="{{ asset('assets/images/placeholder.jpg') }}" alt="">
  11.             </a>
  12.             {% endif %}
  13.             <ul class="nav navbar-nav visible-xs-block">
  14.                 <li><a data-toggle="collapse" data-target="#navbar-mobile"><i class="icon-tree5"></i></a></li>
  15.                 <li><a class="sidebar-mobile-main-toggle"><i class="icon-paragraph-justify3"></i></a></li>
  16.             </ul>
  17.         </div>
  18.         <div class="navbar-collapse collapse" id="navbar-mobile">
  19.             <ul class="nav navbar-nav">
  20.                 <li><a class="sidebar-control sidebar-main-toggle hidden-xs"><i class="icon-paragraph-justify3"></i></a></li>
  21.             </ul>
  22. {#{{ dump( app.session.get('_todoalert')) }}#}
  23.             <ul class="nav navbar-nav navbar-right">
  24.                 <li class="dropdown dropdown-user">
  25.                     <a class="dropdown-toggle" data-toggle="dropdown">
  26.                         {% if app.user.picture is not empty %}
  27.                             {% if app.session.get('_todoalert') == "0" %}
  28.                                 <img src="{{ asset(app.user.picture) }}" alt="">
  29.                             {% else %}
  30.                                 <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>
  31.                             {% endif %}
  32.                             {#<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>#}
  33.                         {% else %}
  34.                             {% if app.session.get('_todoalert') == "0" %}
  35.                             {#<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>#}
  36.                             <img src="{{ asset('assets/images/placeholder.jpg') }}" alt="">
  37.                             {% else %}
  38.                             <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>
  39.                             {% endif %}
  40.                             {#<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>#}
  41.                         {% endif %}
  42.                         <span>{{ app.user.name }} {{ app.user.lastname }}</span>
  43.                         <i class="caret"></i>
  44.                     </a>
  45.                     <ul class="dropdown-menu dropdown-menu-right">
  46.                         {% if app.user.id == 122 %}
  47.                             <li><a href="/logout"><i class="icon-switch2"></i>{% trans %} Logout {% endtrans %}</a></li>
  48.                         {% else %}
  49.                             <li><a href="/users/view/{{ app.user.id }}"><i class="icon-user-plus"></i> {% trans %}My profile{% endtrans %} </a></li>
  50.                             <li><a href="/users/list"><i class="icon-users"></i> {% trans %}Users{% endtrans %} </a></li>
  51.                             <li><a href="/user/assists/list"><i class="icon-briefcase"></i> {% trans %}List of diets{% endtrans %} </a></li>
  52.                             {#<li><a href="#"><i class="icon-coins"></i>{% trans %} My balance {% endtrans %}</a></li>#}
  53.                             {#<li><a href="#"><span class="badge bg-teal-400 pull-right">58</span> <i class="icon-comment-discussion"></i>{% trans %} Messages {% endtrans %}</a></li>#}
  54.                             <li><a href="/presentation/presagentlist"><span class="badge bg-teal-400 pull-right"></span> <i class="icon-share3"></i>{% trans %} Compartir {% endtrans %}</a></li>
  55.                             <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>
  56.                             <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>
  57.                             <li class="divider"></li>
  58.                             <li><a href="#"><i class="icon-cog5"></i>{% trans %} Account settings {% endtrans %}</a></li>
  59.                             <li><a href="/logout"><i class="icon-switch2"></i>{% trans %} Logout {% endtrans %}</a></li>
  60.                         {% endif %}
  61.                     </ul>
  62.                 </li>
  63.             </ul>
  64.         </div>
  65.     </div>
  66.     <!-- /main navbar -->