d9bb4230cc
Added visibility_level icons to project view (rather than just text). Added public projects to search results. Added ability to restrict visibility levels standard users can set.
21 lines
439 B
Ruby
21 lines
439 B
Ruby
module IconsHelper
|
|
def boolean_to_icon(value)
|
|
if value.to_s == "true"
|
|
content_tag :i, nil, class: 'icon-ok cgreen'
|
|
else
|
|
content_tag :i, nil, class: 'icon-off clgray'
|
|
end
|
|
end
|
|
|
|
def public_icon
|
|
content_tag :i, nil, class: 'icon-globe cblue'
|
|
end
|
|
|
|
def internal_icon
|
|
content_tag :i, nil, class: 'icon-shield camber'
|
|
end
|
|
|
|
def private_icon
|
|
content_tag :i, nil, class: 'icon-lock cgreen'
|
|
end
|
|
end
|