aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/layouts/no_chrome.html.erb
blob: f3ca9ef9ec0bb0c6fe06785d522d8c41ddf19c49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html>
<html lang="<%= I18n.locale %>">
    <head>
        <meta charset="utf-8">
        <%= csrf_meta_tags %>

        <title>
        <% if @title %>
            <%=@title%> - <%= site_name %>
        <% else %>
            <%= site_name %> - <%= _('Make and browse Freedom of Information (FOI) requests') %>
        <% end %>
        </title>

        <%= javascript_include_tag "application" %>

        <% if AlaveteliConfiguration::responsive_styling || params[:responsive] %>
            <%= render :partial => 'general/responsive_stylesheets' %>
        <% else %>
            <%= stylesheet_link_tag 'application', :title => "Main", :rel => "stylesheet" %>
            <%= stylesheet_link_tag 'fonts', :rel => "stylesheet" %>
            <!--[if LT IE 7]>
            <%= stylesheet_link_tag 'ie6', :rel => "stylesheet" %>
            <![endif]-->
        <% end %>
    </head>
    <body>
        <div class="entirebody">
            <div id="content">
                <% if flash[:notice] %>
                    <div id="notice"><%= flash[:notice] %></div>
                <% end %>
                <% if flash[:error] %>
                    <div id="error"><%= flash[:error] %></div>
                <% end %>

                <div id="<%= controller.controller_name + "_" + controller.action_name %>" class="controller_<%= controller.controller_name %>">
                <%= yield :layout %>
                </div>
            </div>
        </div>
    </body>
</html>