blob: 56e6b3362343cdcab6d14393195aebefb053a105 (
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
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
|
<!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>
<%= render :partial => 'layouts/favicon' %>
<%= render :partial => 'general/stylesheet_includes' %>
<% if is_admin? %>
<%= stylesheet_link_tag "admin", :title => "Main", :rel => "stylesheet" %>
<% end %>
<%= javascript_include_tag "application" %>
<% if @profile_photo_javascript %>
<%= javascript_include_tag "profile-photos" %>
<%= stylesheet_link_tag "jquery.Jcrop.css" %>
<% end %>
<% if is_admin? %>
<%= javascript_include_tag "bootstrap-dropdown" %>
<% end %>
<% if @feed_autodetect %>
<% for feed in @feed_autodetect %>
<link rel="alternate" type="application/atom+xml" title="<%=h feed[:title] %>" href="<%=h feed[:url]%>">
<% if feed[:has_json] %>
<link rel="alternate" type="application/json" title="JSON version of <%=h feed[:title] %>" href="<%=h feed[:url]%>.json">
<% end %>
<% end %>
<% end %>
<% if @has_json %>
<link rel="alternate" type="application/json" title="JSON version of this page" href="<%=h url_for(request.params.merge(:format => 'json')) %>">
<% end %>
<% if @no_crawl %>
<meta name="robots" content="noindex, nofollow">
<% end %>
<% if AlaveteliConfiguration::responsive_styling || params[:responsive] %>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<% end %>
<%= render :partial => 'general/before_head_end' %>
</head>
<body class="<%= 'front' if params[:action] == 'frontpage' %>">
<% if AlaveteliConfiguration::force_registration_on_new_request && !@user %>
<%= javascript_include_tag 'fancybox.js' %>
<script type="text/javascript">
$(document).ready(function() {
$("#make-request-link").fancybox({
'modal': false,
'width': 950,
'height': 400,
'type': 'iframe',
'href': '/<%= FastGettext.locale %>/profile/sign_in?modal=1',
'onClosed': function() {
// modal_signin_successful variable set by modal dialog box
if (typeof modal_signin_successful != 'undefined' ) {
window.location.href = '<%= select_authority_url %>';
}
}
});
});
</script>
<% end %>
<% if is_admin? %>
<%= render :partial => 'admin_general/admin_navbar' %>
<% end %>
<div class="entirebody">
<% popup_banner = render(:partial => "general/popup_banner").strip %>
<% if popup_banner.present? and ! @render_to_file %>
<div id="everypage" class="popup">
<span class="popup-content">
<%= raw popup_banner %>
</span>
<span class="popup-close"><a href="#top" ><%= _('Close') %></a></span>
</div>
<% end %>
<div id="other-country-notice" class="popup">
<span class="popup-content">
</span>
<span class="popup-close"><a href="#top" ><%= _('Close') %></a></span>
</div>
<% if AlaveteliConfiguration::responsive_styling || params[:responsive] %>
<%= render :partial => 'general/responsive_header' %>
<% else %>
<%= render :partial => 'general/header' %>
<% end %>
<div id="wrapper">
<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 style="clear:both"></div>
</div>
</div>
<% if AlaveteliConfiguration::responsive_styling || params[:responsive] %>
<%= render :partial => 'general/responsive_footer' %>
<% else %>
<%= render :partial => 'general/footer' %>
<% end %>
</div>
<div id="link_box"><span class="close-button">X</span>
<%= _("Paste this link into emails, tweets, and anywhere else:") %>
<br />
<input type="text">
</div>
<%
unless AlaveteliConfiguration::ga_code.empty? || (@user && @user.super?) %>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("<%= AlaveteliConfiguration::ga_code %>");
pageTracker._trackPageview();
</script>
<% end %>
<%= render :partial => 'general/before_body_end' %>
</body>
</html>
|