Sha256: 1694ead80160c4e47e6098fb7813c8dd7c8693c3815ed9f05e4f1ebc524fce15

Contents?: true

Size: 784 Bytes

Versions: 1

Compression:

Stored size: 784 Bytes

Contents

= partial :menu, :locals => {:branch => @branch, :active => :commits}
- current_time = Time.now
%table#commits
  %tr
    %th SHA
    %th Age
    %th Author
    %th Message
  - @commits.each do |commit|
    %tr
      %td.sha
        %a{:href => "/commit/#{commit.sha}"} 
          = commit.sha[0..7]
      %td.age
        = commit.date.relative_to(current_time)
      %td.name
        = commit.author.name
      %td.message
        = commit.message.shortify(80)
%div.pagination
  - if @page == 0
    %span Newer
  - else
    - if @page == 1
      %a{:href => "/commits/#{@branch}"} Newer
    -else
      %a{:href => "/commits/#{@branch}?page=#{@page - 1}"} Newer
  - if @commits.size == @per_page
    %a{:href => "/commits/#{@branch}?page=#{@page + 1}"} Older
  - else
    %span Older

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
git-bro-0.2.0 sinatra/views/commits.haml