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