-
Notifications
You must be signed in to change notification settings - Fork 433
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
List build problems in staging project page
List the build problems in the following format: PACKAGE_NAME: STATUS1(ARCH1, ARCH2,...) STATUS2(ARCH3,..) ... openQA problems are not included. Co-authored-by: Ana María Martínez Gómez <ammartinez@suse.de>
- Loading branch information
1 parent
3177dbb
commit f0c46fe
Showing
3 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,7 @@ | |
} | ||
} | ||
|
||
ul .table-list-group-item { | ||
padding: 0.5rem 0.75rem; | ||
background-color: transparent; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 22 additions & 1 deletion
23
src/api/app/views/webui2/webui/staging/workflows/_problems.html.haml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,22 @@ | ||
Placeholder for the content | ||
- if project.problems.empty? | ||
.text-center | ||
%i.fas.fa-check-circle.fa-2x.text-success | ||
- else | ||
%ul.list-group.list-group-flush | ||
- project.problems.each do |name, states| | ||
%li.list-group-item.table-list-group-item | ||
= link_to("#{name}:", package_show_path(package: name, project: project)) | ||
- states.each do |state, values| | ||
= state | ||
= surround '(', ')' do | ||
- values.each do |value| | ||
- coma = ', ' unless values.last == value | ||
= succeed coma do | ||
- if state == 'unresolvable' | ||
= value[:arch] | ||
- else | ||
= link_to(value[:arch], package_live_build_log_path(package: name, | ||
repository: value[:repository], | ||
project: project, | ||
arch: value[:arch])) | ||
|