-
Notifications
You must be signed in to change notification settings - Fork 434
/
monitor.html.haml
39 lines (38 loc) · 1.66 KB
/
monitor.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
:ruby
@pagetitle = "Show #{@project}"
@layouttype = 'custom'
.card.mb-3
= render partial: 'tabs', locals: { project: @project }
.card-body#project-monitor
= render partial: 'monitor_control',
locals: { project: @project, activate_client_search: @activate_client_search,
status: @avail_status_values, repositories: @avail_repo_values, architectures: @avail_arch_values,
repository_filter: @repo_filter, architecture_filter: @arch_filter, status_filter: @status_filter }
.row.mt-4
.col-md-12.obs-dataTable
%table.table.table-sm.table-striped.table-bordered.text-nowrap.w-100#project-monitor-table
%thead.header
%tr
%th
- @repohash.sort.each do |repo, archlist|
- next if archlist.empty?
%th.text-center{ colspan: archlist.length }
= repo
%tr
%th
- @repohash.sort.each do |repo, archlist|
- archlist.sort.each do |arch|
%th.text-center
= webui2_repository_status_icon(status: @repostatushash[repo][arch], html_class: 'fa-xs mr-1')
= arch
%tbody
- @packagenames.each do |packname|
%tr
%td
= link_to word_break(packname, 40), controller: :package, action: :show, package: packname, project: @project.to_s
- @repohash.sort.each do |repo, archlist|
- archlist.sort.each do |arch|
%td.text-center
= webui2_arch_repo_table_cell(repo, arch, packname, nil, false)
:javascript
setupProjectMonitor();