diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-12-08 11:03:01 +0100 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-12-08 11:03:01 +0100 |
commit | 65f3206024778b934171c9d9ece8ab627ba6c4c5 (patch) | |
tree | 1b31cd6ddb435015b6aed8c24357fc78ffea8e95 /app/views/ci | |
parent | 609bc0a0b67354d6e3df0eba11da1acde6a9d033 (diff) | |
download | gitlab-ce-65f3206024778b934171c9d9ece8ab627ba6c4c5.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 |