src/templates/MenuSub/menu_sub.html.twig line 1

Open in your IDE?
  1. <div id="navbar" class="navbar navbar-default navbar-fixed-top" >
  2.     <script type="text/javascript">
  3.         try {
  4.             ace.settings.check('navbar', 'fixed')
  5.             } catch (e) {
  6.         }
  7.     </script>
  8.     <div class="navbar-container" id="navbar-container">
  9.          <button type="button" data-target="#sidebar" aria-expanded="true" class="navbar-toggle menu-toggler pull-left fixed">
  10.                 <span class="sr-only">Toggle sidebar</span>
  11.                 <span class="icon-bar"></span>
  12.                 <span class="icon-bar"></span>
  13.                 <span class="icon-bar"></span>
  14.             </button>
  15.         
  16.         <div class="navbar-header pull-left">
  17.             <!-- #section:basics/navbar.layout.brand -->
  18.                 <div class="navbar-brand">
  19.                     <picture>                       
  20.                         <a href="{{ path('app_home') }}"><img src="{{ asset('images/logo_plataforma.png') }}" height='55px'></a>
  21.                     </picture>
  22.                 </div>                
  23.             <!-- /section:basics/navbar.layout.brand -->
  24.         </div>
  25.         <!-- #section:basics/navbar.dropdown -->
  26.         <div class="navbar-buttons navbar-header pull-right" role="navigation">
  27.     
  28.            
  29.             <ul class="nav ace-nav">
  30.                         
  31.                 <li class="yellow">
  32.                     <a data-toggle="dropdown" class="dropdown-toggle" href="#">
  33.                         <i class="fas fa-bell icon-animated-bell"></i>
  34.                         <span class="badge badge-important">{{ total }}</span>
  35.                     </a>
  36.                     <ul class="dropdown-menu-right dropdown-navbar navbar-pink dropdown-menu dropdown-caret dropdown-close">
  37.                         <li class="dropdown-header">
  38.                             <i class="fas fa-bell"></i>
  39.                             {{ titulo }}
  40.                         </li>
  41.                         {% if total>0 %}
  42.                             <li class="dropdown-content">
  43.                                 <ul class="dropdown-menu dropdown-navbar navbar-pink">
  44.                                 {% for asunto,notis in notificaciones %}
  45.                                     <li>
  46.                                         <a href="{{ path('notificacion_por_asunto', {'routeClassName': 'notificaciones', 'asunto': asunto}) }}">
  47.                                             <div class="clearfix">
  48.                                                 <span class="pull-left">
  49.                                                     <i class="btn btn-xs no-hover btn-pink fas fa-comment"></i>
  50.                                                     {{ asunto }}
  51.                                                 </span>
  52.                                                 <span class="pull-right badge badge-info">{{ notis | length }}</span>
  53.                                             </div>
  54.                                         </a>
  55.                                     </li>
  56.                                 {% endfor %}
  57.                                 </ul>
  58.                             </li>
  59.                         {% endif %}
  60.                             <li class="dropdown-footer">
  61.                                     <a href="{{ path('crud_clean_filter', {'rol': 'all', 'routeClassName': 'notificaciones'}) }}">
  62.                                              Ver todas...
  63.                                             <i class="fas fa-arrow-right"></i>
  64.                                     </a>
  65.                             </li>
  66.                     </ul>
  67.                 </li>
  68.                 
  69.                 <!-- #section:basics/navbar.user_menu -->
  70.                 <li class="light-blue">
  71.                     <a data-toggle="dropdown" href="#" class="dropdown-toggle">
  72.                         <img class="nav-user-photo" src="{{ asset('avatars/user.png') }}" alt="Usuario" />
  73.                         <span class="user-info">
  74.                             {% if app.user %}
  75.                                 {{ app.user.getNombreCompleto }}
  76.                             {% endif %}
  77.                         </span>
  78.                         <i class="fas fa-caret-down"></i>
  79.                     </a>
  80.                     <ul class="user-menu dropdown-menu-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
  81.                         <li>
  82.                             <a href="{{ path('usuario_perfil') }}">
  83.                                 <i class="fas fa-user"></i>
  84.                                 {% trans from 'crud' %}usuarioperfil.plural{% endtrans %}
  85.                             </a>
  86.                         </li>
  87.                         <li class="divider"></li>
  88.                         <li>
  89.                             <a href="{{path('before_logout')}}">
  90.                                 <i class="fas fa-power-off"></i>
  91.                                 Salir
  92.                             </a>
  93.                         </li>
  94.                     </ul>
  95.                 </li>
  96. {#
  97.                 <li class="light-blue">
  98.                     <a data-toggle="dropdown" class="dropdown-toggle" href="#">
  99.                         {% if app.request.locale=='es' %}            
  100.                             <img src="{{ asset('images/spanish.png') }}">
  101.                         {% else %}
  102.                             <img src="{{ asset('images/english.png') }}">
  103.                         {% endif %}
  104.                         <i class="fas fa-caret-down"></i>
  105.                     </a>
  106.                     <ul class="user-menu dropdown-menu-right dropdown-menu dropdown-caret dropdown-close">
  107.                         <li>
  108.                             <a href="{{ path('change_locale', {'newlocale': 'es'}) }}">
  109.                                 <img src="{{ asset('images/spanish.png') }}">&nbsp;Español/Spanish
  110.                             </a>
  111.                         </li>
  112.                         <li class="divider"></li>
  113.                         <li>
  114.                             <a href="{{ path('change_locale', {'newlocale': 'en'}) }}">
  115.                                 <img src="{{ asset('images/english.png') }}">&nbsp;Inglés/English
  116.                             </a>
  117.                         </li>
  118.                     </ul>
  119.                 </li>
  120. #}        
  121.                 <!-- /section:basics/navbar.user_menu -->
  122.             </ul>
  123.         </div>
  124.         <!-- /section:basics/navbar.dropdown -->
  125.     </div><!-- /.navbar-container -->
  126. </div>