| 1 |
<!DOCTYPE html> |
| 2 |
<html lang="en"> |
| 3 |
<head> |
| 4 |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> |
| 5 |
<title>Orders - Go CDK Image Conversion Sample</title> |
| 6 |
<link href="https://fonts.googleapis.com/css?family=Roboto:400,400i,700&display=swap" rel="stylesheet"> |
| 7 |
<link rel="stylesheet" type="text/css" href="/style.css"> |
| 8 |
</head> |
| 9 |
<body> |
| 10 |
<header id="PageHeader"> |
| 11 |
<a href="/" class="PageTitle-link"><h1 id="PageTitle">Go CDK Image Conversion Sample</h1></a> |
| 12 |
</header> |
| 13 |
<main id="PageContent"> |
| 14 |
<h1>Orders</h1> |
| 15 |
{{if .}} |
| 16 |
<table id="OrderList"> |
| 17 |
<thead> |
| 18 |
<tr> |
| 19 |
<th scope="col" class="OrderList-heading">ID</th> |
| 20 |
<th scope="col" class="OrderList-heading">Email</th> |
| 21 |
<th scope="col" class="OrderList-heading">In</th> |
| 22 |
<th scope="col" class="OrderList-heading">Out</th> |
| 23 |
<th scope="col" class="OrderList-heading">Created</th> |
| 24 |
<th scope="col" class="OrderList-heading">Finished</th> |
| 25 |
<th scope="col" class="OrderList-heading">Note</th> |
| 26 |
</tr> |
| 27 |
</thead> |
| 28 |
<tbody> |
| 29 |
{{- range .}} |
| 30 |
<tr> |
| 31 |
<td class="OrderList-cell">{{.ID}}</td> |
| 32 |
<td class="OrderList-cell">{{.Email}}</td> |
| 33 |
<td class="OrderList-cell">{{.InImage}}</td> |
| 34 |
<td class="OrderList-cell">{{with .OutImage}}<a href="/show/{{.}}">{{.}}</a>{{end}}</td> |
| 35 |
<td class="OrderList-cell">{{with .CreateTime}}{{.Format "2006-01-02 03:04 AM"}}{{end}}</td> |
| 36 |
<td class="OrderList-cell">{{with .FinishTime}}{{.Format "2006-01-02 03:04 AM"}}{{end}}</td> |
| 37 |
<td class="OrderList-cell">{{.Note}}</td> |
| 38 |
</tr> |
| 39 |
{{- end}} |
| 40 |
</tbody> |
| 41 |
</table> |
| 42 |
{{else}} |
| 43 |
<p>No orders.</p> |
| 44 |
{{end}} |
| 45 |
</main> |
| 46 |
</body> |
| 47 |
</html> |