diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-11 21:08:18 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-11 21:08:18 +0000 |
commit | d5012fff67191be53070d024a89195a666a581ed (patch) | |
tree | 08d4334c0202f365a5513dd2147d5a411fe05bcb /app/views | |
parent | 1a2f754734eb189e371e25e685413808f69a7f2c (diff) | |
download | gitlab-ce-d5012fff67191be53070d024a89195a666a581ed.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/projects/issues/_related_branches.html.haml | 34 | ||||
-rw-r--r-- | app/views/projects/ml/experiments/show.html.haml | 5 | ||||
-rw-r--r-- | app/views/shared/issue_type/_details_content.html.haml | 6 |
3 files changed, 28 insertions, 17 deletions
diff --git a/app/views/projects/issues/_related_branches.html.haml b/app/views/projects/issues/_related_branches.html.haml index 466eca2fdb0..d26b0f96992 100644 --- a/app/views/projects/issues/_related_branches.html.haml +++ b/app/views/projects/issues/_related_branches.html.haml @@ -1,12 +1,24 @@ - if @related_branches.any? - %h2.gl-font-lg - = pluralize(@related_branches.size, 'Related Branch') - %ul.related-merge-requests.gl-pl-0.gl-mb-3 - - @related_branches.each do |branch| - %li.gl-display-flex.gl-align-items-center - - if branch[:pipeline_status].present? - %span.related-branch-ci-status - = render 'ci/status/icon', status: branch[:pipeline_status] - %span.related-branch-info - %strong - = link_to branch[:name], branch[:link], class: "ref-name" + - if @related_branches.any? + = render Pajamas::CardComponent.new(card_options: { class: 'gl-bg-gray-10 gl-mt-5 gl-mb-0' }, header_options: { class: 'gl-bg-white gl-pl-5 gl-pr-4 gl-py-4' } , body_options: { class: 'gl-py-3 gl-px-4' }) do |c| + - c.header do + %h3.card-title.h5.gl-my-0.gl-display-flex.gl-align-items-center.gl-flex-grow-1.gl-relative.gl-line-height-24 + = link_to "", "#related-branches", class: "gl-link anchor position-absolute gl-text-decoration-none", "aria-hidden": true + = _('Related branches') + .gl-display-inline-flex.gl-mx-3.gl-text-gray-500 + .gl-display-inline-flex.gl-align-items-center + = sprite_icon('branch', css_class: "gl-mr-2 gl-text-gray-500 gl-icon") + = @related_branches.size + - c.body do + %ul.related-merge-requests.content-list.gl-p-3! + - @related_branches.each do |branch| + %li.list-item{ class: "gl-py-0! gl-border-0!" } + .item-body.gl-display-flex.align-items-center.gl-px-3.gl-pr-2.gl-mx-n2 + .item-contents.gl-display-flex.gl-align-items-center.gl-flex-wrap.gl-flex-grow-1.gl-min-h-7 + .item-title.gl-display-flex.mb-xl-0.gl-min-w-0 + - if branch[:pipeline_status].present? + %span.related-branch-ci-status + = render 'ci/status/icon', status: branch[:pipeline_status] + %span.related-branch-info + %strong + = link_to branch[:name], branch[:link], class: "ref-name" diff --git a/app/views/projects/ml/experiments/show.html.haml b/app/views/projects/ml/experiments/show.html.haml index 52145eb0964..cfec627d249 100644 --- a/app/views/projects/ml/experiments/show.html.haml +++ b/app/views/projects/ml/experiments/show.html.haml @@ -3,15 +3,14 @@ - page_title @experiment.name - add_page_specific_style 'page_bundles/ml_experiment_tracking' +- experiment = experiment_as_data(@experiment) - items = candidates_table_items(@candidates) - metrics = unique_logged_names(@candidates, &:latest_metrics) - params = unique_logged_names(@candidates, &:params) - page_info = formatted_page_info(@page_info) -.page-title-holder.d-flex.align-items-center - %h1.page-title.gl-font-size-h-display= @experiment.name - #js-show-ml-experiment{ data: { + experiment: experiment, candidates: items, metrics: metrics, params: params, diff --git a/app/views/shared/issue_type/_details_content.html.haml b/app/views/shared/issue_type/_details_content.html.haml index d6a05934cae..fdbe247c6ba 100644 --- a/app/views/shared/issue_type/_details_content.html.haml +++ b/app/views/shared/issue_type/_details_content.html.haml @@ -30,14 +30,14 @@ #js-related-merge-requests{ data: { endpoint: expose_path(api_v4_projects_issues_related_merge_requests_path(id: @project.id, issue_iid: issuable.iid)), project_namespace: @project.namespace.path, project_path: @project.path } } - - if can?(current_user, :admin_feature_flags_issue_links, @project) - = render_if_exists 'projects/issues/related_feature_flags' - - if can?(current_user, :read_code, @project) - add_page_startup_api_call related_branches_path #related-branches{ data: { url: related_branches_path } } -# This element is filled in using JavaScript. + - if can?(current_user, :admin_feature_flags_issue_links, @project) + = render_if_exists 'projects/issues/related_feature_flags' + .js-issue-widgets = render 'projects/issues/discussion' |