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

- old
+ new

@@ -1,28 +1,28 @@ - @title = root -= partial("header", :locals => { :parent => parent, :file => true, :idx => idx }) += partial('header', locals: { file: true, idx: idx }) - if revisions && revisions.any? - %table.condensed-table.zebra-striped + %table#revisions.condensed-table.zebra-striped %thead %tr %th Commit %th Subject %th Author %th Committed %th Revert %tbody - - revisions.each_with_index do |r, i| + - revisions.each do |r| %tr %td.commit - %a{ :href => "?revision=#{r[:commit]}" } + %a{ href: "?revision=#{r[:commit]}" } = r[:commit] %td.subject= r[:subject] %td.author= r[:author] - %td.date.reldate= r[:date] + %td.date.reldate= r[:date].iso8601 %td.revert - %a{ :href => "?mode=revert&revision=#{r[:commit]}", :onclick => "javascript:return confirm('Are you sure?')" } + %a{ href: "?mode=revert&revision=#{r[:commit]}" } = r[:commit] - if revisions.empty? %p No revisions for this file could be found.