aboutsummaryrefslogtreecommitdiff
path: root/views/dashboard.html
blob: 67fb00576742d0f7ebb1f2a23205df72aa259299 (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
{{ define "dashboard" }}
<html>
        <head>
				{{ template "materialize" }}
                <title>grilist</title>
                <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
        </head>
        <body>
			<div class="container">
				<div class="row">
					{{ range $category := .categories }}
						<h2>{{ $category.Title }}</h2>
						{{ range $card := $category.Cards }}
							<div class="row">
								<div class="col s12 m6 l4">
									<div class="card white">
										<div class="card-content black-text">
											<span class="card-title">{{ $card.Title }}</span>
											<p>{{ $card.Description }}</p>
										</div>
										<div class="card-action">
											{{ range $action := $card.Actions }}
												<a href="{{ $action.Link }}">{{ $action.Name }}</a>
											{{ end }}
										</div>
									</div>
								</div>
							</div>
						{{ end }}
					{{ end }}
				</div>
			</div>
        </body>
</html>
{{ end }}