-
Notifications
You must be signed in to change notification settings - Fork 433
/
binaries.html.haml
48 lines (46 loc) · 2.96 KB
/
binaries.html.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
.card
= render partial: 'tabs', locals: { package: @package, project: @project }
.card-body
%h3 State of #{@repository} for #{@project} / #{@package_name}
%ul.list-inline
- if @configuration['download_url']
= render partial: 'shared/download_repository_link', locals: { project: @project, repository: @repository,
download_url: @configuration['download_url'] }
- unless @buildresults.empty?
%li.list-inline-item
= link_to('#', data: { toggle: 'modal', target: '#delete-all-binaries-modal' }, title: 'Delete all built binaries') do
%i.fas.fa-times-circle.text-danger
Delete all built binaries
= render(partial: 'delete_all_binaries_dialog', locals: { project: @project, package: @package_name, repository: @repository })
- @buildresults.each do |result|
%h5.bg-light.p-2.mb-0
= webui2_repository_status_icon(status: result[:repocode].to_s, html_class: 'fa-xs')
= result[:arch]
- if result[:binaries].empty?
%p.pl-2
%i No built binaries
- else
.table-responsive
%table.table.table-hover.table-sm
%thead
%tbody
- result[:binaries].each do |binary|
%tr
%td.px-2 #{binary[:filename]} (#{number_to_human_size(binary[:size])})
%td.text-nowrap.text-right.px-2
- render_partial = render partial: 'webui2/webui/package/binaries/binaries_actions', locals: { project: @project,
package_name: @package_name,
package: @package,
binary: binary,
repository: @repository,
architecture: result[:arch] }
.d-none.d-sm-block
= render_partial
.d-sm-none
%i.fas.fa-ellipsis-h.text-secondary{ data: { toggle: 'popover', html: 'true', content: "#{render_partial}" } }
%ul.list-inline
- if User.current.can_modify?(@package)
= render partial: 'webui2/webui/package/binaries/trigger_rebuild_wipe_binaries', locals: { result: result, project: @project,
package: @package_name, repository: @repository }
= render partial: 'webui2/webui/package/binaries/show_statistics_job_history_build_reason', locals: { result: result,
project: @project, package: @package_name, repository: @repository }