aboutsummaryrefslogtreecommitdiff
path: root/views/includes/card.html
diff options
context:
space:
mode:
authorrtz12 <koenig@fagott.pw>2016-01-17 20:31:26 (UTC)
committerrtz12 <koenig@fagott.pw>2016-01-17 20:31:26 (UTC)
commit6cb2de0a1f583ef8d018e430181a7414fa7faff1 (patch)
treee2c60cc9ae28ef98bcc410e54b99a613b7267831 /views/includes/card.html
parentb868b32d348e6350225560b71c8712c2e932b063 (diff)
Ordnung in die Templates gebracht
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 }}