aboutsummaryrefslogtreecommitdiff
path: root/views/includes/card.html
blob: 41ad2ce849da947cbe14f6be4a0e64c714324d3a (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
{{ define "card" }}
{{ $card := . }}
<div class="flex-card">
	<div class="card white">
		<div class="card-content black-text">
			{{ if $card.Image }}
			<div class="center-align" style="padding-top: 8px">
				<img class="circle responsive-img card-image" src="{{ $card.Image }}" />
			</div>
			{{ end }}
			<span class="card-title valign-wrapper">{{ $card.Title | html }}{{ if $card.SubTitle }}{{ $card.SubTitle | html }}{{ end }}</span>
			<p>{{ $card.Description | html }}</p>
		</div>
		<div class="card-action pull-down">
			{{ range $action := $card.Actions }}
				{{ if $action.Disabled }}
					<span>{{ $action.Name | html }}</span>
				{{ else }}
					<a {{ if $action.Target }} target="{{ $action.Target }}" {{ end }} class="purple-text text-lighten-2" href="{{ $action.Link }}">{{ $action.Name | html }}</a>
				{{ end }}
			{{ end }}
		</div>
	</div>
</div>
{{ end }}