jbox-web/redmine_jenkins

View on GitHub
app/views/jenkins/_jobs_list.html.haml

Summary

Maintainability
Test Coverage
- if jobs.empty?
  .nodata= l(:label_no_data)

- else

  .flash-messages

  %table{ class: 'table table-hover' }
    %thead
      %tr
        %th= l(:label_job_name)
        %th= l(:label_latest_build)
        %th= l(:label_job_state)
        %th= l(:label_job_duration)
        %th= l(:label_last_changesets)
        %th= l(:label_job_history)
        %th

    %tbody
      - jobs.each do |job|
        = render partial: 'jenkins_jobs/job_solo', locals: { job: job }

  :javascript
    $(document).ready(function() { initModalBoxes(modals); });