:ruby
  @pagetitle = "Job history of #{@project} / #{@package}"
  @metarobots = 'index,nofollow'
  job_history_breadcrumb(@project, @package, 'Job history')

= render partial: 'webui/package/tabs'

%h3= @pagetitle
%h6.subtitle
  Repository / Architecture: #{params[:repository]} / #{params[:arch]}

%table#jobhistory-table
  %thead
    %th Revision
    %th Time (not formatted)
    %th Time
    %th Reason
    %th Status Code
    %th Build Time (not formatted)
    %th Build Time
    %th Worker
    %th
  %tbody
    - @jobshistory.each do |jobhistory|
      %tr
        %td
          = jobhistory.revision
        %td
          = jobhistory.ready_time
        %td
          = time_tag(Time.at(jobhistory.ready_time))
        %td
          - if jobhistory.reason == 'source change'
            = link_to(jobhistory.reason, package_rdiff_path(project: @project.name, package: @package.name, orev: jobhistory.prev_srcmd5, rev: jobhistory.srcmd5))
          - else
            = jobhistory.reason
        %td{ class: "status_#{jobhistory.code}" }
          = jobhistory.code
        %td
          = jobhistory.total_time
        %td
          = humanize_time(jobhistory.total_time)
        %td
          = jobhistory.worker_id
        %td
          = link_to_package_from_job_history(@project, @package,
                                             jobhistory, @is_link)
