70 lines
3.4 KiB
Plaintext
70 lines
3.4 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title><%= title %></title>
|
|
<!--<link rel='stylesheet' href='/stylesheets/style.css' />-->
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-wEmeIV1mKuiNpC+IOBjI7aAzPcEZeedi5yW5f2yOq55WWLwNGmvvx4Um1vskeMj0" crossorigin="anonymous">
|
|
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css" integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous"/>
|
|
<meta name="theme-color" content="#7952b3">
|
|
<link href="/stylesheets/dashboard.css" rel="stylesheet">
|
|
</head>
|
|
<body>
|
|
<%- include('header.ejs') %>
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<%- include('sidebar.ejs') %>
|
|
<main class="col-md-9 ms-sm-auto col-lg-10 px-md-4">
|
|
<%- include('breadcrumb.ejs', {breadcrumb: breadcrumb}) %>
|
|
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
|
|
<h1 class="h2">Dashboard</h1>
|
|
<div class="btn-toolbar mb-2 mb-md-0">
|
|
<div class="btn-group me-2">
|
|
<button type="button" class="btn btn-sm btn-outline-secondary">Share</button>
|
|
<button type="button" class="btn btn-sm btn-outline-secondary">Export</button>
|
|
</div>
|
|
<button type="button" class="btn btn-sm btn-outline-secondary dropdown-toggle">
|
|
<span data-feather="calendar"></span>
|
|
This week
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<canvas class="my-4 w-100" id="myChart" width="900" height="380"></canvas>
|
|
|
|
<h2><%= title %></h2>
|
|
<div class="table-responsive">
|
|
<table class="table table-striped table-sm">
|
|
<thead>
|
|
<tr>
|
|
<th>#</th>
|
|
<th>From</th>
|
|
<th>To</th>
|
|
<th>Amount</th>
|
|
<th>Block Timestamp</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% data.forEach(function(block) {%>
|
|
<tr>
|
|
<td><%= block.content.id %></td>
|
|
<td><%= block.content.message.from %></td>
|
|
<td><%= block.content.message.to %></td>
|
|
<td><%= block.content.message.amount %> mCoins</td>
|
|
<td><%= block.content.timestamp %></td>
|
|
</tr>
|
|
<%}); %>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<%- include('footer.ejs') %>
|
|
</main>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-p34f1UUtsS3wqzfto5wAAmdvj+osOnFyQFpp4Ua3gs/ZVWx6oOypYoCJhGGScy+8" crossorigin="anonymous"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/feather-icons@4.28.0/dist/feather.min.js" integrity="sha384-uO3SXW5IuS1ZpFPKugNNWqTZRRglnUJK6UAZ/gxOX80nxEkN9NcGZTftn6RzhGWE" crossorigin="anonymous"></script><script src="https://cdn.jsdelivr.net/npm/chart.js@2.9.4/dist/Chart.min.js" integrity="sha384-zNy6FEbO50N+Cg5wap8IKA4M/ZnLJgzc6w2NqACZaK0u0FXfOWRRJOnQtpZun8ha" crossorigin="anonymous"></script><script src="/javascripts/dashboard.js"></script>
|
|
</body>
|
|
</html>
|