gocron/templates/common/header.html

70 lines
3.2 KiB
Go
Raw Normal View History

2017-04-01 09:04:40 +00:00
<!doctype html>
2017-04-07 01:13:36 +00:00
<html lang="zh-CN">
2017-04-01 09:04:40 +00:00
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
2017-04-07 01:13:36 +00:00
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="renderer" content="webkit">
2017-04-01 09:04:40 +00:00
<title>{{{.Title}}}</title>
2017-04-07 01:13:36 +00:00
<link type="text/css" rel="stylesheet" href="/resource/css/framework.css" />
<link type="text/css" rel="stylesheet" href="/resource/css/main.css" />
2017-04-07 09:26:46 +00:00
<link type="text/css" rel="stylesheet" href="/resource/sweetalert/sweetalert.css" />
<script type="text/javascript" src="/resource/javascript/jquery.min.js"></script>
<script type="text/javascript" src="/resource/javascript/framework.js"></script>
<script type="text/javascript" src="/resource/javascript/form.min.js"></script>
<script type="text/javascript" src="/resource/sweetalert/sweetalert.min.js"></script>
2017-04-13 09:35:59 +00:00
<script type="text/javascript" src="/resource/javascript/vue.min.js"></script>
2017-04-30 17:12:07 +00:00
<script type="text/javascript" src="/resource/javascript/handlebars-v4.0.5.js"></script>
2017-04-07 09:26:46 +00:00
<script type="text/javascript" src="/resource/javascript/main.js"></script>
2017-04-21 05:36:45 +00:00
<style type="text/css">
body {
overflow-x: hidden;
}
select {
height: 40px;
}
.fields.search > .field {
margin-right: 5px;
}
2017-04-21 05:36:45 +00:00
</style>
2017-04-01 09:04:40 +00:00
</head>
<body>
2017-04-07 01:13:36 +00:00
<div class="page">
<!--header begin-->
<header>
<div class="bigcontainer">
<div id="logo">
</div>
<div class="user">
<div class="ui inline labeled icon top right pointing dropdown">
2017-04-23 09:00:47 +00:00
{{{if not .LoginUsername}}}
2017-04-07 01:13:36 +00:00
<i class="dropdown icon"></i>
<div class="menu">
2017-04-07 09:26:46 +00:00
<a class="item" href="/user/login"><i class="sign in icon"></i></a>
2017-04-07 01:13:36 +00:00
</div>
{{{else}}}
2017-04-23 09:00:47 +00:00
{{{.LoginUsername}}}
2017-04-07 01:13:36 +00:00
<i class="dropdown icon"></i>
<div class="menu">
2017-04-30 12:50:09 +00:00
<a href="/user/editPassword" class="item"><i class="edit icon"></i></a>
2017-04-07 09:26:46 +00:00
<a class="item" href="/user/logout"><i class="sign out icon"></i>退</a>
2017-04-07 01:13:36 +00:00
</div>
{{{end}}}
</div>
</div>
</div>
</header>
<!-- the main menu-->
<div class="ui teal inverted menu">
<div class="bigcontainer">
<div class="right menu">
<a class="item {{{if eq .Controller "task"}}}active{{{end}}}" href="/task"><i class="tasks icon"></i></a>
<a class="item {{{if eq .Controller "host"}}}active{{{end}}}" href="/host"><i class="linux icon"></i></a>
2017-04-23 11:17:29 +00:00
<!-- <a class="item {{{if eq .Controller "user"}}}active{{{end}}}" href="/user"><i class="user icon"></i></a> -->
{{{if gt .LoginUid 0}}}
2017-04-30 22:02:49 +00:00
<a class="item {{{if eq .Controller "manage"}}}active{{{end}}}" href="/manage/slack/edit"><i class="settings icon"></i></a>
2017-04-23 11:17:29 +00:00
{{{end}}}
2017-04-07 01:13:36 +00:00
</div>
2017-04-01 09:04:40 +00:00
</div>
2017-04-13 09:35:59 +00:00
</div>