aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorjan <jan@ruken.pw>2015-12-28 10:36:00 (UTC)
committerjan <jan@ruken.pw>2015-12-28 10:36:00 (UTC)
commit0891a94767cafc13307482cd0c4f76db3bcc3b5e (patch)
tree5be18b1644751bf1365a7b185cab2eaaa6a5f6a6 /views
parent0746d945a61ca3dc7588a1f7a2c320ca8a06e198 (diff)
'html' template func zum rendern von HTML in templates. wird im dashboard verwendet für mehr dynamik.
Diffstat (limited to 'views')
-rw-r--r--views/dashboard.html10
1 files changed, 7 insertions, 3 deletions
diff --git a/views/dashboard.html b/views/dashboard.html
index f2d410d..0551285 100644
--- a/views/dashboard.html
+++ b/views/dashboard.html
@@ -16,12 +16,16 @@
16 <div class="col s12 m6 l4"> 16 <div class="col s12 m6 l4">
17 <div class="card white"> 17 <div class="card white">
18 <div class="card-content black-text"> 18 <div class="card-content black-text">
19 <span class="card-title">{{ $card.Title }}</span> 19 <span class="card-title">{{ $card.Title | html }}</span>
20 <p>{{ $card.Description }}</p> 20 <p>{{ $card.Description | html }}</p>
21 </div> 21 </div>
22 <div class="card-action"> 22 <div class="card-action">
23 {{ range $action := $card.Actions }} 23 {{ range $action := $card.Actions }}
24 <a href="{{ $action.Link }}">{{ $action.Name }}</a> 24 {{ if $action.Disabled }}
25 <span>{{ $action.Name | html }}</span>
26 {{ else }}
27 <a href="{{ $action.Link }}">{{ $action.Name | html }}</a>
28 {{ end }}
25 {{ end }} 29 {{ end }}
26 </div> 30 </div>
27 </div> 31 </div>