From 51fbe53d0dd10061960010044304339918844fd7 Mon Sep 17 00:00:00 2001 From: Paul Gascou-Vaillancourt <paul.gascvail@gmail.com> Date: Fri, 23 Sep 2022 10:09:58 -0400 Subject: [PATCH] Migrate custom attributes card to ViewComponent Changelog: changed --- app/views/shared/_custom_attributes.html.haml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/app/views/shared/_custom_attributes.html.haml b/app/views/shared/_custom_attributes.html.haml index 966ab8e3cb1fa..6e5f1cb063c4b 100644 --- a/app/views/shared/_custom_attributes.html.haml +++ b/app/views/shared/_custom_attributes.html.haml @@ -1,12 +1,13 @@ - return unless custom_attributes.present? -.card - .card-header += render Pajamas::CardComponent.new(body_options: { class: 'gl-py-0' }) do |c| + - c.header do = link_to(_('Custom Attributes'), help_page_path('api/custom_attributes.md')) - %ul.content-list - - custom_attributes.each do |custom_attribute| - %li - %span.light - = custom_attribute.key - %strong - = custom_attribute.value + - c.body do + %ul.content-list + - custom_attributes.each do |custom_attribute| + %li + %span.light + = custom_attribute.key + %strong + = custom_attribute.value -- GitLab