Sha256: fead422afa00f1867dc41730220881a15ec5c2800271f34bf6d89554c7fd04e2

Contents?: true

Size: 1.05 KB

Versions: 5

Compression:

Stored size: 1.05 KB

Contents

!!!
%html
  %head
    %title== Overview: #{opts[:title]}
    %link{:rel => "stylesheet", :href => "/stylesheet.css"}
  %body
    #main_container
      = haml :_navbar, :locals => {:root => root, :selected => "commits"}
      #main
        - page = 1 if page == 0
        - start = (repo.size - 1) - ((page - 1) * 20)
        %br/
        - if page > 1
          %a.pagebutton{:href => "/commits/#{page-1}/"} Previous Page
        - if start > 21
          %a.pagebutton{:href => "/commits/#{page+1}/"} Next Page
        %table.shortlog
          %tr
            %th.index Rev. #
            %th.date Date
            %th.user User
            %th.description Description
          - (start).downto(start - 21) do |val|
            - cs = repo[val]
            %tr
              %td.index= val
              %td.date= rel_date Time.at(cs.date.first)
              - user = cs.user =~ /\@/ ? cs.user.split(/@/).first : cs.user
              %td.user= user
              %td.description
                = link_to_changeset root, cs.node_id.hexlify, :text => cs.description
      

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
amp-0.5.3 lib/amp/server/fancy_views/commits.haml
amp-0.5.2 lib/amp/server/fancy_views/commits.haml
amp-0.5.1 lib/amp/server/fancy_views/commits.haml
amp-pure-0.5.0 lib/amp/server/fancy_views/commits.haml
amp-0.5.0 lib/amp/server/fancy_views/commits.haml