diff options
author | Scott Hampton <shampton@gitlab.com> | 2019-02-19 13:27:53 -0700 |
---|---|---|
committer | Scott Hampton <shampton@gitlab.com> | 2019-02-19 13:27:53 -0700 |
commit | 54a5d513e5f068c53fad3b2dac04998f5e9afd88 (patch) | |
tree | f00f87a1549059dd2d84203dd8f4c730af41b823 /app/views/ci | |
parent | ab9f8785ebf5483e5d2cd02497b57fa05a47561e (diff) | |
download | gitlab-ce-54a5d513e5f068c53fad3b2dac04998f5e9afd88.tar.gz |
Fixing CI icon mismatch
MR list, and related MRs and branches were using a deprecated helper.
Created a new icon haml file to help move these forward.
Diffstat (limited to 'app/views/ci')
-rw-r--r-- | app/views/ci/status/_icon.html.haml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/views/ci/status/_icon.html.haml b/app/views/ci/status/_icon.html.haml new file mode 100644 index 00000000000..bfdf9c2ec9f --- /dev/null +++ b/app/views/ci/status/_icon.html.haml @@ -0,0 +1,12 @@ +- status = local_assigns.fetch(:status) +- size = local_assigns.fetch(:size, 16) +- link = local_assigns.fetch(:link, true) +- title = local_assigns.fetch(:title, nil) +- css_classes = "ci-status-link ci-status-icon ci-status-icon-#{status.group} #{'has-tooltip' if title.present?}" + +- if link && status.has_details? + = link_to status.details_path, class: css_classes, title: title, data: { html: title.present? } do + = sprite_icon(status.icon, size: size) +- else + %span{ class: css_classes, title: title, data: { html: title.present? } } + = sprite_icon(status.icon, size: size)
\ No newline at end of file |