blob: b7fe8a56c2b474a58d92f617b0b205eff61dfe0a (
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 }) do
= content_tag :span, sprite_icon(status.icon, size: 16), class: ci_css_classes
|