Module: WizardHelper

Defined in:
app/helpers/wizard_helper.rb

Instance Method Summary (collapse)

Instance Method Details



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'app/helpers/wizard_helper.rb', line 2

def menu_tabs
  [ 
    [ 'Welcome', 'index' ], 
    [ 'Users and Passwords', 'users' ],
    [ 'Interface', 'interface' ],
    [ 'Plugins', 'plugins' ],
    [ 'Reporting', 'reporting'],
    [ 'Community / Help', 'community' ]
  ].collect do |title, link|
    action = request.parameters.fetch('action', '')
    if (action == link)
      "<li class=\"active\"><a href=\"#\"><span>#{title}</span></a></li>"  
    else
       :li do
        link_to wizard_path() + '/' + link do
           :span, title
        end
      end
    end
  end.join
end