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-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;
|
|
|
|
}
|
2017-04-22 15:39:33 +00:00
|
|
|
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-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">
|
2017-04-22 15:39:33 +00:00
|
|
|
<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-22 15:39:33 +00:00
|
|
|
<a class="item {{{if eq .Controller "admin"}}}active{{{end}}}" href="/admin"><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>
|