-
Notifications
You must be signed in to change notification settings - Fork 434
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6202 from mdeniz/staging_workflow/saray_list_infos
Show infos section on Staging Workflow layout
- Loading branch information
Showing
12 changed files
with
122 additions
and
7 deletions.
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.dashed-list { | ||
display: flex; | ||
flex-wrap: wrap; | ||
list-style: none; | ||
} | ||
|
||
.dashed-list-item + .dashed-list-item::before { | ||
display: inline-block; | ||
content: "-"; | ||
} | ||
|
||
.dashed-list-item + .dashed-list-item { | ||
padding-left: 0.25rem; | ||
} |
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
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
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
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
7 changes: 7 additions & 0 deletions
7
src/api/app/views/webui2/webui/staging_workflows/_empty_projects_list.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
- if projects.empty? | ||
None | ||
- else | ||
%ol.dashed-list.pl-2 | ||
- projects.sort.each do |project| | ||
%li.dashed-list-item | ||
= link_to(project.staging_identifier, project_show_path(project.name)) |
16 changes: 15 additions & 1 deletion
16
src/api/app/views/webui2/webui/staging_workflows/_infos.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,4 +1,18 @@ | ||
.card.mb-3 | ||
%h5.card-header Infos | ||
.card-body | ||
Placeholder for the content | ||
%dl | ||
%dt Empty projects: | ||
%dd= render 'empty_projects_list', projects: empty_projects | ||
|
||
%dt Backlog: | ||
-# TODO: add link to see the full list of the backlog of requests | ||
%dd= render 'requests_list', requests: unassigned_requests, more_requests: more_unassigned_requests | ||
|
||
%dt Ready: | ||
-# TODO: add link to see the full list of ready requests | ||
%dd= render 'requests_list', requests: ready_requests, more_requests: more_ready_requests | ||
|
||
%dt Ignored: | ||
-# TODO: add link when IgnoredRequest model is done | ||
%dd= render 'requests_list', requests: ignored_requests, more_requests: more_ignored_requests |
8 changes: 8 additions & 0 deletions
8
src/api/app/views/webui2/webui/staging_workflows/_requests_list.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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
- if requests.empty? | ||
Empty | ||
- else | ||
%ul.pl-2.list-unstyled | ||
- requests.each do |request| | ||
%li= link_to(elide(request.first_target_package, 19), request_show_path(request.number)) | ||
- unless more_requests.zero? | ||
%li ... #{more_requests} more |
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
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
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
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