diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-12-08 11:03:01 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-12-12 12:59:01 +0100 |
commit | feaf01802c092be8f55994c910f2975376cbd20f (patch) | |
tree | 66650ccffc461bc127ca45f176136798a4e6b6c4 /app/views/ci | |
parent | a83a80edb368d9b5697493123c2f13d8b7c6531e (diff) | |
download | gitlab-ce-feaf01802c092be8f55994c910f2975376cbd20f.tar.gz |
Remove ci_status_with_icon helper and replace it with partial [ci skip]
Diffstat (limited to 'app/views/ci')
-rw-r--r-- | app/views/ci/status/_icon_with_label.html.haml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/views/ci/status/_icon_with_label.html.haml b/app/views/ci/status/_icon_with_label.html.haml new file mode 100644 index 00000000000..65a74e88444 --- /dev/null +++ b/app/views/ci/status/_icon_with_label.html.haml @@ -0,0 +1,10 @@ +- details_path = subject.details_path if subject.has_details?(current_user) +- klass = "ci-status ci-#{subject.status}" +- if details_path + = link_to details_path, class: klass do + = custom_icon(status.icon) + = status.text +- else + %span{ class: klass } + = custom_icon(status.icon) + = status.text |