<% ActiveDashboard.user_dashboards(current_user, true).each do |active_dashboard| %>
{
url: '/dashboard/?did=<%= active_dashboard.dashboard_id -%>',
- labelLocalized: '<%= h active_dashboard.dashboard.name(true) -%>',
+ labelLocalized: '<%= escape_javascript active_dashboard.dashboard.name(true) -%>',
active: <%= @dashboard && controller.controller_path=='dashboard' && active_dashboard.dashboard_id==@dashboard.id ? 'true' : 'false' -%>
},
<% end %>
%>
{
url: '<%= page_url -%>',
- labelLocalized: '<%= h message(page.getId() + '.page', :default => page.getTitle()) -%>',
+ labelLocalized: '<%= escape_javascript message(page.getId() + '.page', :default => page.getTitle()) -%>',
active: <%= selected ? 'true' : 'false' -%>
},
<% end %>
<% ActiveDashboard.user_dashboards(current_user, false).each do |active_dashboard| %>
{
url: '/dashboard/index?id=<%= @project.key -%>&did=<%= active_dashboard.dashboard_id -%><%= "&"+period_param if period_param -%>',
- labelLocalized: '<%= h active_dashboard.dashboard.name(true) -%>',
+ labelLocalized: '<%= escape_javascript active_dashboard.dashboard.name(true) -%>',
active: <%= @dashboard && controller.controller_path=='dashboard' && active_dashboard.dashboard_id==@dashboard.id ? "true" : "false" -%>
},
<% end %>
%>
{
url: '<%= page_url -%>',
- labelLocalized: '<%= h message(page.getId() + '.page', :default => page.getTitle()) -%>',
+ labelLocalized: '<%= escape_javascript message(page.getId() + '.page', :default => page.getTitle()) -%>',
active: false
},
<% end
%>
{
url: '<%= page_url -%>',
- labelLocalized: '<%= h message(page.getId() + '.page', :default => page.getTitle()) -%>',
+ labelLocalized: '<%= escape_javascript message(page.getId() + '.page', :default => page.getTitle()) -%>',
active: <%= request.request_uri.include?(page_url) ? "true" : "false" -%>
},
<% end %>
%>
{
url: '<%= page_url -%>',
- labelLocalized: '<%= h message(page.getId() + '.page', :default => page.getTitle()) %>',
+ labelLocalized: '<%= escape_javascript message(page.getId() + '.page', :default => page.getTitle()) %>',
active: <%= request.request_uri.include?(page_url) ? 'true' : 'false' -%>
- }
+ },
<% end %>
]
},