Commit 796855e2 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch '64314-ci-icon' into 'master'

Align CI icon in merge request dashboard

Closes #64314

See merge request gitlab-org/gitlab-ce!30558
parents 836dc2c2 ad165ec5
...@@ -265,7 +265,6 @@ ul.controls { ...@@ -265,7 +265,6 @@ ul.controls {
} }
.issuable-pipeline-broken a, .issuable-pipeline-broken a,
.issuable-pipeline-status a,
.author-link { .author-link {
display: flex; display: flex;
} }
......
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
- type = local_assigns.fetch(:type, 'pipeline') - type = local_assigns.fetch(:type, 'pipeline')
- tooltip_placement = local_assigns.fetch(:tooltip_placement, "left") - tooltip_placement = local_assigns.fetch(:tooltip_placement, "left")
- path = local_assigns.fetch(:path, status.has_details? ? status.details_path : nil) - path = local_assigns.fetch(:path, status.has_details? ? status.details_path : nil)
- css_classes = "ci-status-link ci-status-icon ci-status-icon-#{status.group} has-tooltip" - option_css_classes = local_assigns.fetch(:option_css_classes, '')
- css_classes = "ci-status-link ci-status-icon ci-status-icon-#{status.group} has-tooltip #{option_css_classes}"
- title = s_("PipelineStatusTooltip|Pipeline: %{ci_status}") % {ci_status: status.label} - title = s_("PipelineStatusTooltip|Pipeline: %{ci_status}") % {ci_status: status.label}
- if type == 'commit' - if type == 'commit'
- title = s_("PipelineStatusTooltip|Commit: %{ci_status}") % {ci_status: status.label} - title = s_("PipelineStatusTooltip|Commit: %{ci_status}") % {ci_status: status.label}
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
= link_to_label(label, type: :merge_request, css_class: 'label-link') = link_to_label(label, type: :merge_request, css_class: 'label-link')
.issuable-meta .issuable-meta
%ul.controls %ul.controls.d-flex.align-items-end
- if merge_request.merged? - if merge_request.merged?
%li.issuable-status.d-none.d-sm-inline-block %li.issuable-status.d-none.d-sm-inline-block
MERGED MERGED
...@@ -47,14 +47,14 @@ ...@@ -47,14 +47,14 @@
= icon('ban') = icon('ban')
CLOSED CLOSED
- if can?(current_user, :read_pipeline, merge_request.head_pipeline) - if can?(current_user, :read_pipeline, merge_request.head_pipeline)
%li.issuable-pipeline-status.d-none.d-sm-inline-block %li.issuable-pipeline-status.d-none.d-sm-flex
= render 'ci/status/icon', status: merge_request.head_pipeline.detailed_status(current_user) = render 'ci/status/icon', status: merge_request.head_pipeline.detailed_status(current_user), option_css_classes: 'd-flex'
- if merge_request.open? && merge_request.broken? - if merge_request.open? && merge_request.broken?
%li.issuable-pipeline-broken.d-none.d-sm-inline-block %li.issuable-pipeline-broken.d-none.d-sm-flex
= link_to merge_request_path(merge_request), class: "has-tooltip", title: _('Cannot be merged automatically') do = link_to merge_request_path(merge_request), class: "has-tooltip", title: _('Cannot be merged automatically') do
= icon('exclamation-triangle') = icon('exclamation-triangle')
- if merge_request.assignees.any? - if merge_request.assignees.any?
%li %li.d-flex
= render 'shared/issuable/assignees', project: merge_request.project, issuable: merge_request = render 'shared/issuable/assignees', project: merge_request.project, issuable: merge_request
= render_if_exists 'projects/merge_requests/approvals_count', merge_request: merge_request = render_if_exists 'projects/merge_requests/approvals_count', merge_request: merge_request
......
---
title: Aligns CI icon in Merge Request dashboard
merge_request: 30558
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment