blob: f3b71486f63cc6d2aee9857f375e77a5e8172361 (
plain)
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
47
48
49
50
51
52
53
54
|
{{ define "gril" }}
{{ $gril := .gril }}
<html>
<head>
{{ template "materialize" }}
<title>grilist</title>
<link rel="stylesheet" href="/assets/css/gril.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
</head>
<body>
{{ template "navbar" . }}
<div class="container">
<h1>{{ $gril.RomajiName }}<small>{{ $gril.KanjiName }}</small></h1>
{{ range $tag := $gril.Tags }}
<div class="chip">
{{ $tag }}
</div>
{{ end }}
<br />
<br />
<div class="row">
{{ if $gril.Age.Valid }}
<div class="col s6 m2 l2">
<div class="card">
<div class="card-content purple-text text-lighten-2 center-align">
<span class="card-title">{{ $gril.Age.Value }}</span>
<p>years old</p>
</div>
</div>
</div>
{{ end }}
{{ if $gril.Birthday.Valid }}
<div class="col s6 m2 l2">
<div class="card">
<div class="card-content purple-text text-lighten-2 center-align">
<span class="card-title">{{ $gril.Birthday.Value}}</span>
<p>birthday</p>
</div>
</div>
</div>
{{ end }}
<div class="col s12 m4 l4">
<div class="card">
<div class="card-content purple-text text-lighten-2 center-align">
<span class="card-title">{{ $gril.UpdatedAt.Format "Jan 02, 2006" }}</span>
<p>last updated</p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
{{ end }}
|