Skip to content

Commit

Permalink
Make the headers and padding smaller
Browse files Browse the repository at this point in the history
  • Loading branch information
hellcp-work committed Nov 24, 2023
1 parent 0cd3c7d commit ea450e6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions src/api/app/components/patchinfo_component.html.haml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.pb-3
%h4
.pb-1
%h5
= link_to(@path) do
= @patchinfo['summary']
= category
Expand All @@ -21,15 +21,15 @@
\##{@patchinfo['incident']}

- if @patchinfo['description'].present?
%h5 Patch description
%h6 Patch description
%p= @patchinfo['description']

- if @patchinfo['message'].present?
%h5 Pop-up message
%h6 Pop-up message
%p= @patchinfo['message']

- if @patchinfo['releasetarget'].present?
%h5 Targeted for release in the following projects
%h6 Targeted for release in the following projects
%ul
- @patchinfo['releasetarget'].each do |releasetarget|
%li
Expand All @@ -43,19 +43,19 @@
= releasetarget['repository']

- if @patchinfo['binary'].present?
%h5 Affected binaries
%h6 Affected binaries
%ul
- @patchinfo['binary'].each do |binary|
%li= binary

- if @patchinfo['package'].present?
%h5 Affected packages
%h6 Affected packages
%ul
- @patchinfo['package'].each do |package|
%li= package

- if @patchinfo['issue'].present?
%h5 Issues related to the patch
%h6 Issues related to the patch
%ul
- @patchinfo['issue'].each do |issue_hash|
- if (issue = Issue.find_or_create_by_name_and_tracker(issue_hash['id'], issue_hash['tracker']))
Expand Down
4 changes: 2 additions & 2 deletions src/api/app/views/webui/request/beta_show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
.card.p-4
#description-text
- if @bs_request.description.present?
%h3.mb-4 Description
%h4.mb-3 Description
= render partial: 'webui/shared/collapsible_text', locals: { text: @bs_request.description, extra_css_classes: 'full-width' }
- else
%i No description set
- if @bs_request.bs_request_actions.exists?(source_package: 'patchinfo')
#patchinfo-details
%h3.my-4 Patches
%h4.my-3 Patches
- @bs_request.bs_request_actions.where(source_package: 'patchinfo').each do |patchinfo|
- patchinfo_package = Package.find_by_project_and_name(patchinfo.source_project, patchinfo.source_package)
- patchinfo_text = patchinfo_package.source_file('_patchinfo', rev: patchinfo.source_rev || patchinfo_package.rev)
Expand Down

0 comments on commit ea450e6

Please sign in to comment.