forked from openSUSE/open-build-service
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Daniel Donisa <daniel.donisa@suse.com> Co-authored-by: Dario Leidi <dleidi@suse.com> Co-authored-by: Eduardo Navarro <enavarro@suse.com> Co-authored-by: Jacob Michalskie <jacob.michalskie@suse.com> Co-authored-by: Lukas Krause <lkrause@suse.de> Co-authored-by: Rubhan Azeem <rubhan.azeem@suse.com>
- Loading branch information
1 parent
7d524bb
commit 9d01d07
Showing
3 changed files
with
40 additions
and
3 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
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,37 @@ | ||
.row | ||
.col-auto | ||
%i.fas.fa-code-pull-request | ||
.col | ||
.d-flex.justify-content-between | ||
%strong | ||
- if bs_request.bs_request_actions.count == 1 | ||
= bs_request.bs_request_actions.first.class.sti_name.to_s.humanize.titleize | ||
- else | ||
Multiple Action | ||
Request #{bs_request.number} | ||
= render BsRequestStateBadgeComponent.new(state: bs_request.state, css_class: 'mb-auto') | ||
%div | ||
- if bs_request.bs_request_actions.count == 1 | ||
- if bs_request.bs_request_actions.first.source_project.present? | ||
= render BsRequestActionSourceAndTargetComponent.new(bs_request) | ||
%div | ||
= render partial: 'webui/shared/collapsible_text', locals: { text: bs_request.description } | ||
.text-end | ||
%span | ||
= render AvatarComponent.new(name: bs_request.creator, email: User.find_by_login(bs_request.creator).email, custom_css: 'align-text-bottom') | ||
= bs_request.creator | ||
created | ||
= render TimeComponent.new(time: bs_request.created_at) | ||
- unless bs_request.bs_request_actions.count == 1 | ||
%span.ps-2 | ||
%i.fas.fa-list-check | ||
= bs_request.bs_request_actions.count | ||
actions | ||
- if bs_request.comments.any? | ||
%span.ps-2 | ||
%i.fas.fa-comment | ||
= pluralize(bs_request.comments.count, 'comment') | ||
- if bs_request.reviews.any? | ||
%span.ps-2 | ||
%i.fas.fa-magnifying-glass | ||
= pluralize(bs_request.reviews.count, 'reviews') |
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