swirl/views/_layouts/default.jet

104 lines
4.8 KiB
Go
Raw Normal View History

2017-09-26 12:50:09 +00:00
<!DOCTYPE html>
2017-10-13 11:27:48 +00:00
<html lang="{{ language == "" ? "en" : language }}">
2017-09-26 12:50:09 +00:00
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="/lyicon/css/lyicon.css">
2017-09-29 08:43:02 +00:00
<link rel="stylesheet" href="/bulma/bulma.css?v=0.5.3">
2017-09-26 12:50:09 +00:00
<link rel="stylesheet" href="/swirl/css/swirl.css?v={{ version }}">
{{ block style() }}{{end}}
</head>
<body>
<div class="page-wrap">
<nav class="navbar">
<div class="navbar-brand">
<a class="navbar-item" href="/">
<img src="/swirl/img/logo.png" alt="logo" height="28">
</a>
<div class="navbar-burger" data-target="menu-top">
<span></span>
<span></span>
<span></span>
</div>
</div>
<div id="menu-top" class="navbar-menu">
<div class="navbar-start">
2017-10-12 03:04:27 +00:00
<a class="navbar-item" href="/">{{ i18n("menu.dashboard") }}</a>
2017-09-26 12:50:09 +00:00
<div class="navbar-item has-dropdown is-hoverable">
2017-10-12 03:04:27 +00:00
<div class="navbar-link">{{ i18n("menu.local") }}</div>
2017-09-26 12:50:09 +00:00
<div class="navbar-dropdown ">
2017-10-12 03:04:27 +00:00
<a class="navbar-item" href="/image/">{{ i18n("menu.image") }}</a>
<a class="navbar-item" href="/container/">{{ i18n("menu.container") }}</a>
<a class="navbar-item" href="/volume/">{{ i18n("menu.volume") }}</a>
2017-09-26 12:50:09 +00:00
</div>
</div>
<div class="navbar-item has-dropdown is-hoverable">
2017-10-12 03:04:27 +00:00
<div class="navbar-link">{{ i18n("menu.swarm") }}</div>
2017-09-26 12:50:09 +00:00
<div class="navbar-dropdown ">
2017-10-12 03:04:27 +00:00
<a class="navbar-item" href="/registry/">{{ i18n("menu.registry") }}</a>
<a class="navbar-item" href="/node/">{{ i18n("menu.node") }}</a>
<a class="navbar-item" href="/network/">{{ i18n("menu.network") }}</a>
<a class="navbar-item" href="/service/">{{ i18n("menu.service") }}</a>
2017-10-19 12:40:05 +00:00
<a class="navbar-item" href="/task/">{{ i18n("menu.task") }}</a>
2017-10-12 03:04:27 +00:00
<a class="navbar-item" href="/stack/task/">{{ i18n("menu.stack") }}</a>
<a class="navbar-item" href="/secret/">{{ i18n("menu.secret") }}</a>
<a class="navbar-item" href="/config/">{{ i18n("menu.config") }}</a>
2017-09-26 12:50:09 +00:00
</div>
</div>
<div class="navbar-item has-dropdown is-hoverable">
2017-10-12 03:04:27 +00:00
<div class="navbar-link">{{ i18n("menu.system") }}</div>
2017-09-26 12:50:09 +00:00
<div class="navbar-dropdown ">
2017-10-12 03:04:27 +00:00
<a class="navbar-item" href="/system/role/">{{ i18n("menu.role") }}</a>
<a class="navbar-item" href="/system/user/">{{ i18n("menu.user") }}</a>
<a class="navbar-item" href="/system/setting/">{{ i18n("menu.setting") }}</a>
<a class="navbar-item" href="/system/event/">{{ i18n("menu.event") }}</a>
2017-09-26 12:50:09 +00:00
<hr class="navbar-divider">
<div class="navbar-item">
<div class="navbar-content">
2017-10-12 03:04:27 +00:00
<strong>{{ i18n("menu.version") }} {{ version }}({{ go_version }})</strong>
2017-09-26 12:50:09 +00:00
</div>
</div>
</div>
</div>
</div>
<div class="navbar-end">
<div class="navbar-item is-narrow">
<span>{{.ContextUser.Name()}}</span>
</div>
<div class="navbar-item has-dropdown is-hoverable is-narrow">
<div class="navbar-link is-narrow"><span class="icon"><i class="fa fa-user"></i></span></div>
<div class="navbar-dropdown is-right">
2017-10-12 03:04:27 +00:00
<a class="navbar-item" href="/profile/">{{ i18n("menu.profile") }}</a>
<a class="navbar-item" href="/profile/password">{{ i18n("menu.password") }}</a>
2017-09-26 12:50:09 +00:00
</div>
</div>
<div class="navbar-item">
<div class="field">
<p class="control">
2017-10-12 03:04:27 +00:00
<a class="button is-outlined tooltip is-tooltip-bottom" href="/logout" data-tooltip="{{ i18n("button.logout") }}">
2017-09-26 12:50:09 +00:00
<span class="icon">
<i class="fa fa-sign-out"></i>
</span>
</a>
</p>
</div>
</div>
</div>
</div>
</nav>
{{ yield body() }}
<div class="page-push"></div>
</div>
<footer class="footer" style="padding-bottom: 3em">
<div class="container">
<div class="content has-text-centered">
2017-10-12 03:04:27 +00:00
<p>© 2017 <a href="https://github.com/cuigh/swirl" target="_blank">cuigh</a>. {{ i18n("copyright") }}</p>
2017-09-26 12:50:09 +00:00
</div>
</div>
</footer>
<script src="/jquery/jquery-3.2.1.min.js"></script>
<script src="/swirl/js/swirl.js?v={{ version }}"></script>
{{ block script() }}{{end}}
</body>
</html>