69 lines
1.4 KiB
HTML
69 lines
1.4 KiB
HTML
{{ define "layout" }}
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<title>{{ template "title" . }}</title>
|
|
<style>
|
|
body {
|
|
font-family: sans-serif;
|
|
background: #111;
|
|
color: #eee;
|
|
padding: 20px;
|
|
text-align: center;
|
|
}
|
|
table {
|
|
border-collapse: collapse;
|
|
margin: auto;
|
|
margin-bottom: 20px;
|
|
}
|
|
table.fw {
|
|
width: 100%;
|
|
}
|
|
th,
|
|
td {
|
|
padding: 8px 12px;
|
|
border: 1px solid #444;
|
|
text-align: left;
|
|
white-space: nowrap;
|
|
}
|
|
th {
|
|
background-color: #222;
|
|
}
|
|
tr:nth-child(even) {
|
|
background-color: #1a1a1a;
|
|
}
|
|
a.page-link {
|
|
margin: 0 5px;
|
|
text-decoration: none;
|
|
color: #0af;
|
|
}
|
|
a.page-link.current {
|
|
font-weight: bold;
|
|
color: #fff;
|
|
}
|
|
a {
|
|
color: #0af;
|
|
text-decoration: none;
|
|
}
|
|
li {
|
|
display: inline;
|
|
margin: 0 10px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>{{ template "header" . }}</h1>
|
|
|
|
{{ template "content" . }} {{ template "navigation" . }}
|
|
</body>
|
|
</html>
|
|
{{ end }} {{ define "navigation" }}
|
|
<ul>
|
|
<li><a href="/">Home</a></li>
|
|
<li><a href="/shares">View Shares</a></li>
|
|
<li><a href="/top-shares">Top Shares</a></li>
|
|
<li><a href="/daily-stats">Daily Stats</a></li>
|
|
</ul>
|
|
{{ end }}
|