aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
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 3c95548..3676241 100644
--- a/views/pages/list.html
+++ b/views/pages/list.html
@@ -35,7 +35,7 @@
35 </div> 35 </div>
36 </div>{{ end }} 36 </div>{{ end }}
37 <blockquote>{{ $list.Description }}</blockquote><br /> 37 <blockquote>{{ $list.Description }}</blockquote><br />
38 {{ template "like" (map "ContentType" 0 "ContentID" $list.ID) }} 38 {{ template "like" (map "ContentType" 0 "ContentID" $list.ID "User" $user) }}
39 <div class="row"> 39 <div class="row">
40 <div class="col s12 {{ if ($user) and eq $user.ID $list.Owner.ID }}l8{{ end }}"> 40 <div class="col s12 {{ if ($user) and eq $user.ID $list.Owner.ID }}l8{{ end }}">
41 <ul id="gril-list" class="gril-list"> 41 <ul id="gril-list" class="gril-list">