Commit c611ea513ceff4036d0e184959628f1ac39c7ef1
1 parent
11605c2d
Exists in
master
and in
4 other branches
Fixed styling for delete button of snippet
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
app/views/projects/snippets/_form.html.haml
... | ... | @@ -31,10 +31,10 @@ |
31 | 31 | = f.submit 'Create snippet', class: "btn-create btn" |
32 | 32 | - else |
33 | 33 | = f.submit 'Save', class: "btn-save btn" |
34 | - = link_to "Cancel", project_snippets_path(@project), class: " btn btn-cancel" | |
35 | - - unless @snippet.new_record? | |
36 | - .pull-right= link_to 'Destroy', project_snippet_path(@project, @snippet), confirm: 'Are you sure?', method: :delete, class: "btn pull-right danger delete-snippet", id: "destroy_snippet_#{@snippet.id}" | |
34 | + = link_to "Cancel", project_snippets_path(@project), class: "btn btn-cancel" | |
37 | 35 | |
36 | + - unless @snippet.new_record? | |
37 | + = link_to 'Remove snippet', project_snippet_path(@project, @snippet), confirm: 'Are you sure?', method: :delete, class: "btn pull-right btn-remove delete-snippet prepend-left-10", id: "destroy_snippet_#{@snippet.id}" | |
38 | 38 | |
39 | 39 | :javascript |
40 | 40 | var editor = ace.edit("editor"); | ... | ... |