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

_dropdown_graph_badge.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: dcfb7f0c32dae4b4305e20d27055e16bf60dd5a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
-# Renders the content of each li in the dropdown

- subject = local_assigns.fetch(:subject)
- status = subject.detailed_status(current_user)
- klass = "ci-status-icon ci-status-icon-#{status.group}"
- tooltip = "#{subject.name} - #{status.label}"

- if status.has_details?
  = link_to status.details_path, class: 'mini-pipeline-graph-dropdown-item', data: { toggle: 'tooltip', title: tooltip, container: 'body' }  do
    %span{ class: klass }= custom_icon(status.icon)
    %span.ci-build-text= subject.name
- else
  .menu-item.mini-pipeline-graph-dropdown-item{ data: { toggle: 'tooltip', title: tooltip, container: 'body' } }
    %span{ class: klass }= custom_icon(status.icon)
    %span.ci-build-text= subject.name

- if status.has_action?
  = link_to status.action_path, class: 'ci-action-icon-wrapper js-ci-action-icon', method: status.action_method, data: { toggle: 'tooltip', title: status.action_title, container: 'body' }  do
    = custom_icon(status.action_icon)