- {{template "topic_alt_userinfo.html" .Topic }} + {{/**{{template "topic_alt_userinfo.html" .Topic }}**/}} {{range .Poll.QuickOptions}} @@ -83,7 +83,7 @@ {{if .CurrentUser.Loggedin}} - {{if .CurrentUser.Perms.LikeItem}}{{end}} + {{if .CurrentUser.Perms.LikeItem}}{{if ne .CurrentUser.ID .Topic.CreatedBy}}{{end}}{{end}} {{if not .Topic.IsClosed or .CurrentUser.Perms.CloseTopic}} {{if .CurrentUser.Perms.EditTopic}}{{end}} diff --git a/templates/topic_alt_posts.html b/templates/topic_alt_posts.html index 46558475..3ce7b011 100644 --- a/templates/topic_alt_posts.html +++ b/templates/topic_alt_posts.html @@ -21,7 +21,7 @@ {{end}} {{if $.CurrentUser.Perms.UploadFiles}} - + {{lang "topic.upload_button_text"}}{{end}} {{lang "topic.delete_button_text"}} @@ -31,7 +31,7 @@ {{if $.CurrentUser.Loggedin}} - {{if $.CurrentUser.Perms.LikeItem}}{{end}} + {{if $.CurrentUser.Perms.LikeItem}}{{if ne $.CurrentUser.ID .CreatedBy}}{{end}}{{end}} {{if not $.Topic.IsClosed or $.CurrentUser.Perms.CloseTopic}} {{if $.CurrentUser.Perms.EditReply}}{{end}} @@ -49,6 +49,5 @@ {{end}} - - + {{end}}