mindoc/views/home/index.tpl

68 lines
3.4 KiB
Smarty
Raw Normal View History

2017-04-19 18:19:27 +08:00
<!DOCTYPE html>
2017-04-20 18:19:32 +08:00
<html lang="zh-CN">
2017-04-19 18:19:27 +08:00
<head>
2018-01-27 13:34:48 +08:00
<title>{{.SITE_NAME}} - Powered by MinDoc</title>
2017-04-20 18:19:32 +08:00
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
2018-01-27 13:34:48 +08:00
<meta name="renderer" content="webkit">
2017-05-12 14:21:29 +08:00
<meta name="author" content="Minho" />
<meta name="site" content="https://www.iminho.me" />
<meta name="keywords" content="MinDoc,文档在线管理系统,WIKI,wiki,wiki在线,文档在线管理,接口文档在线管理,接口文档管理">
<meta name="description" content="MinDoc文档在线管理系统 {{.site_description}}">
2017-04-20 18:19:32 +08:00
<!-- Bootstrap -->
2017-05-12 14:21:29 +08:00
<link href="{{cdncss "/static/bootstrap/css/bootstrap.min.css"}}" rel="stylesheet">
<link href="{{cdncss "/static/font-awesome/css/font-awesome.min.css"}}" rel="stylesheet">
<link href="{{cdncss "/static/css/main.css" "version"}}" rel="stylesheet">
<script type="text/javascript">
window.updateBookOrder = "{{urlfor "BookController.UpdateBookOrder"}}";
</script>
2017-04-19 18:19:27 +08:00
</head>
<body>
2017-04-20 18:19:32 +08:00
<div class="manual-reader manual-container">
{{template "widgets/header.tpl" .}}
<div class="container manual-body">
<div class="row">
2018-11-27 11:47:19 +08:00
<div class="manual-list">
{{range $index,$item := .Lists}}
<div class="list-item" data-id="{{$item.BookId}}">
2018-07-10 18:53:41 +08:00
<dl class="manual-item-standard">
<dt>
<a href="{{urlfor "DocumentController.Index" ":key" $item.Identify}}" title="{{$item.BookName}}-{{$item.CreateName}}">
2018-07-10 18:53:41 +08:00
<img src="{{cdnimg $item.Cover}}" class="cover" alt="{{$item.BookName}}-{{$item.CreateName}}" onerror="this.src='{{cdnimg "static/images/book.jpg"}}';">
</a>
</dt>
<dd>
<a href="{{urlfor "DocumentController.Index" ":key" $item.Identify}}" class="name" title="{{$item.BookName}}-{{$item.CreateName}}">{{$item.BookName}}</a>
2018-07-10 18:53:41 +08:00
</dd>
<dd>
2017-04-20 18:19:32 +08:00
<span class="author">
2021-03-30 19:08:50 +08:00
<b class="text">{{i18n $.Lang "blog.author"}}</b>
2017-04-20 18:19:32 +08:00
<b class="text">-</b>
<b class="text">{{if eq $item.RealName "" }}{{$item.CreateName}}{{else}}{{$item.RealName}}{{end}}</b>
2017-04-20 18:19:32 +08:00
</span>
2018-07-10 18:53:41 +08:00
</dd>
</dl>
</div>
{{else}}
2021-03-30 19:08:50 +08:00
<div class="text-center" style="height: 200px;margin: 100px;font-size: 28px;">{{i18n $.Lang "message.no_project"}}</div>
{{end}}
2017-04-20 18:19:32 +08:00
<div class="clearfix"></div>
</div>
2017-05-31 10:15:04 +08:00
<nav class="pagination-container">
{{if gt .TotalPages 1}}
{{.PageHtml}}
2017-05-31 10:15:04 +08:00
{{end}}
<div class="clearfix"></div>
</nav>
2017-04-20 18:19:32 +08:00
</div>
</div>
{{template "widgets/footer.tpl" .}}
2017-04-19 18:19:27 +08:00
</div>
2017-05-12 14:21:29 +08:00
<script src="{{cdnjs "/static/jquery/1.12.4/jquery.min.js"}}" type="text/javascript"></script>
<script src="{{cdnjs "/static/bootstrap/js/bootstrap.min.js"}}" type="text/javascript"></script>
<script src="{{cdnjs "/static/layer/layer.js"}}"></script>
<script src="{{cdnjs "/static/js/sort.js"}}" type="text/javascript"></script>
{{.Scripts}}
2017-04-19 18:19:27 +08:00
</body>
2017-04-20 18:19:32 +08:00
</html>