_layout.html 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {{ $v := version }}{{ $sTag := "tag" }}{{ $sArticle := "article" }}{{ $sPass := "change_password" }}<!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>Панель администрирования</title>
  7. <link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" />
  8. <link href="/static/admin/css/bootstrap.min.css?v={{ $v }}" rel="stylesheet">
  9. <link href="/static/admin/css/dashboard.css?v={{ $v }}" rel="stylesheet">
  10. </head>
  11. <body>
  12. <div class="container-fluid">
  13. <div class="row">
  14. <nav id="sidebarMenu" class="col-md-3 col-lg-2 d-md-block sidebar collapse bg-light">
  15. <div class="position-sticky pt-3 sidebar-sticky">
  16. <ul class="nav flex-column">
  17. <li class="nav-item">
  18. <a class="nav-link {{ if eq .section $sArticle }}active{{ end }}" href="/admin/">
  19. Статьи
  20. </a>
  21. </li>
  22. <li class="nav-item">
  23. <a class="nav-link {{ if eq .section $sTag }}active{{ end }}" href="/admin/tag">
  24. Теги
  25. </a>
  26. </li>
  27. <li class="nav-item mt-3 pt-3 border-top">
  28. <a class="nav-link {{ if eq .section $sPass }}active{{ end }}" href="/admin/user/change-password">
  29. Изменить пароль
  30. </a>
  31. </li>
  32. <li class="nav-item">
  33. <a class="nav-link" href="/admin/logout">
  34. Выход
  35. </a>
  36. </li>
  37. </ul>
  38. </div>
  39. </nav>
  40. {{ embed }}
  41. </div>
  42. </div>
  43. <script src="/static/admin/js/bootstrap.bundle.min.js?v={{ $v }}"></script>
  44. <script src="/static/admin/tinymce/tinymce.min.js?v={{ $v }}"></script>
  45. {{ block "admin/custom_bottom_static" . }}{{ end }}
  46. </body>
  47. </html>