swirl/views/_layouts/default.jet

103 lines
4.3 KiB
Go
Raw Normal View History

2017-09-26 12:50:09 +00:00
<!DOCTYPE html>
<html lang="en">
<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">
<a class="navbar-item" href="/">Dashboard</a>
<div class="navbar-item has-dropdown is-hoverable">
<div class="navbar-link">Local</div>
<div class="navbar-dropdown ">
<a class="navbar-item" href="/image/">Images</a>
<a class="navbar-item" href="/container/">Containers</a>
<a class="navbar-item" href="/volume/">Volumes</a>
</div>
</div>
<div class="navbar-item has-dropdown is-hoverable">
<div class="navbar-link">Swarm</div>
<div class="navbar-dropdown ">
<a class="navbar-item" href="/registry/">Registries</a>
<a class="navbar-item" href="/node/">Nodes</a>
<a class="navbar-item" href="/network/">Networks</a>
<a class="navbar-item" href="/service/">Services</a>
<a class="navbar-item" href="/stack/task/">Stacks</a>
<a class="navbar-item" href="/secret/">Secrets</a>
<a class="navbar-item" href="/config/">Configs</a>
</div>
</div>
<div class="navbar-item has-dropdown is-hoverable">
<div class="navbar-link">System</div>
<div class="navbar-dropdown ">
<a class="navbar-item" href="/system/role/">Roles</a>
<a class="navbar-item" href="/system/user/">Users</a>
<a class="navbar-item" href="/system/setting/">Settings</a>
<a class="navbar-item" href="/system/event/">Events</a>
<hr class="navbar-divider">
<div class="navbar-item">
<div class="navbar-content">
<strong>Version {{ version }}({{ go_version }})</strong>
</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">
<a class="navbar-item" href="/profile/">Profile</a>
<a class="navbar-item" href="/profile/password">Password</a>
</div>
</div>
<div class="navbar-item">
<div class="field">
<p class="control">
<a class="button is-outlined tooltip is-tooltip-bottom" href="/logout" data-tooltip="Sign out">
<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">
<p>© 2017 <a href="https://github.com/cuigh/swirl" target="_blank">cuigh</a>. All rights reserved.</p>
</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>