diff options
author | jan <jan@ruken.pw> | 2016-11-14 20:26:14 (UTC) |
---|---|---|
committer | jan <jan@ruken.pw> | 2016-11-14 20:26:14 (UTC) |
commit | 856579ebaf571767c316309710aa5eec01137df7 (patch) | |
tree | fed0c22b75cddc585f4d43cd47a1c0073fbf0bf5 | |
parent | e4c8cc5ac6ec07eba501c83c7b07adcee25d0ab4 (diff) |
man darf sich nicht selbst approven
-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 b1ec236..71f25fd 100644 --- a/views/pages/list.html +++ b/views/pages/list.html | |||
@@ -25,7 +25,11 @@ | |||
25 | </div> | 25 | </div> |
26 | </div>{{ end }} | 26 | </div>{{ end }} |
27 | <blockquote>{{ $list.Description }}</blockquote><br /> | 27 | <blockquote>{{ $list.Description }}</blockquote><br /> |
28 | {{ if isSameUser $user $list.Owner }} | ||
29 | {{ template "like" (map "ContentType" 0 "ContentID" $list.ID) }} | ||
30 | {{ else }} | ||
28 | {{ template "like" (map "ContentType" 0 "ContentID" $list.ID "User" $user) }} | 31 | {{ template "like" (map "ContentType" 0 "ContentID" $list.ID "User" $user) }} |
32 | {{ end }} | ||
29 | <div class="row"> | 33 | <div class="row"> |
30 | <div class="col s12 {{ if ($user) and eq $user.ID $list.Owner.ID }}l8{{ end }}"> | 34 | <div class="col s12 {{ if ($user) and eq $user.ID $list.Owner.ID }}l8{{ end }}"> |
31 | <ul id="gril-list" class="gril-list"> | 35 | <ul id="gril-list" class="gril-list"> |