aboutsummaryrefslogtreecommitdiff
path: root/views/includes/card.html
blob: 289c9d3cf115aceb292fbf824c845e7b421a3980 (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 class="purple-text text-lighten-2" href="{{ $action.Link }}">{{ $action.Name | html }}</a>
				{{ end }}
			{{ end }}
		</div>
	</div>
</div>
{{ end }}