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
[
[ '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
content_tag :li do
link_to wizard_path() + '/' + link do
content_tag :span, title
end
end
end
end.join
end
|