diff options
author | rtz12 <koenig@fagott.pw> | 2015-12-29 19:41:42 (UTC) |
---|---|---|
committer | rtz12 <koenig@fagott.pw> | 2015-12-29 19:41:42 (UTC) |
commit | c2498d562d3e30e4795056058fc3d8a5cec4ec11 (patch) | |
tree | f560375a0a6217edf7c9ac6e8753a09eb775b831 /views/card.html | |
parent | 43e206d8627ccdb94ad729d9d48d66484faba117 (diff) |
Tagansicht hinzugefuegt
Diffstat (limited to 'views/card.html')
-rw-r--r-- | views/card.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/views/card.html b/views/card.html new file mode 100644 index 0000000..be28272 --- /dev/null +++ b/views/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 }} | ||