src/Platform/ControlPanelBundle/Resources/views/Dashboard/Stats/includes/navbar.html.twig line 1

Open in your IDE?
  1. {% embed '@ui/common/navbars/default.html.twig' with {
  2.     title: 'Types'
  3. } %}
  4.     {% block items %}
  5.         {% include '@ui/common/navbars/items/default.html.twig' with {
  6.             text: 'Logins',
  7.             link: path(((tenant is not empty) ? routes.logins_tenant : routes.logins), {
  8.                 tenant: ((tenant is not empty) ? tenant.id : null)
  9.             }),
  10.             active: (app.request.attributes.get('_route') in [routes.logins, routes.logins_tenant])
  11.         } %}
  12.         {% include '@ui/common/navbars/items/default.html.twig' with {
  13.             text: 'Modules',
  14.             link: path(((tenant is not empty) ? routes.modules_tenant : routes.modules), {
  15.                 tenant: ((tenant is not empty) ? tenant.id : null)
  16.             }),
  17.             active: (app.request.attributes.get('_route') in [routes.modules, routes.modules_tenant])
  18.         } %}
  19.         {% include '@ui/common/navbars/items/default.html.twig' with {
  20.             text: 'Unique Modules',
  21.             link: path(((tenant is not empty) ? routes.modules_unique_tenant : routes.modules_unique), {
  22.                 tenant: ((tenant is not empty) ? tenant.id : null)
  23.             }),
  24.             active: (app.request.attributes.get('_route') in [routes.modules_unique, routes.modules_unique_tenant])
  25.         } %}
  26.         {% include '@ui/common/navbars/items/default.html.twig' with {
  27.             text: 'Widgets',
  28.             link: path(((tenant is not empty) ? routes.widgets_tenant : routes.widgets), {
  29.             tenant: ((tenant is not empty) ? tenant.id : null)
  30.         }),
  31.             active: (app.request.attributes.get('_route') in [routes.widgets, routes.widgets_tenant])
  32.             } %}
  33.     {% endblock %}
  34. {% endembed %}