diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-11-20 13:41:41 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-11-20 13:41:41 +0200 |
commit | b07c02eb13fca5f991575bb0955373d54f1a2d9d (patch) | |
tree | b2a7dd1dbd74d857710991f6a613932e6f53dcf1 /app/helpers/icons_helper.rb | |
parent | e3a718574c1c862a1b806b8bb04fa1f4b10a2d37 (diff) | |
download | gitlab-ce-b07c02eb13fca5f991575bb0955373d54f1a2d9d.tar.gz |
Add more info to admin dashboard
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/helpers/icons_helper.rb')
-rw-r--r-- | app/helpers/icons_helper.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/app/helpers/icons_helper.rb b/app/helpers/icons_helper.rb new file mode 100644 index 00000000000..41249a56acb --- /dev/null +++ b/app/helpers/icons_helper.rb @@ -0,0 +1,17 @@ +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-circle cgray' + end + end + + def public_icon + content_tag :i, nil, class: 'icon-globe cblue' + end + + def private_icon + content_tag :i, nil, class: 'icon-lock cgreen' + end +end |