debian-mirror-gitlab/app/views/projects/builds/show.html.haml

71 lines
2.6 KiB
Text
Raw Normal View History

2015-12-23 02:04:40 +05:30
- page_title "#{@build.name} (##{@build.id})", "Builds"
2016-06-02 11:05:42 +05:30
- trace_with_state = @build.trace_with_state
- header_title project_title(@project, "Builds", project_builds_path(@project))
2015-11-26 14:37:03 +05:30
2015-10-24 18:46:33 +05:30
.build-page
= render "header"
2015-10-24 18:46:33 +05:30
- builds = @build.pipeline.builds.latest.to_a
2016-06-02 11:05:42 +05:30
- if builds.size > 1
%ul.nav-links.no-top.no-bottom
2016-06-02 11:05:42 +05:30
- builds.each do |build|
2015-10-24 18:46:33 +05:30
%li{class: ('active' if build == @build) }
= link_to namespace_project_build_path(@project.namespace, @project, build) do
= ci_icon_for_status(build.status)
%span
- if build.name
= build.name
- else
= build.id
2015-11-26 14:37:03 +05:30
- if @build.retried?
2015-10-24 18:46:33 +05:30
%li.active
%a
Build ##{@build.id}
·
%i.fa.fa-warning
This build was retried.
2016-06-02 11:05:42 +05:30
- if @build.stuck?
2015-10-24 18:46:33 +05:30
- unless @build.any_runners_online?
.bs-callout.bs-callout-warning
%p
- if no_runners_for_project?(@build.project)
This build is stuck, because the project doesn't have any runners online assigned to it.
- elsif @build.tags.any?
This build is stuck, because you don't have any active runners online with any of these tags assigned to them:
- @build.tags.each do |tag|
%span.label.label-primary
= tag
- else
This build is stuck, because you don't have any active runners that can run this build.
%br
Go to
2015-12-23 02:04:40 +05:30
= link_to namespace_project_runners_path(@build.project.namespace, @build.project) do
2015-10-24 18:46:33 +05:30
Runners page
.prepend-top-default
- if @build.active?
.autoscroll-container
%button.btn.btn-success.btn-sm#autoscroll-button{:type => "button", :data => {:state => 'disabled'}} enable autoscroll
- if @build.erased?
.erased.alert.alert-warning
- erased_by = "by #{link_to @build.erased_by.name, user_path(@build.erased_by)}" if @build.erased_by
Build has been erased #{erased_by.html_safe} #{time_ago_with_tooltip(@build.erased_at)}
- else
2016-06-22 15:30:34 +05:30
#js-build-scroll.scroll-controls
= link_to '#build-trace', class: 'btn' do
%i.fa.fa-angle-up
= link_to '#down-build-trace', class: 'btn' do
%i.fa.fa-angle-down
%pre.build-trace#build-trace
%code.bash.js-build-output
= icon("refresh spin", class: "js-build-refresh")
2015-10-24 18:46:33 +05:30
#down-build-trace
2015-10-24 18:46:33 +05:30
= render "sidebar"
2015-10-24 18:46:33 +05:30
:javascript
new CiBuild("#{namespace_project_build_url(@project.namespace, @project, @build)}", "#{@build.status}", "#{trace_with_state[:state]}")