From 1a50c2e11a7a7026fd6f4bfd21900fd038f2f132 Mon Sep 17 00:00:00 2001 From: Sergey Nartimov Date: Mon, 29 Oct 2012 22:27:34 +0300 Subject: [PATCH] move duplicated link outside condition --- app/views/problems/show.html.haml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/views/problems/show.html.haml b/app/views/problems/show.html.haml index dd58527..fb4fbab 100644 --- a/app/views/problems/show.html.haml +++ b/app/views/problems/show.html.haml @@ -34,11 +34,10 @@ %span.comment-info = time_ago_in_words(comment.created_at, true) << " ago by " = link_to comment.user.email, user_path(comment.user) - %span.delete= link_to '✘'.html_safe, app_problem_comment_path(@app, @problem, comment), :method => :delete, :data => { :confirm => "Are sure you don't need this comment?" }, :class => "destroy-comment" - else %span.comment-info = time_ago_in_words(comment.created_at, true) << " ago by [Unknown User]" - %span.delete= link_to '✘'.html_safe, app_problem_comment_path(@app, @problem, comment), :method => :delete, :data => { :confirm => "Are sure you don't need this comment?" }, :class => "destroy-comment" + %span.delete= link_to '✘'.html_safe, app_problem_comment_path(@app, @problem, comment), :method => :delete, :data => { :confirm => "Are sure you don't need this comment?" }, :class => "destroy-comment" %tr %td= simple_format comment.body - if @problem.comments_allowed? -- libgit2 0.21.2