_icon_with_description.html.haml 406 字节
Newer Older
1 2 3
- detailed_status = subject.detailed_status(current_user)
- details_path = detailed_status.details_path if detailed_status.has_details?
- klass = "ci-status ci-#{detailed_status}"
4

5 6
- if details_path
  = link_to details_path, class: klass do
7 8
    = custom_icon(detailed_status.icon)
    = detailed_status.text
9 10
- else
  %span{ class: klass }
11 12
    = custom_icon(detailed_status.icon)
    = detailed_status.text