sidebar.html.twig 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <div class="sidebar" data-color="blue">
  2. <div class="sidebar-wrapper">
  3. <div class="logo">
  4. <a href="/{{ app.request.baseUrl }}" class="simple-text" target="_blank">
  5. {{ app_name }}
  6. </a>
  7. </div>
  8. <ul class="nav">
  9. <li class="nav-item {% if app.request.requestUri == '/admin/' %}active{% endif %}">
  10. <a class="nav-link" href="{{ path('admin.statistics_index') }}">
  11. <i class="fa fa-bar-chart"></i>
  12. <p>Статистика</p>
  13. </a>
  14. </li>
  15. <li class="nav-item {% if app.request.requestUri starts with '/admin/point' %}active{% endif %}">
  16. <a class="nav-link" href="{{ path('admin.point_list') }}">
  17. <i class="fa fa-map-marker"></i>
  18. <p>Объекты</p>
  19. </a>
  20. </li>
  21. <li class="nav-item {% if app.request.requestUri starts with '/admin/news' %}active{% endif %}">
  22. <a class="nav-link" href="{{ path('admin.news_list') }}">
  23. <i class="fa fa-newspaper-o"></i>
  24. <p>Новости</p>
  25. </a>
  26. </li>
  27. <li class="nav-item {% if app.request.requestUri starts with '/admin/article' %}active{% endif %}">
  28. <a class="nav-link" href="{{ path('admin.article_list') }}">
  29. <i class="fa fa-file-text"></i>
  30. <p>Статьи</p>
  31. </a>
  32. </li>
  33. <li class="nav-item {% if app.request.requestUri starts with '/admin/user' %}active{% endif %}">
  34. <a class="nav-link" href="{{ path('admin.user_list') }}">
  35. <i class="fa fa-user"></i>
  36. <p>Пользователи</p>
  37. </a>
  38. </li>
  39. <li class="nav-item {% if app.request.requestUri starts with '/admin/files' %}active{% endif %}">
  40. <a class="nav-link" href="{{ path('admin.files') }}">
  41. <i class="fa fa-files-o"></i>
  42. <p>Файлы</p>
  43. </a>
  44. </li>
  45. </ul>
  46. </div>
  47. </div>