forked from alphagov/e-petitions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
application.html.erb
80 lines (78 loc) · 3.49 KB
/
application.html.erb
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE html>
<html lang="EN-GB">
<head>
<% @title = yield :page_title; @title = 'HM Government e-petitions' if @title.blank? -%>
<title><%= @title %></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<%= stylesheet_link_tag 'application' %>
<!--[if IE 6]><%= stylesheet_link_tag 'ie6' %><![endif]-->
<!--[if lte IE 7]><%= stylesheet_link_tag 'ie7under' %><![endif]-->
<!--[if gte IE 9]><%= stylesheet_link_tag 'ie9' %><![endif]-->
<%= javascript_include_tag 'vendor/jquery', 'application', 'accessibility', 'form_controller', :cache => true %>
<%= yield :js %>
<meta name="dcterms.spatial" xml:lang="en" lang="en" content="UK"/>
<meta name="dcterms.creator" content="Government Digital Service"/>
<meta name="dcterms.modified" content="19072011"/>
<meta name="dc.language" xml:lang="en" lang="en" content="en"/>
<meta name="dcterms.publisher" content="Government Digital Service"/>
<meta name="dcterms.subject" xml:lang="en" lang="en" content="e-petitions"/>
<meta name="dcterms.title" content="<%= @title %>">
<meta name="viewport" content="width = device-width"/>
</head>
<body>
<div id="outer_page_wrapper">
<div id="inner_page_wrapper">
<div id="header">
<div class="logo">
<%= link_to image_tag('logos/hm_gov.gif', :alt => 'HM Government') + raw('<span class="link_description">Click here to return to the home page</span>'), home_path, :class => 'logo_link', :title => 'Click here to return to the home page', :tabindex => 1 %>
</div>
<div id="header_content">
<%= link_to 'Accessibility', accessibility_path, :class => 'accessibility_link', :tabindex => 3 %>
<%= link_to 'Home', home_path, :class => 'home_link', :tabindex => 2 %>
<% if params[:action] != 'home' and Petition.visible.count > 0 %>
<% focus = (params[:action] == 'search' or params[:action] == 'show') ? "autofocus=\"autofocus\"".html_safe : '' %>
<form method="get" action="/search" class="search_form">
<input type='text' name="q" id="search_header" value="<%= @petition_search.try(:search_term) %>" size="30" tabindex="4" <%= focus %>/>
<input type='submit' value='Search' class="button" id="search_button_header"/>
<label for='search_header'>Search published e-petitions</label>
</form>
<% end -%>
</div>
</div>
<div id="page_content">
<%= yield :title %>
<%= render :partial => 'shared/messages' %>
<%= yield %>
</div>
<div id="footer">
<%= render_tabnav :id => "footer_nav" do |n|
n.add_tab do |t|
t.named 'How e-petitions work'
t.links_to how_it_works_path
end
n.add_tab do |t|
t.named 'Terms and conditions'
t.links_to terms_and_conditions_path
end
n.add_tab do |t|
t.named 'Privacy'
t.links_to privacy_policy_path
end
n.add_tab do |t|
t.named 'Crown copyright'
t.links_to crown_copyright_path
end
n.add_tab do |t|
t.named 'FAQs'
t.links_to faq_path
end
n.add_tab do |t|
t.named 'Feedback'
t.links_to feedback_path
end
end %>
</div>
</div>
</div>
</body>
</html>