aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/layouts')
-rw-r--r--app/views/layouts/admin.html.erb2
-rw-r--r--app/views/layouts/default.html.erb23
-rw-r--r--app/views/layouts/no_chrome.html.erb16
3 files changed, 30 insertions, 11 deletions
diff --git a/app/views/layouts/admin.html.erb b/app/views/layouts/admin.html.erb
index c1f9335b1..2147f22e1 100644
--- a/app/views/layouts/admin.html.erb
+++ b/app/views/layouts/admin.html.erb
@@ -2,6 +2,8 @@
<html lang="en-gb">
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" >
+ <%= csrf_meta_tags %>
+
<title><%= site_name %> admin<%= @title ? ":" : "" %> <%=@title%></title>
<%= javascript_include_tag "admin" %>
diff --git a/app/views/layouts/default.html.erb b/app/views/layouts/default.html.erb
index 52b718be8..50abc59c3 100644
--- a/app/views/layouts/default.html.erb
+++ b/app/views/layouts/default.html.erb
@@ -2,6 +2,8 @@
<html lang="<%= I18n.locale %>">
<head>
<meta charset="utf-8">
+ <%= csrf_meta_tags %>
+
<title>
<% if @title %>
<%=@title%> - <%= site_name %>
@@ -38,17 +40,19 @@
<% 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 'jquery.fancybox-1.3.4.pack.js' %>
+ <%= javascript_include_tag 'fancybox.js' %>
<script type="text/javascript">
$(document).ready(function() {
$("#make-request-link").fancybox({
'modal': false,
- 'width': 920,
+ 'width': 950,
'height': 400,
'type': 'iframe',
'href': '/<%= FastGettext.locale %>/profile/sign_in?modal=1',
@@ -82,7 +86,11 @@
</span>
<span class="popup-close"><a href="#top" ><%= _('Close') %></a></span>
</div>
- <%= render :partial => 'general/header' %>
+ <% 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] %>
@@ -98,8 +106,11 @@
<div style="clear:both"></div>
</div>
</div>
-
- <%= render :partial => 'general/footer' %>
+ <% 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>
diff --git a/app/views/layouts/no_chrome.html.erb b/app/views/layouts/no_chrome.html.erb
index e613b8ca2..f3ca9ef9e 100644
--- a/app/views/layouts/no_chrome.html.erb
+++ b/app/views/layouts/no_chrome.html.erb
@@ -2,6 +2,8 @@
<html lang="<%= I18n.locale %>">
<head>
<meta charset="utf-8">
+ <%= csrf_meta_tags %>
+
<title>
<% if @title %>
<%=@title%> - <%= site_name %>
@@ -12,11 +14,15 @@
<%= javascript_include_tag "application" %>
- <%= 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]-->
+ <% 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">