<%= javascript_include_tag :infopark_editing %> <%= javascript_tag do %> $(function() { infopark.i18n.set_locale("<%= I18n.locale %>"); infopark.gui.set_workspace( infopark.workspace.from_data({ id: "<%= escape_javascript(RailsConnector::Workspace.current.id).html_safe %>", title: "<%= escape_javascript(RailsConnector::Workspace.current.title).html_safe %>" }) ); infopark.obj.current_page_id = "<%= @obj.try(:id) %>"; infopark.obj.current_page_obj_class_name = "<%= @obj.try(:obj_class) %>"; infopark.obj.current_page_has_edit_view = <%= current_page_has_edit_view? %>; infopark.obj.current_page_has_children = <%= current_page_has_children? %>; infopark.obj.current_page_modification = "<%= @obj.try(:modification) %>"; infopark.admin_gui_base_url = "<%= RailsConnector::CmsRestApi.configuration.url %>"; infopark.gui.initialize(); }); <% end %>