lib/gitdocs/views/revisions.haml in gitdocs-0.5.0 vs lib/gitdocs/views/revisions.haml in gitdocs-0.6.0

- old
+ new

@@ -1,11 +1,11 @@ - @title = root -= haml(:_header, locals: { file: true, idx: idx }) += haml(:_header, locals: { file: true }) - if revisions && revisions.any? - %table#revisions.condensed-table.zebra-striped + %table.condensed-table.zebra-striped#revisions %thead %tr %th Commit %th Subject %th Author @@ -20,10 +20,10 @@ = r[:commit] %td.subject= r[:subject] %td.author= r[:author] %td.date.reldate= r[:date].iso8601 %td.revert - %form{ method: 'POST', :'data-confirm-submit' => 'Are you sure?' } + %form{ method: 'POST', 'data-confirm-submit' => 'Are you sure?' } %input{ name: '_method', type: 'hidden', value: 'put' } %input.btn{ type: 'submit', name: 'revision', value: r[:commit] } - if revisions.empty? %p No revisions for this file could be found.