Commit 1a50c2e11a7a7026fd6f4bfd21900fd038f2f132
1 parent
0b3cda24
Exists in
master
and in
1 other branch
move duplicated link outside condition
Showing
1 changed file
with
1 additions
and
2 deletions
Show diff stats
app/views/problems/show.html.haml
... | ... | @@ -34,11 +34,10 @@ |
34 | 34 | %span.comment-info |
35 | 35 | = time_ago_in_words(comment.created_at, true) << " ago by " |
36 | 36 | = link_to comment.user.email, user_path(comment.user) |
37 | - %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" | |
38 | 37 | - else |
39 | 38 | %span.comment-info |
40 | 39 | = time_ago_in_words(comment.created_at, true) << " ago by [Unknown User]" |
41 | - %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" | |
40 | + %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" | |
42 | 41 | %tr |
43 | 42 | %td= simple_format comment.body |
44 | 43 | - if @problem.comments_allowed? | ... | ... |