lib/gitdocs/views/edit.haml in gitdocs-0.5.0.pre6 vs lib/gitdocs/views/edit.haml in gitdocs-0.5.0.pre7

- old
+ new

@@ -1,15 +1,14 @@ - @title = root -= partial("header", :locals => { :parent => parent, :file => true, :idx => idx }) += partial('header', locals: { file: true, idx: idx }) -%form{ :class => "edit", :action => "/#{idx}#{request.path_info}?mode=save", :method => "post", :style => "display:none;" } +%form.edit{ action: "/#{idx}#{request.path_info}?mode=save", method: 'POST', style: 'display:none;' } #editor - %textarea{ :id => 'data', :name => "data" }= preserve contents + %textarea#data{ name: 'data' }= preserve contents .clearfix - %textarea{ :id => 'message', :name => 'message', :class => 'span16', :placeholder => 'Optional commit message.' } - %input{ :type => 'submit', :value => "Save", :class => "btn primary" } - %a{ :href => "/#{idx}#{request.path_info}", :class => "btn secondary" } Cancel - %input{ :type => 'hidden', :class => 'filename', :value => request.path_info } + %textarea.span16#message{ name: 'message', placeholder: 'Optional commit message.' } + %input.btn.primary{ type: 'submit', value: 'Save' } + %a.btn.secondary{ href: "/#{idx}#{request.path_info}" } Cancel + %input.filename{ type: 'hidden', value: request.path_info } -= partial("ace_scripts") - += partial('ace_scripts')