MiraitSystems/enju_trunk

View on GitHub
app/views/layouts/application.html.erb

Summary

Maintainability
Test Coverage
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<%= @locale.to_s -%>" lang="<%= @locale.to_s -%>">
<head>
  <meta charset="UTF-8" />
  <%= render 'page/include' %>
  <title><%= title(controller.controller_name) %></title>
  <%- if controller.controller_name == 'manifestations' and controller.action_name == 'index' -%>
    <%= auto_discovery_link_tag(:rss, url_for(params.merge(:format => 'rss', :page => nil, :commit => nil)), :title => (t('manifestation.library_group_manifestation', :library_group_name => @library_group.display_name.localize) + " (RSS)")) %>
    <%= auto_discovery_link_tag(:atom, url_for(params.merge(:format => 'atom', :page => nil, :commit => nil)), :title => (t('manifestation.library_group_manifestation', :library_group_name => @library_group.display_name.localize) + " (Atom)")) %>
  <% end %>
  <%= render 'page/portlets' %>
</head>
<body itemscope itemtype="http://schema.org/WebPage">
<script>
  $(document).ready(function(){
    if ($("#errorExplanation").length > 0)
       playSound('<%= root_path -%><%= SystemConfiguration.get("sounds.basedir") %><%= SystemConfiguration.get("sounds.errors.default") %>');
  });
</script>
<%= render 'page/header' %>

<%- unless session[:breadcrumbs].nil? || session[:breadcrumbs].empty? -%>
  <div id="breadcrumb">
    <% session[:breadcrumbs].to_a[0..-2].each do |txt, url| %>
      <%= link_to(txt, url) %> >
    <% end %>
    <%= h(session[:breadcrumbs].to_a.last.first) if session[:breadcrumbs].to_a.last%>
  </div>
<%- end -%>

<%= render 'page/menu' %>

<div id="content">

<%= yield %>

</div>

<%= render 'page/function_general' %>
<% unless SystemConfiguration.get("not_use_footer") %>
  <%= render 'page/footer' %>
<% end %>

</body>
</html>