diff options
Diffstat (limited to 'views')
-rw-r--r-- | views/dashboard.html | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/views/dashboard.html b/views/dashboard.html new file mode 100644 index 0000000..67fb005 --- /dev/null +++ b/views/dashboard.html | |||
@@ -0,0 +1,35 @@ | |||
1 | {{ define "dashboard" }} | ||
2 | <html> | ||
3 | <head> | ||
4 | {{ template "materialize" }} | ||
5 | <title>grilist</title> | ||
6 | <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> | ||
7 | </head> | ||
8 | <body> | ||
9 | <div class="container"> | ||
10 | <div class="row"> | ||
11 | {{ range $category := .categories }} | ||
12 | <h2>{{ $category.Title }}</h2> | ||
13 | {{ range $card := $category.Cards }} | ||
14 | <div class="row"> | ||
15 | <div class="col s12 m6 l4"> | ||
16 | <div class="card white"> | ||
17 | <div class="card-content black-text"> | ||
18 | <span class="card-title">{{ $card.Title }}</span> | ||
19 | <p>{{ $card.Description }}</p> | ||
20 | </div> | ||
21 | <div class="card-action"> | ||
22 | {{ range $action := $card.Actions }} | ||
23 | <a href="{{ $action.Link }}">{{ $action.Name }}</a> | ||
24 | {{ end }} | ||
25 | </div> | ||
26 | </div> | ||
27 | </div> | ||
28 | </div> | ||
29 | {{ end }} | ||
30 | {{ end }} | ||
31 | </div> | ||
32 | </div> | ||
33 | </body> | ||
34 | </html> | ||
35 | {{ end }} \ No newline at end of file | ||