-
Notifications
You must be signed in to change notification settings - Fork 8
/
page.index.html
46 lines (46 loc) · 1.7 KB
/
page.index.html
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Dashboard</title>
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
/>
</head>
<body>
<nav class="navbar navbar-dark bg-dark">
<a class="navbar-brand" href="#">Dashboard</a>
</nav>
<div class="container mt-5">
<div class="card">
<div class="card-header">Block</div>
<div class="card-body">
{{/* use .Block in PIndex as the state return by GetBlockInfo */}} {{
template "GetBlockInfo" await .Block }} {{ client }}
</div>
</div>
<div style="height: 20px"></div>
<div class="card">
<div class="card-header">Node</div>
<div class="card-body">
{{/* use .Node in PIndex as the state return by GetBlockInfo */}} {{
template "GetNodeInfo" await .Node }} {{ client }}
</div>
</div>
<div style="height: 20px"></div>
<div class="card">
<div class="card-header">Consensus</div>
<div class="card-body">
{{/* use .Consensus in PIndex as the state return by GetBlockInfo */}}
{{ template "GetConsensusInfo" await .Consensus }} {{ client }}
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
</body>
</html>