<% content_for :header_tags do %> <% if defined? observe_field %> <%= javascript_include_tag('toggle_functions_prototype', :plugin => 'sidebar') %> <% else %> <%= javascript_include_tag('toggle_functions_jquery', :plugin => 'sidebar') %> <% end %> <% end %>

<%= l(:label_sidebar_visibility) %>

<% form = form_tag do %>
<%= l(:label_per_project_policy) %> <%= select_tag('sidebar_settings[policy]', options_for_select([ [ l(:label_global_only), 'global' ], [ l(:label_can_be_disabled), 'disable' ], [ l(:label_configurable_if_enabled_globally), 'configurable' ], [ l(:label_per_project), 'project' ] ], @settings['policy']), :onchange => "toggle_sidebar_pages_visibility(this.value);") %>
<%= submit_tag(l(:button_save)) %> <% end %> <%= form if Rails::VERSION::MAJOR >= 3 %>