lib/gitdocs/views/_header.haml in gitdocs-0.5.0.pre7 vs lib/gitdocs/views/_header.haml in gitdocs-0.5.0
- old
+ new
@@ -9,6 +9,8 @@
%li
%a{ href: '?mode=edit' } Edit
%li
%a{ href: '?mode=revisions' } Revisions
%li
- %a.delete{ href: '?mode=delete' } Delete
+ %form{ method: 'POST', :'data-confirm-submit' => 'Are you sure?' }
+ %input{ name: '_method', type: 'hidden', value: 'delete' }
+ %input.btn.danger{ type: 'submit', value: 'Delete' }