summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2014-12-04 14:22:57 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2015-01-12 19:48:45 +0100
commitfc08a10dba559a93427b6ef31b33c45cd2194c40 (patch)
treeec9f2d2509162ca3b8c8007b3e656242c961f916 /app/helpers
parent31735615971642f74a9d84b153e5049782152b43 (diff)
downloadgitlab-ci-fc08a10dba559a93427b6ef31b33c45cd2194c40.tar.gz
Transplanted project notifications from GitLab
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/icons_helper.rb9
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