<%= 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' %>
<%= link_to image_tag('admin/admin-logo.jpg'), root_path %>

<% flash.each do |name, msg| %>
"> × <%= msg %>
<% end %> <%= 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 %> <% if controller.controller_name == 'pages' %> <%= javascript_include_tag 'admin/pages' %> <% end %>