From ed9c7e945d6413224a60afc256dab1374a76dbf1 Mon Sep 17 00:00:00 2001 From: Andreas N Date: Fri, 2 Jan 2015 00:38:59 +0100 Subject: [PATCH] you can report yourself anymore --- app/views/shared/_answerbox_buttons.html.haml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/views/shared/_answerbox_buttons.html.haml b/app/views/shared/_answerbox_buttons.html.haml index e83389e1..bfde2a68 100644 --- a/app/views/shared/_answerbox_buttons.html.haml +++ b/app/views/shared/_answerbox_buttons.html.haml @@ -26,7 +26,8 @@ %a{href: '#', data: { a_id: a.id, action: 'ab-destroy' }} %i.fa.fa-trash-o Delete - %li - %a{href: '#', data: { a_id: a.id, action: 'ab-report' }} - %i.fa.fa-exclamation-triangle - Report \ No newline at end of file + - unless a.user == current_user + %li + %a{href: '#', data: { a_id: a.id, action: 'ab-report' }} + %i.fa.fa-exclamation-triangle + Report \ No newline at end of file