_layout.html 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>{{ trans .lang "admin_title" }}</title>
  7. <link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" />
  8. <link href="/static/admin/css/bootstrap.min.css?v={{ version }}" rel="stylesheet">
  9. <link href="/static/admin/css/dashboard.css?v={{ version }}" 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 "article" }}active{{ end }}" href="/admin/">
  19. {{ trans .lang "admin_articles" }}
  20. </a>
  21. </li>
  22. <li class="nav-item">
  23. <a class="nav-link {{ if eq .section "tag" }}active{{ end }}" href="/admin/tag">
  24. {{ trans .lang "admin_tags" }}
  25. </a>
  26. </li>
  27. <li class="nav-item mt-3 pt-3 border-top">
  28. <a class="nav-link {{ if eq .section "change_password" }}active{{ end }}" href="/admin/user/change-password">
  29. {{ trans .lang "admin_change_password" }}
  30. </a>
  31. </li>
  32. <li class="nav-item">
  33. <a class="nav-link" href="/admin/logout">
  34. {{ trans .lang "admin_logout" }}
  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={{ version }}"></script>
  44. <script src="/static/admin/tinymce/tinymce.min.js?v={{ version }}"></script>
  45. {{ block "admin/custom_bottom_static" . }}{{ end }}
  46. </body>
  47. </html>