aboutsummaryrefslogtreecommitdiff
path: root/views/card.html
blob: be2827239aac322925d92ef09a0f3ac29afc8e2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{{ define "card" }}
{{ $card := . }}
<div class="col s12 m6 l4">
	<div class="card white">
		<div class="card-content black-text">
			<span class="card-title">{{ $card.Title | html }}</span>
			<p>{{ $card.Description | html }}</p>
		</div>
		<div class="card-action">
			{{ range $action := $card.Actions }}
				{{ if $action.Disabled }}
					<span>{{ $action.Name | html }}</span>
				{{ else }}
					<a href="{{ $action.Link }}">{{ $action.Name | html }}</a>
				{{ end }}
			{{ end }}
		</div>
	</div>
</div>
{{ end }}