diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2014-12-04 14:22:57 +0100 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-01-12 19:48:45 +0100 |
commit | fc08a10dba559a93427b6ef31b33c45cd2194c40 (patch) | |
tree | ec9f2d2509162ca3b8c8007b3e656242c961f916 /app/helpers | |
parent | 31735615971642f74a9d84b153e5049782152b43 (diff) | |
download | gitlab-ci-fc08a10dba559a93427b6ef31b33c45cd2194c40.tar.gz |
Transplanted project notifications from GitLab
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/icons_helper.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/helpers/icons_helper.rb b/app/helpers/icons_helper.rb new file mode 100644 index 0000000..4e77d2b --- /dev/null +++ b/app/helpers/icons_helper.rb @@ -0,0 +1,9 @@ +module IconsHelper + def boolean_to_icon(value) + if value.to_s == "true" + content_tag :i, nil, class: 'icon-circle cgreen' + else + content_tag :i, nil, class: 'icon-power-off clgray' + end + end +end |