lib/gitdocs/views/_header.haml in gitdocs-0.5.0 vs lib/gitdocs/views/_header.haml in gitdocs-0.6.0
- old
+ new
@@ -1,16 +1,16 @@
%h2.path
%span.path= request.path_info.empty? ? '/' : request.path_info
- if file
%ul.tabs
%li
- %a{ href: "#{request.path}" } View
+ %a{ href: request.path } View
%li
%a{ href: '?mode=raw' } Raw
%li
%a{ href: '?mode=edit' } Edit
%li
%a{ href: '?mode=revisions' } Revisions
%li
- %form{ method: 'POST', :'data-confirm-submit' => 'Are you sure?' }
+ %form{ method: 'POST', 'data-confirm-submit' => 'Are you sure?' }
%input{ name: '_method', type: 'hidden', value: 'delete' }
%input.btn.danger{ type: 'submit', value: 'Delete' }