aboutsummaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'app/views')
-rw-r--r--app/views/admin_public_body/import_csv.html.erb38
-rw-r--r--app/views/comment/_single_comment.html.erb3
-rw-r--r--app/views/general/_responsive_credits.html.erb2
-rw-r--r--app/views/general/_responsive_footer.html.erb15
-rw-r--r--app/views/general/_responsive_header.html.erb31
-rw-r--r--app/views/general/_responsive_stylesheets.html.erb11
-rw-r--r--app/views/general/_responsive_topnav.html.erb32
-rw-r--r--app/views/general/_stylesheet_includes.html.erb54
-rw-r--r--app/views/general/blog.html.erb31
-rw-r--r--app/views/general/search.html.erb32
-rw-r--r--app/views/info_request_batch/show.html.erb38
-rw-r--r--app/views/layouts/default.html.erb19
-rw-r--r--app/views/layouts/no_chrome.html.erb14
-rw-r--r--app/views/request/_summary_suggestion.html.erb4
-rw-r--r--app/views/request/_view_html_prefix.html.erb4
-rw-r--r--app/views/request/_view_html_stylesheet.html.erb7
-rw-r--r--app/views/request_game/play.html.erb31
-rw-r--r--app/views/user/show.html.erb2
18 files changed, 257 insertions, 111 deletions
diff --git a/app/views/admin_public_body/import_csv.html.erb b/app/views/admin_public_body/import_csv.html.erb
index 18341ecf1..d15ef1791 100644
--- a/app/views/admin_public_body/import_csv.html.erb
+++ b/app/views/admin_public_body/import_csv.html.erb
@@ -36,23 +36,35 @@
%>
</p>
- <p><strong>CSV file format:</strong>The first row should be a list
- of fields, starting with '#'. The fields 'name' and
- 'request_email' are required; additionally, translated values are
+ <p><strong>CSV file format:</strong> The first row should be a list
+ of fields, starting with <code>#</code>. The fields <code>name</code> and
+ <code>request_email</code> are required; additionally, translated values are
supported by adding the locale name to the field name,
- e.g. 'name.es', 'name.de'... Example:
+ e.g. <code>name.es</code>, <code>name.de</code>&hellip;<br />
+ <strong>Example:</strong>
</p>
- <blockquote>
- <p>
- &#35;id,name,request_email,name.es,tag_string<br/>
- 1,An Authority,a@example.com,Un organismo,a_tag another_tag<br/>
- 2,Another One,another@example.com,Otro organismo,a_tag<br/>
- <p>
- </blockquote>
+ <pre>
+&#35;name,request_email,name.es,tag_string
+An Authority,a@example.com,Un organismo,a_tag another_tag
+Another One,another@example.com,Otro organismo,a_tag
+ </pre>
- <p>Supported fields: name (i18n), short_name (i18n), request_email (i18n), notes (i18n),
- publication_scheme (i18n), disclosure_log (i18n), home_page, tag_string (tags separated by spaces).</p>
+ <p><strong>Supported fields:</strong>
+ <ul>
+ <li>
+ <code>name</code> (i18n)
+ <strong>Existing records cannot be renamed</strong>
+ </li>
+ <li><code>short_name</code> (i18n)</li>
+ <li><code>request_email</code> (i18n)</li>
+ <li><code>notes</code> (i18n)</li>
+ <li><code>publication_scheme</code> (i18n)</li>
+ <li><code>disclosure_log</code> (i18n)</li>
+ <li><code>home_page</code></li>
+ <li><code>tag_string</code> (tags separated by spaces)</li>
+ </ul>
+ </p>
<p><strong>Note:</strong> Choose <strong>dry run</strong> to test, without
actually altering the database. Choose <strong>upload</strong> to actually
diff --git a/app/views/comment/_single_comment.html.erb b/app/views/comment/_single_comment.html.erb
index a6d234b34..cdcb3b85f 100644
--- a/app/views/comment/_single_comment.html.erb
+++ b/app/views/comment/_single_comment.html.erb
@@ -9,9 +9,8 @@
<%# When not logged in, but mid-comment-leaving, there'll be no comment.user %>
<%= comment.user ? user_link(comment.user) : _("You") %> <%= _("left an annotation") %> (<%= simple_date(comment.created_at || Time.now) %>)
</h2>
- <div class="comment_in_request_text">
+ <div class="comment_in_request_text">
<p>
- <%= image_tag "quote-marks.png", :class => "comment_quote" %>
<%= comment.get_body_for_html_display %>
</p>
</div>
diff --git a/app/views/general/_responsive_credits.html.erb b/app/views/general/_responsive_credits.html.erb
new file mode 100644
index 000000000..01a5df13a
--- /dev/null
+++ b/app/views/general/_responsive_credits.html.erb
@@ -0,0 +1,2 @@
+<li><%= _('Powered by <a href="http://www.alaveteli.org/">Alaveteli</a>') %>
+</li>
diff --git a/app/views/general/_responsive_footer.html.erb b/app/views/general/_responsive_footer.html.erb
new file mode 100644
index 000000000..2967872f1
--- /dev/null
+++ b/app/views/general/_responsive_footer.html.erb
@@ -0,0 +1,15 @@
+<div class="footer" id="footer">
+ <div id="footer-nav">
+ <ul>
+ <li><%= link_to image_tag('logo.png'), frontpage_path, :id => 'logo' %></li>
+ <li><%= link_to _("Contact {{site_name}}", :site_name => site_name), help_contact_path %></li>
+ <% unless AlaveteliConfiguration::twitter_username.blank? %>
+ <li><a href="https://twitter.com/<%= AlaveteliConfiguration::twitter_username %>"><%= _("Follow us on twitter") %></a></li>
+ <% end %>
+
+ <%= render :partial => 'general/responsive_credits' %>
+
+ </ul>
+
+ </div>
+</div>
diff --git a/app/views/general/_responsive_header.html.erb b/app/views/general/_responsive_header.html.erb
new file mode 100644
index 000000000..3a2994b4d
--- /dev/null
+++ b/app/views/general/_responsive_header.html.erb
@@ -0,0 +1,31 @@
+<div id="banner">
+ <div id="banner_inner">
+ <div id="banner_content">
+ <div id="logo_wrapper">
+ <%= link_to image_tag('logo.png'), frontpage_path, :id => 'logo' %>
+ </div>
+ <div class="rsp_menu_button">
+ <a href="#banner" class="open"> <i class="icon-menu"></i> Menu </a>
+ <a href="#" class="close"> <i class="icon-menu"></i> Close </a>
+ </div>
+ <%= render :partial => 'general/locale_switcher' %>
+ <% if ! (controller.action_name == 'signin' or controller.action_name == 'signup') %>
+ <div id="logged_in_bar">
+ <div id="logged_in_links">
+ <% if @user %>
+ <span class="greeting"><%= _('Hello, {{username}}!', :username => @user.name) %></span>
+ <%=link_to _("My requests"), show_user_requests_path(:url_name => @user.url_name) %>
+ <%=link_to _("My profile"), show_user_profile_path(:url_name => @user.url_name) %>
+ <%=link_to _("My wall"), show_user_wall_path(:url_name => @user.url_name) %>
+ <%= link_to _("Sign out"), signout_path(:r => request.fullpath) %>
+ <% else %>
+ <%= link_to _("Sign in or sign up"), signin_path(:r => request.fullpath) %>
+ <% end %>
+ </div>
+ </div>
+ <% end %>
+ </div>
+ <%= render :partial => 'general/responsive_topnav' %>
+ </div>
+</div>
+
diff --git a/app/views/general/_responsive_stylesheets.html.erb b/app/views/general/_responsive_stylesheets.html.erb
new file mode 100644
index 000000000..e3c3660c4
--- /dev/null
+++ b/app/views/general/_responsive_stylesheets.html.erb
@@ -0,0 +1,11 @@
+<!--[if LTE IE 7]>
+<%= stylesheet_link_tag 'responsive/application-lte-ie7', :title => "Main", :rel => "stylesheet", :media => "all" %>
+<![endif]-->
+
+<!--[if IE 8]>
+<%= stylesheet_link_tag 'responsive/application-ie8', :title => "Main", :rel => "stylesheet", :media => "all" %>
+<![endif]-->
+
+<!--[if GT IE 8]><!-->
+<%= stylesheet_link_tag 'responsive/application', :title => "Main", :rel => "stylesheet", :media => "all" %>
+<!--<![endif]-->
diff --git a/app/views/general/_responsive_topnav.html.erb b/app/views/general/_responsive_topnav.html.erb
new file mode 100644
index 000000000..e726c17f4
--- /dev/null
+++ b/app/views/general/_responsive_topnav.html.erb
@@ -0,0 +1,32 @@
+<div id="topnav">
+ <ul id="navigation">
+
+ <li class="<%= 'selected' if params[:controller] == 'request' and ['new', 'select_authority'].include?(params[:action]) %>">
+ <%= link_to _("Make a request"), select_authority_path, :id => 'make-request-link' %>
+ </li>
+
+ <li class="<%= 'selected' if params[:controller] == 'request' and !['new', 'select_authority'].include?(params[:action]) %>">
+ <%= link_to _("View requests"), request_list_successful_path %>
+ </li>
+
+ <li class="<%= 'selected' if params[:controller] == 'public_body' %>">
+ <%= link_to _("View authorities"), list_public_bodies_default_path %>
+ </li>
+
+ <% unless AlaveteliConfiguration::blog_feed.empty? %>
+ <li class="<%= 'selected' if params[:controller] == 'general' and params[:action] == 'blog' %>"><%= link_to _("Read blog"), blog_path %></li>
+ <% end %>
+ <li class="<%= 'selected' if params[:controller] == 'help' %>">
+ <%= link_to _("Help"), help_about_path %>
+ </li>
+
+ <li id="navigation_search">
+ <form id="navigation_search_form" method="post" action="<%= search_redirect_path %>">
+ <label for="navigation_search_button">
+ <img src="/assets/search.png" alt="Search:">
+ </label>
+ <%= text_field_tag 'query', params[:query], { :id => "navigation_search_button", :title => "type your search term here" } %>
+ </form>
+ </li>
+ </ul>
+</div>
diff --git a/app/views/general/_stylesheet_includes.html.erb b/app/views/general/_stylesheet_includes.html.erb
index f76c146de..ac7c37217 100644
--- a/app/views/general/_stylesheet_includes.html.erb
+++ b/app/views/general/_stylesheet_includes.html.erb
@@ -1,22 +1,40 @@
-<%- if @render_to_file %>
- <style>
- <%= Rails.application.assets["main.css"].to_s %>
- <%= Rails.application.assets["print.css"].to_s %>
- </style>
-<%- else %>
- <%= stylesheet_link_tag 'application', :title => "Main", :rel => "stylesheet", :media => "all" %>
- <%= stylesheet_link_tag 'fonts', :rel => "stylesheet", :media => "all" %>
- <%= stylesheet_link_tag 'print', :rel => "stylesheet", :media => "print" %>
- <% if !params[:print_stylesheet].nil? %>
- <%= stylesheet_link_tag 'print', :rel => "stylesheet", :media => "all" %>
+<% if AlaveteliConfiguration::responsive_styling || params[:responsive] %>
+ <%- if @render_to_file %>
+ <style>
+ <%= Rails.application.assets["responsive/application.css"].to_s %>
+ <%= Rails.application.assets["responsive/print.css"].to_s %>
+ </style>
+ <%- else %>
+ <%= render :partial => 'general/responsive_stylesheets' %>
+ <%= stylesheet_link_tag 'responsive/print', :rel => "stylesheet", :media => "print" %>
+ <% if !params[:print_stylesheet].nil? %>
+ <%= stylesheet_link_tag 'responsive/print', :rel => "stylesheet", :media => "all" %>
+ <% end %>
+ <% if AlaveteliConfiguration::force_registration_on_new_request %>
+ <%= stylesheet_link_tag 'fancybox.css', :rel => "stylesheet" %>
+ <% end %>
<% end %>
- <!--[if LT IE 7]>
- <%= stylesheet_link_tag 'ie6.css' %>
- <![endif]-->
- <!--[if LT IE 8]>
- <%= stylesheet_link_tag 'ie7.css' %>
- <![endif]-->
- <% if AlaveteliConfiguration::force_registration_on_new_request %>
+<% else %>
+ <%- if @render_to_file %>
+ <style>
+ <%= Rails.application.assets["main.css"].to_s %>
+ <%= Rails.application.assets["print.css"].to_s %>
+ </style>
+ <%- else %>
+ <%= stylesheet_link_tag 'application', :title => "Main", :rel => "stylesheet", :media => "all" %>
+ <%= stylesheet_link_tag 'fonts', :rel => "stylesheet", :media => "all" %>
+ <%= stylesheet_link_tag 'print', :rel => "stylesheet", :media => "print" %>
+ <% if !params[:print_stylesheet].nil? %>
+ <%= stylesheet_link_tag 'print', :rel => "stylesheet", :media => "all" %>
+ <% end %>
+ <!--[if LT IE 7]>
+ <%= stylesheet_link_tag 'ie6.css' %>
+ <![endif]-->
+ <!--[if LT IE 8]>
+ <%= stylesheet_link_tag 'ie7.css' %>
+ <![endif]-->
+ <% if AlaveteliConfiguration::force_registration_on_new_request %>
<%= stylesheet_link_tag 'fancybox.css', :rel => "stylesheet" %>
+ <% end %>
<% end %>
<% end %>
diff --git a/app/views/general/blog.html.erb b/app/views/general/blog.html.erb
index b81989ca8..5dda7ab74 100644
--- a/app/views/general/blog.html.erb
+++ b/app/views/general/blog.html.erb
@@ -1,21 +1,5 @@
<% @title = _("{{site_name}} blog and tweets", :site_name => site_name) %>
-<% if !@twitter_user.empty? %>
-<div id="right_column">
- <div class="act_link">
- <h2><%= _("Stay up to date") %></h2>
- <%= image_tag "twitter-16.png", :alt => "twitter icon", :class => "twitter-icon" %> <a href="https://twitter.com/<%= @twitter_user %>"><%= _("Follow us on twitter") %></a><br/><br/>
- <%= image_tag "feed-16.png", :alt => "RSS icon" %> <a href="<%= @feed_url %>"><%= _("Subscribe to blog") %></a>
- </div>
- <% if AlaveteliConfiguration::twitter_widget_id %>
- <div id="twitter">
- <a class="twitter-timeline" data-dnt=true href="https://twitter.com/<%= AlaveteliConfiguration::twitter_username %>" data-widget-id="<%= AlaveteliConfiguration::twitter_widget_id %>">Tweets by @<%= AlaveteliConfiguration::twitter_username %></a>
- <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
- </div>
- <% end %>
-</div>
-<% end %>
-
<div id="left_column">
<h1><%=@title %></h1>
@@ -42,3 +26,18 @@
</div>
</div>
+<% if !@twitter_user.empty? %>
+<div id="right_column">
+ <div class="act_link">
+ <h2><%= _("Stay up to date") %></h2>
+ <%= image_tag "twitter-16.png", :alt => "twitter icon", :class => "twitter-icon" %> <a href="https://twitter.com/<%= @twitter_user %>"><%= _("Follow us on twitter") %></a><br/><br/>
+ <%= image_tag "feed-16.png", :alt => "RSS icon" %> <a href="<%= @feed_url %>"><%= _("Subscribe to blog") %></a>
+ </div>
+ <% if AlaveteliConfiguration::twitter_widget_id %>
+ <div id="twitter">
+ <a class="twitter-timeline" data-dnt=true href="https://twitter.com/<%= AlaveteliConfiguration::twitter_username %>" data-widget-id="<%= AlaveteliConfiguration::twitter_widget_id %>">Tweets by @<%= AlaveteliConfiguration::twitter_username %></a>
+ <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+ </div>
+ <% end %>
+</div>
+<% end %>
diff --git a/app/views/general/search.html.erb b/app/views/general/search.html.erb
index 45268d7f0..3914a2f30 100644
--- a/app/views/general/search.html.erb
+++ b/app/views/general/search.html.erb
@@ -136,15 +136,18 @@
<div style="clear:both;"></div>
<% if @total_hits == 0 %>
+ <div class="results_section">
<h2><%=@title %></h2>
<% if @spelling_correction %>
<p id="did_you_mean"><%= _('Did you mean: {{correction}}', :correction => search_link(@spelling_correction)) %></p>
<% end %>
+ </div>
<% end %>
<% if not @query.nil? %>
- <div class="results_section">
- <% if @xapian_bodies_hits > 0 %>
+
+ <% if @xapian_bodies_hits > 0 %>
+ <div class="results_section">
<% if @xapian_bodies_hits == 1 && @page == 1 %>
<h2 class="publicbody_results"><%= _('One public authority found') %></h2>
<% else %>
@@ -158,13 +161,13 @@
</div>
<%= will_paginate WillPaginate::Collection.new(@page, @bodies_per_page, @xapian_bodies.matches_estimated) %>
- <% elsif @variety_postfix == 'bodies' %>
- <p><%= raw(_('<a href="{{browse_url}}">Browse all</a> or <a href="{{add_url}}">ask us to add one</a>.', :browse_url => list_public_bodies_default_path.html_safe, :add_url => (help_requesting_path + '#missing_body').html_safe)) %></p>
- <% end %>
- </div>
+ </div>
+ <% elsif @variety_postfix == 'bodies' %>
+ <p><%= raw(_('<a href="{{browse_url}}">Browse all</a> or <a href="{{add_url}}">ask us to add one</a>.', :browse_url => list_public_bodies_default_path.html_safe, :add_url => (help_requesting_path + '#missing_body').html_safe)) %></p>
+ <% end %>
- <div class="results_section">
- <% if @xapian_users_hits > 0 %>
+ <% if @xapian_users_hits > 0 %>
+ <div class="results_section">
<% if @xapian_users_hits == 1 && @page == 1 %>
<h2 class="person_results"><%= _("One person found") %></h2>
<% else %>
@@ -178,11 +181,12 @@
</div>
<%= will_paginate WillPaginate::Collection.new(@page, @users_per_page, @xapian_users.matches_estimated) %>
- <% end %>
- </div>
+ </div>
+ <% end %>
- <div class="results_section">
- <% if @xapian_requests_hits > 0 %>
+
+ <% if @xapian_requests_hits > 0 %>
+ <div class="results_section">
<% if @xapian_requests_hits == 1 && @page == 1 %>
<h2 class="foi_results"><%= _("One FOI request found") %></h2>
<% else %>
@@ -196,8 +200,8 @@
</div>
<%= will_paginate WillPaginate::Collection.new(@page, @requests_per_page, @xapian_requests.matches_estimated) %>
- <% end %>
- </div>
+ </div>
+ <% end %>
<% end %>
<% if @advanced %>
diff --git a/app/views/info_request_batch/show.html.erb b/app/views/info_request_batch/show.html.erb
index 2c7e42072..8bb834b3c 100644
--- a/app/views/info_request_batch/show.html.erb
+++ b/app/views/info_request_batch/show.html.erb
@@ -1,25 +1,29 @@
<% @title = _("{{title}} - a batch request", :title => @info_request_batch.title) %>
-<h1><%= @title %></h1>
-<% if @info_request_batch.sent_at %>
- <%= n_('Sent to one authority by {{info_request_user}} on {{date}}.', 'Sent to {{authority_count}} authorities by {{info_request_user}} on {{date}}.', @info_request_batch.info_requests.size, :authority_count=> @info_request_batch.info_requests.size, :info_request_user => user_link(@info_request_batch.user), :date => simple_date(@info_request_batch.sent_at)) %>
- <div class="results_section">
- <div class="results_block">
- <% @info_requests.each do |info_request| %>
- <%= render :partial => 'request/request_listing_via_event', :locals => { :event => info_request.last_event_forming_initial_request } %>
- <% end %>
- </div>
- <%= will_paginate WillPaginate::Collection.new(@page, @per_page, @info_request_batch.info_requests.visible.count) %>
+<div class="info_request_batch_intro">
+ <h1><%= @title %></h1>
+ <% if @info_request_batch.sent_at %>
+ <%= n_('Sent to one authority by {{info_request_user}} on {{date}}.', 'Sent to {{authority_count}} authorities by {{info_request_user}} on {{date}}.', @info_request_batch.info_requests.size, :authority_count=> @info_request_batch.info_requests.size, :info_request_user => user_link(@info_request_batch.user), :date => simple_date(@info_request_batch.sent_at)) %>
+
+ </div>
+ <div class="results_section">
+ <div class="results_block">
+ <% @info_requests.each do |info_request| %>
+ <%= render :partial => 'request/request_listing_via_event', :locals => { :event => info_request.last_event_forming_initial_request } %>
+ <% end %>
+ </div>
+ <%= will_paginate WillPaginate::Collection.new(@page, @per_page, @info_request_batch.info_requests.visible.count) %>
</div>
<% else %>
<%= _('Created by {{info_request_user}} on {{date}}.', :info_request_user => user_link(@info_request_batch.user), :date => simple_date(@info_request_batch.created_at)) %>
- <%= _('Requests will be sent to the following bodies:') %>
- <div class="results_section">
- <div class="results_block">
- <%= render :partial => 'public_body/body_listing', :locals => { :public_bodies => @public_bodies } %>
- </div>
- <%= will_paginate WillPaginate::Collection.new(@page, @per_page, @info_request_batch.public_bodies.count) %>
- </div>
+ <%= _('Requests will be sent to the following bodies:') %>
+ </div>
+ <div class="results_section">
+ <div class="results_block">
+<%= render :partial => 'public_body/body_listing', :locals => { :public_bodies => @public_bodies } %>
+ </div>
+ <%= will_paginate WillPaginate::Collection.new(@page, @per_page, @info_request_batch.public_bodies.count) %>
+ </div>
<% end %>
diff --git a/app/views/layouts/default.html.erb b/app/views/layouts/default.html.erb
index 93b3c3698..50abc59c3 100644
--- a/app/views/layouts/default.html.erb
+++ b/app/views/layouts/default.html.erb
@@ -40,7 +40,9 @@
<% 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' %>">
@@ -50,7 +52,7 @@
$(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',
@@ -84,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] %>
@@ -100,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 a4278ab24..5101236b2 100644
--- a/app/views/layouts/no_chrome.html.erb
+++ b/app/views/layouts/no_chrome.html.erb
@@ -14,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 => '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">
diff --git a/app/views/request/_summary_suggestion.html.erb b/app/views/request/_summary_suggestion.html.erb
index a5da09cda..74d9c46c5 100644
--- a/app/views/request/_summary_suggestion.html.erb
+++ b/app/views/request/_summary_suggestion.html.erb
@@ -1,5 +1,5 @@
<% if @info_request.law_used == 'eir' %>
- <%= _("'Pollution levels over time for the River Tyne'") %>
+ <%= _("'Pollution levels over time for the River Tyne'") -%>
<% else %>
- <%= _("'Crime statistics by ward level for Wales'") %>
+ <%= _("'Crime statistics by ward level for Wales'") -%>
<% end %>
diff --git a/app/views/request/_view_html_prefix.html.erb b/app/views/request/_view_html_prefix.html.erb
index 63fac7c6d..d21f234b9 100644
--- a/app/views/request/_view_html_prefix.html.erb
+++ b/app/views/request/_view_html_prefix.html.erb
@@ -6,7 +6,7 @@
<%=link_to _("Download original attachment"), @attachment_url %>
<br>(<%=h @attachment.name_of_content_type %>)
</div>
- <%= _('This is an HTML version of an attachment to the Freedom of Information request')%>
- '<%=link_to h(@info_request.title), incoming_message_path(@incoming_message)%>'.
+ <p class="view_html_description"><%= _('This is an HTML version of an attachment to the Freedom of Information request')%>
+ '<%=link_to h(@info_request.title), incoming_message_path(@incoming_message)%>'.</p>
</div>
diff --git a/app/views/request/_view_html_stylesheet.html.erb b/app/views/request/_view_html_stylesheet.html.erb
index 125ce66ec..f5e40e403 100644
--- a/app/views/request/_view_html_stylesheet.html.erb
+++ b/app/views/request/_view_html_stylesheet.html.erb
@@ -1 +1,6 @@
-<link type="text/css" title="Main" rel="stylesheet" media="screen" href="/assets/application.css">
+<% if AlaveteliConfiguration::responsive_styling || params[:responsive] %>
+ <%= render :partial => 'responsive_stylesheets' %>
+<% else %>
+ <link type="text/css" title="Main" rel="stylesheet" media="screen" href="/assets/application.css">
+
+<% end %>
diff --git a/app/views/request_game/play.html.erb b/app/views/request_game/play.html.erb
index d5aa0d00e..6020bd101 100644
--- a/app/views/request_game/play.html.erb
+++ b/app/views/request_game/play.html.erb
@@ -27,20 +27,21 @@
<% end %>
</table>
</div>
-<h2><%= _("Play the request categorisation game!")%></h2>
-<p><%= _("Some people who've made requests haven't let us know whether they were
-successful or not. We need <strong>your</strong> help &ndash;
-choose one of these requests, read it, and let everyone know whether or not the
-information has been provided. Everyone'll be exceedingly grateful.")%></p>
-<% for info_request in @requests %>
- <%= render :partial => 'request/request_listing_single', :locals => { :info_request => info_request } %>
-<% end %>
-<p id="game_buttons">
-<%= button_to _('I don\'t like these ones &mdash; give me some more!'), categorise_play_url %>
-<%= button_to _('I don\'t want to do any more tidying now!'), categorise_stop_url %>
-</p>
-<p><%= _('Thanks for helping - your work will make it easier for everyone to find successful
-responses, and maybe even let us make league tables...')%></p>
-
+<div id="game">
+ <h2><%= _("Play the request categorisation game!")%></h2>
+ <p><%= _("Some people who've made requests haven't let us know whether they were
+ successful or not. We need <strong>your</strong> help &ndash;
+ choose one of these requests, read it, and let everyone know whether or not the
+ information has been provided. Everyone'll be exceedingly grateful.")%></p>
+ <% for info_request in @requests %>
+ <%= render :partial => 'request/request_listing_single', :locals => { :info_request => info_request } %>
+ <% end %>
+ <p id="game_buttons">
+ <%= button_to _('I don\'t like these ones &mdash; give me some more!'), categorise_play_url %>
+ <%= button_to _('I don\'t want to do any more tidying now!'), categorise_stop_url %>
+ </p>
+ <p><%= _('Thanks for helping - your work will make it easier for everyone to find successful
+ responses, and maybe even let us make league tables...')%></p>
+</div>
diff --git a/app/views/user/show.html.erb b/app/views/user/show.html.erb
index 8dd8c6b88..ce328b46f 100644
--- a/app/views/user/show.html.erb
+++ b/app/views/user/show.html.erb
@@ -42,7 +42,7 @@
<% end %>
</div>
- <div class="header_left">
+ <div id="header_left">
<p id="user_photo_on_profile">
<% if @display_user.profile_photo %>
<% if @is_you %>