diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-05-27 15:43:44 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-05-27 15:43:44 +0300 |
commit | 246989bcca07e71bcec37886d0303a22e4da8420 (patch) | |
tree | d513615820ab83cbb46a7ec4c740842a0f6742bf /app/views/snippets | |
parent | 8ab44f688f58f1a4fa07fb715f5a4958bcaf4ad4 (diff) | |
download | gitlab-ce-246989bcca07e71bcec37886d0303a22e4da8420.tar.gz |
more descriptive confirmation messages
Diffstat (limited to 'app/views/snippets')
-rw-r--r-- | app/views/snippets/_form.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/snippets/_form.html.haml b/app/views/snippets/_form.html.haml index 77162cdcde3..993a20058c6 100644 --- a/app/views/snippets/_form.html.haml +++ b/app/views/snippets/_form.html.haml @@ -30,7 +30,7 @@ = f.submit 'Save', class: "btn-save btn" = link_to "Cancel", project_snippets_path(@project), class: " btn" - unless @snippet.new_record? - .pull-right= link_to 'Destroy', [@project, @snippet], confirm: 'Are you sure?', method: :delete, class: "btn pull-right danger delete-snippet", id: "destroy_snippet_#{@snippet.id}" + .pull-right= link_to 'Destroy', [@project, @snippet], confirm: 'Removed snippet cannot be restored! Are you sure?', method: :delete, class: "btn pull-right danger delete-snippet", id: "destroy_snippet_#{@snippet.id}" :javascript |