gocron/templates/common/header.html

63 lines
3.0 KiB
HTML
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-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;
}
</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">
{{{if not .Logined}}}
<img class="ui avatar image" src="/resource/images/gopher-avatar.png">
你好
<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}}}
<img class="ui avatar image" src="/resource/images/gopher-avatar.png">
你好,{{{.Username}}}
<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-13 09:35:59 +00:00
<a class="item {{{if eq .URI "/"}}}active{{{end}}}" href="/"><i class="home icon"></i>首页</a>
<a class="item {{{if eq .URI "/task"}}}active{{{end}}}" href="/task"><i class="tasks icon"></i>任务</a>
<a class="item {{{if eq .URI "/host"}}}active{{{end}}}" href="/host"><i class="linux icon"></i>主机</a>
<a class="item {{{if eq .URI "/user"}}}active{{{end}}}" href="/user"><i class="user icon"></i>账户</a>
<a class="item {{{if eq .URI "/admin"}}}active{{{end}}}" href="/admin"><i class="settings icon"></i>管理</a>
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>