Sha256: 73a5485f38a90cc03a3af05b656785a29f2b3af9acb6f8ed4f2fdfbda9cf8c14

Contents?: true

Size: 994 Bytes

Versions: 2

Compression:

Stored size: 994 Bytes

Contents


= haml :"repos/menu" , locals:{ repo: repo, active: "builds", build: nil}

.title
  %h2#repo-name= repo.name
  %h4= repo.url

.panel.panel-default
  .panel-heading Builds
  .panel-body

  %table.table
    %thead
      %tr
        %th Build
        %th Message
        %th Commit
        %th Duration
        %th Finished
    %tbody

      - builds.each do |build|

        %tr.build-row
          %td
            %a{href: "/repos/#{repo.name}/builds/#{build.id}"}
              %span{class: status_class(build['status']) }
              = build['_id'].to_s[0..7]

          %td
            = build.commit.message.split("\n")[0]
          %td
            %a{href: commit_url(repo, build.commit.sha), target: :blank}
              #{build.commit.sha[0..7]}
              - if build.branch.present?
                %strong
                  = "(#{build.branch})"

          %td
            = "#{build.duration.to_i.round(2)} secs"
          %td
            %abbr.timeago{title:build.build_time}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
perkins-0.0.3 lib/perkins/views/builds.haml
perkins-0.0.2 lib/perkins/views/builds.haml