forked from startup-class/bitstarter-leaderboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
orderpage.ejs
33 lines (33 loc) · 1.19 KB
/
orderpage.ejs
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Orders</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://d396qusza40orc.cloudfront.net/startup%2Fcode%2Fbootstrap-combined.no-icons.min.css">
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/font-awesome/3.0.2/css/font-awesome.css">
<script src="https://d396qusza40orc.cloudfront.net/startup%2Fcode%2Fjquery.js"></script>
<script src="https://d396qusza40orc.cloudfront.net/startup%2Fcode%2Fbootstrap.js"></script>
</head>
<body>
<div class="container">
<h2>Coinbase orders</h2>
<table class="table table-striped">
<thead>
<th>Coinbase ID</th>
<th>BTC</th>
<th>Transaction time</th>
</thead>
<tbody>
<% for(var i = 0; i < orders.length; i++) {%>
<tr>
<td><%= orders[i].coinbase_id %></td>
<td><%= orders[i].amount %></td>
<td><%= orders[i].time %></td>
</tr>
<% } %>
</table>
<a href="/refresh_orders">Refresh orders from coinbase</a>
</div>
</body>
</html>