Cross Reference: status_helper.rb
xref
: /
ontohub
/
app
/
helpers
/
admin
/
status_helper.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
module
Admin
::
StatusHelper
def
class_for_tab
(
view
,
tab
,
number
)
classes
= []
classes
<<
'active'
if
view.current
?
(
tab
)
classes
<<
'disabled'
if
number
==
0
classes.join
(
' '
)
end
end