Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_icon.html.haml « status « ci « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9fa5734d6b6264cc152a19d0dcb892d1c90c9e0e (plain)
1
2
3
4
5
6
7
8
9
10
- status             = local_assigns.fetch(:status)
- tooltip_placement  = local_assigns.fetch(:tooltip_placement, "left")
- path               = local_assigns.fetch(:path, status.has_details? ? status.details_path : nil)
- option_css_classes = local_assigns.fetch(:option_css_classes, '')
- css_classes        = "gl-px-2 #{option_css_classes}"
- ci_css_classes     = "ci-status-link ci-status-icon ci-status-icon-#{status.group} gl-line-height-1"
- title              = s_("PipelineStatusTooltip|Pipeline: %{ci_status}") % {ci_status: status.label}

= gl_badge_tag(variant: badge_variant(status), size: :md, href: path, class: css_classes, title: title, data: { toggle: 'tooltip', placement: tooltip_placement, testid: "ci-status-badge" }) do
  = content_tag :span, sprite_icon(status.icon, size: 16), class: ci_css_classes