gitlabhq/gitlab-ci

View on GitHub
app/views/admin/builds/index.html.haml

Summary

Maintainability
Test Coverage
%ul.nav.nav-tabs.append-bottom-20
  %li{class: ("active" if @scope.nil?)}
    = link_to 'All builds', admin_builds_path
  
  %li{class: ("active" if @scope == "pending")}
    = link_to "Pending", admin_builds_path(scope: :pending)

  %li{class: ("active" if @scope == "running")}
    = link_to "Running", admin_builds_path(scope: :running)


%table.builds
  %thead
    %tr
      %th Build
      %th Status
      %th Commit
      %th Runner
      %th Project
      %th Message
      %th Branch
      %th Duration
      %th Finished at

  = render @builds

= paginate @builds