aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorjan <jan@ruken.pw>2016-11-14 17:46:52 (UTC)
committerjan <jan@ruken.pw>2016-11-14 17:46:52 (UTC)
commit5d4d9935cffa9a7cb8fe2a294e45959b43390ef2 (patch)
tree23388718005fb0e84fbdebf20ff5c1d827aef5e9 /views
parentc735553214400f3af69e516ff41a6da9214449a7 (diff)
likes funktionieren
Diffstat (limited to 'views')
-rw-r--r--views/includes/like.html4
-rw-r--r--views/pages/list.html2
2 files changed, 4 insertions, 2 deletions
diff --git a/views/includes/like.html b/views/includes/like.html
index 226aaff..bfb9576 100644
--- a/views/includes/like.html
+++ b/views/includes/like.html
@@ -1,3 +1,5 @@
1{{ define "like" }} 1{{ define "like" }}
2<span class="like-count" content-type={{ .ContentType }} content-id={{ .ContentID }}></span> Likes 2<div class="like-div btn purple lighten-4" {{ if .User }}update-with="{{ .User.ID }}"{{ end }} content-type={{ .ContentType }} content-id={{ .ContentID }}>
3 <span class="like-count"></span> <span class="like-caption">Finden das geil</span>
4</div>
3{{ end }} 5{{ end }}
diff --git a/views/pages/list.html b/views/pages/list.html
index f884a63..b1ec236 100644
--- a/views/pages/list.html
+++ b/views/pages/list.html
@@ -25,7 +25,7 @@
25 </div> 25 </div>
26 </div>{{ end }} 26 </div>{{ end }}
27 <blockquote>{{ $list.Description }}</blockquote><br /> 27 <blockquote>{{ $list.Description }}</blockquote><br />
28 {{ template "like" (map "ContentType" 0 "ContentID" $list.ID) }} 28 {{ template "like" (map "ContentType" 0 "ContentID" $list.ID "User" $user) }}
29 <div class="row"> 29 <div class="row">
30 <div class="col s12 {{ if ($user) and eq $user.ID $list.Owner.ID }}l8{{ end }}"> 30 <div class="col s12 {{ if ($user) and eq $user.ID $list.Owner.ID }}l8{{ end }}">
31 <ul id="gril-list" class="gril-list"> 31 <ul id="gril-list" class="gril-list">