Sha256: 117c8e32e09a0c9a413741d2e30ad5a1b11ca973ddbd2c212b540ca59e58e89f

Contents?: true

Size: 845 Bytes

Versions: 3

Compression:

Stored size: 845 Bytes

Contents

- @title = root

= haml(:_header, locals: { file: true })

- if revisions && revisions.any?
  %table.condensed-table.zebra-striped#revisions
    %thead
      %tr
        %th Commit
        %th Subject
        %th Author
        %th Committed
        %th Revert

    %tbody
      - revisions.each do |r|
        %tr
          %td.commit
            %a{ href: "?revision=#{r[:commit]}" }
              = 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?' }
              %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.

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gitdocs-0.6.2 lib/gitdocs/views/revisions.haml
gitdocs-0.6.1 lib/gitdocs/views/revisions.haml
gitdocs-0.6.0 lib/gitdocs/views/revisions.haml