aboutsummaryrefslogtreecommitdiff
path: root/views/includes/card.html
diff options
context:
space:
mode:
Diffstat (limited to 'views/includes/card.html')
-rw-r--r--views/includes/card.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/views/includes/card.html b/views/includes/card.html
new file mode 100644
index 0000000..be28272
--- /dev/null
+++ b/views/includes/card.html
@@ -0,0 +1,20 @@
1{{ define "card" }}
2{{ $card := . }}
3<div class="col s12 m6 l4">
4 <div class="card white">
5 <div class="card-content black-text">
6 <span class="card-title">{{ $card.Title | html }}</span>
7 <p>{{ $card.Description | html }}</p>
8 </div>
9 <div class="card-action">
10 {{ range $action := $card.Actions }}
11 {{ if $action.Disabled }}
12 <span>{{ $action.Name | html }}</span>
13 {{ else }}
14 <a href="{{ $action.Link }}">{{ $action.Name | html }}</a>
15 {{ end }}
16 {{ end }}
17 </div>
18 </div>
19</div>
20{{ end }}