-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlayout.html
More file actions
28 lines (28 loc) · 872 Bytes
/
layout.html
File metadata and controls
28 lines (28 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{{ define "layout" }}
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<title>statistics report</title>
<style type="text/css">
body{font-size: 12px;}
table{border: 1px solid #ccc; border-collapse: collapse;}
th,td{border:1px solid #bbb;padding:2px 5px;}
tr:nth-child(odd){background-color:#FFE4C4;}
tr:nth-child(even){background-color:#F0F0F0;}
th{background-color: #0088ff;color:#FFF;}
@media print{
.noprint{display:none}
}
</style>
</head>
<body>
<div style="position: absolute; top:0;right:0;" class="noprint">
<button onclick="window.print()">print</button>
</div>
<div class="container">
{{ template "content" . }}
</div>
</body>
</html>
{{ end }}