<%= stylesheet_link_tag "admin", :media => "all" %> <%= favicon_link_tag %> <%= csrf_meta_tag %> <% # This line ensures javascript code can access the current locale from Rails %>

<%= t 'admin_panel' %>

<%= render 'shared/flash_messages' %> <%= yield %>
<%= render 'shared/language_switcher' %> <%= yield :admin_sidebar %>
<%= javascript_include_tag "admin" %> <% # the twitter typeahead javascript library needs all typeahead form fields to be present in DOM. this is an ugly hack %> <% # FIXME - refactor this mess %> <% if controller.controller_name == 'pages' %> <%= javascript_include_tag 'admin/pages' %> <% elsif controller.controller_name == 'illustrations' %> <%= javascript_include_tag 'admin/illustrations' %> <% elsif controller.controller_name == 'menus' %> <%= javascript_include_tag 'admin/menus' %> <% elsif controller.controller_name == 'courses' %> <%= javascript_include_tag 'admin/courses' %> <% end %>