diff options
author | jan <jan@ruken.pw> | 2016-11-14 20:26:14 (UTC) |
---|---|---|
committer | rtz12 <koenig@fagott.pw> | 2016-11-15 17:52:28 (UTC) |
commit | 77534b0c8fb59b7a670d21e9c98832fa84e11f70 (patch) | |
tree | aa5e8c1259008b56f92248e7ee7d0793a1c432fd /views/pages/list.html | |
parent | 1dc23782f253352a61825ffa458d39217831cbf7 (diff) |
man darf sich nicht selbst approven
Diffstat (limited to 'views/pages/list.html')
-rw-r--r-- | views/pages/list.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/views/pages/list.html b/views/pages/list.html index 3676241..6d4d112 100644 --- a/views/pages/list.html +++ b/views/pages/list.html | |||
@@ -35,7 +35,11 @@ | |||
35 | </div> | 35 | </div> |
36 | </div>{{ end }} | 36 | </div>{{ end }} |
37 | <blockquote>{{ $list.Description }}</blockquote><br /> | 37 | <blockquote>{{ $list.Description }}</blockquote><br /> |
38 | {{ if isSameUser $user $list.Owner }} | ||
39 | {{ template "like" (map "ContentType" 0 "ContentID" $list.ID) }} | ||
40 | {{ else }} | ||
38 | {{ template "like" (map "ContentType" 0 "ContentID" $list.ID "User" $user) }} | 41 | {{ template "like" (map "ContentType" 0 "ContentID" $list.ID "User" $user) }} |
42 | {{ end }} | ||
39 | <div class="row"> | 43 | <div class="row"> |
40 | <div class="col s12 {{ if ($user) and eq $user.ID $list.Owner.ID }}l8{{ end }}"> | 44 | <div class="col s12 {{ if ($user) and eq $user.ID $list.Owner.ID }}l8{{ end }}"> |
41 | <ul id="gril-list" class="gril-list"> | 45 | <ul id="gril-list" class="gril-list"> |