rosa-build/app/views/projects/build_lists/show.html.slim

205 lines
7.9 KiB
Plaintext

- title = title_object(@build_list.project)
- set_meta_tags title: [title, t('activerecord.models.build_list')]
div[ ng-controller='BuildListController'
ng-cloak =true ]
.row.top-space
= hidden_field_tag :build_list_id, @build_list.id
.col-md-12
.alert.pull-left ng-class='"alert-" + build_list.status_color'
p
| {{build_list.human_status | i18n}}
p.alert.alert-info.pull-right title = '{{build_list.updated_at_utc}}'
| {{ build_list.updated_at | amDateFormat:'ddd, D MMM YYYY, HH:mm' }} (
span am-time-ago = 'build_list.updated_at'
| )
.row
.col-md-8
= render 'packages'
.col-md-4
= render 'shared/build_results', subject: @build_list
.row.top-space ng-show="build_list.status == #{BuildList::BUILD_STARTED}"
.col-md-12
= render 'shared/log', { build_started: true, get_log_path: log_build_list_path(@build_list) }
.row.top-space
.col-md-10
rd-widget
rd-widget-header title=t('layout.build_lists.main_data')
rd-widget-body class="no-padding"
table.table.table-borderless.table-condensed
tr
td= t('activerecord.attributes.build_list.container_path')
td
- url = container_url
= link_to url, url,
'ng-show' => "build_list.container_status == #{ BuildList::BUILD_PUBLISHED }"
p ng-show="build_list.container_status == #{ BuildList::BUILD_PUBLISH }"
= t('layout.build_lists.creating')
tr
td= t('activerecord.attributes.build_list.project')
td
a href=project_build_lists_path(@build_list.project.name_with_owner)
= @build_list.project.name_with_owner
tr
td= t('activerecord.attributes.build_list.id')
td= @build_list.id
tr
td= t('activerecord.attributes.build_list.user')
td= link_to @build_list.user.try(:fullname), @build_list.user
tr ng-show='build_list.publisher'
td= t('activerecord.attributes.build_list.publisher')
td
a ng-href='{{build_list.publisher.path}}'
| {{build_list.publisher.fullname}}
tr
td= t('activerecord.attributes.build_list.build_for_platform')
td
- if bfp = @build_list.build_for_platform
= link_to bfp.name, bfp
- else
= t('layout.build_lists.platform_deleted')
tr
td= t('activerecord.attributes.build_list.save_to_repository')
td
= link_to "#{@build_list.save_to_platform.name}/#{@build_list.save_to_repository.name}",
[@build_list.save_to_platform, @build_list.save_to_repository]
tr
td= t('activerecord.attributes.build_list.include_testing_subrepository')
td= t("layout.#{@build_list.include_testing_subrepository?}_")
tr
td= t('activerecord.attributes.build_list.include_repos')
td= Repository.where(id: @build_list.include_repos).pluck(:name).join(', ')
tr
td= t('activerecord.attributes.build_list.auto_publish_status')
td= t("layout.build_lists.auto_publish_status.#{@build_list.auto_publish_status}")
tr
td= t('activerecord.attributes.build_list.auto_create_container')
td= t("layout.#{@build_list.auto_create_container?}_")
tr
td= t('activerecord.attributes.build_list.use_cached_chroot')
td= t("layout.#{@build_list.use_cached_chroot?}_")
tr
td= t('activerecord.attributes.build_list.use_extra_tests')
td= t("layout.#{@build_list.use_extra_tests?}_")
tr
td= t('activerecord.attributes.build_list.save_buildroot')
td= t("layout.#{@build_list.save_buildroot?}_")
tr
td= 'Enable 32bit'
td= @build_list.enable_32bit
tr
td= t('activerecord.attributes.build_list.project_version')
td= @build_list.project_version
tr
td= t('diff')
td= build_list_version_link(@build_list)
tr
td= t('activerecord.attributes.build_list.arch')
td= @build_list.arch.name
tr
td= t('activerecord.attributes.build_list.hostname')
td= @build_list.hostname
tr.bg-danger ng-show = 'build_list.fail_reason'
td= t('activerecord.attributes.build_list.fail_reason')
td
| {{build_list.fail_reason}}
tr
td= t('activerecord.attributes.build_list.updated_at')
td
| {{build_list.updated_at_utc}}
- if @build_list.external_nodes.present?
tr
td= t('activerecord.attributes.build_list.external_nodes')
td= I18n.t("layout.build_lists.external_nodes.#{@build_list.external_nodes}")
tr ng-show = 'build_list.builder'
td= t('activerecord.attributes.build_list.builder')
td
a ng-href='{{build_list.builder.path}}'
| {{build_list.builder.fullname}}
tr
td= t('activerecord.attributes.build_list.is_circle')
td= t("layout.#{@build_list.is_circle?}_")
- if @build_list.extra_build_lists.present? || @build_list.extra_repositories.present?
tr
td= t('activerecord.attributes.build_list.extra_repositories')
td
- Repository.where(id: @build_list.extra_repositories).each do |repo|
p
= link_to "#{repo.platform.name}/#{repo.name}", [repo.platform, repo]
- BuildList.where(id: @build_list.extra_build_lists).each do |bl|
p
= link_to "#{bl.id} (#{bl.project.name} - #{bl.arch.name})", bl
- if @build_list.extra_params.present?
tr
td= t('activerecord.attributes.build_list.extra_params.label')
td
- @build_list.extra_params.each do |k, v|
tr
td
i
= t("activerecord.attributes.build_list.extra_params.#{k}")
td
= v
- if @build_list.mass_build_id.present?
tr
td= t('activerecord.attributes.mass_build_id')
td
= link_to @build_list.mass_build.name,
platform_mass_build_path(@build_list.save_to_platform, @build_list.mass_build_id)
tr ng-show='build_list.human_duration'
td
td
| {{build_list.human_duration }}
tr.alert.alert-danger ng-hide='build_list.extra_build_lists_published'
td colspan=2
= t('layout.build_lists.publish_with_extra_fail')
- unless @build_list.valid_branch_for_publish?
tr.alert.alert-danger
td colspan=2
= t('layout.build_lists.wrong_branch_for_publish_html',
branch: @build_list.save_to_repository.publish_builds_only_from_branch)
tr.alert.alert-danger ng-show='build_list.can_publish && build_list.can_publish_in_future && !build_list.can_publish_into_repository'
td colspan=2
= t('flash.build_list.not_all_build_lists_success')
.col-md-2
rd-widget
rd-widget-header title="Actions"
rd-widget-body
= form_for @build_list, url: publish_build_list_path(@build_list), html: {class: :"form-inline"} do |f|
.buttons-block
= render 'buttons', build_list: @build_list