_layout.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. {{ $v := version }}{{ $sTag := "tag" }}{{ $sArticle := "article" }}<!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. </ul>
  28. </div>
  29. </nav>
  30. {{ embed }}
  31. </div>
  32. </div>
  33. <script src="/static/admin/js/bootstrap.bundle.min.js?v={{ $v }}"></script>
  34. <script src="/static/admin/tinymce/tinymce.min.js?v={{ $v }}"></script>
  35. {{ block "admin/custom_bottom_static" . }}{{ end }}
  36. </body>
  37. </html>