{"action":"created","issue":{"url":"https://api.github.com/repos/mysociety/alaveteli/issues/2783","labels_url":"https://api.github.com/repos/mysociety/alaveteli/issues/2783/labels{/name}","comments_url":"https://api.github.com/repos/mysociety/alaveteli/issues/2783/comments","events_url":"https://api.github.com/repos/mysociety/alaveteli/issues/2783/events","html_url":"https://github.com/mysociety/alaveteli/issues/2783","id":105431554,"number":2783,"title":"Flash messages out of position on the homepage","user":{"login":"garethrees","id":282788,"avatar_url":"https://avatars.githubusercontent.com/u/282788?v=3","gravatar_id":"","url":"https://api.github.com/users/garethrees","html_url":"https://github.com/garethrees","followers_url":"https://api.github.com/users/garethrees/followers","following_url":"https://api.github.com/users/garethrees/following{/other_user}","gists_url":"https://api.github.com/users/garethrees/gists{/gist_id}","starred_url":"https://api.github.com/users/garethrees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garethrees/subscriptions","organizations_url":"https://api.github.com/users/garethrees/orgs","repos_url":"https://api.github.com/users/garethrees/repos","events_url":"https://api.github.com/users/garethrees/events{/privacy}","received_events_url":"https://api.github.com/users/garethrees/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mysociety/alaveteli/labels/3%20-%20current%20sprint","name":"3 - current sprint","color":"009800"},{"url":"https://api.github.com/repos/mysociety/alaveteli/labels/design","name":"design","color":"75A508"},{"url":"https://api.github.com/repos/mysociety/alaveteli/labels/user%20experience","name":"user experience","color":"DCCBBF"}],"state":"open","locked":false,"assignee":{"login":"garethrees","id":282788,"avatar_url":"https://avatars.githubusercontent.com/u/282788?v=3","gravatar_id":"","url":"https://api.github.com/users/garethrees","html_url":"https://github.com/garethrees","followers_url":"https://api.github.com/users/garethrees/followers","following_url":"https://api.github.com/users/garethrees/following{/other_user}","gists_url":"https://api.github.com/users/garethrees/gists{/gist_id}","starred_url":"https://api.github.com/users/garethrees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garethrees/subscriptions","organizations_url":"https://api.github.com/users/garethrees/orgs","repos_url":"https://api.github.com/users/garethrees/repos","events_url":"https://api.github.com/users/garethrees/events{/privacy}","received_events_url":"https://api.github.com/users/garethrees/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-09-08T17:29:45Z","updated_at":"2015-09-29T11:44:01Z","closed_at":null,"body":"![screen shot 2015-09-08 at 18 29 08](https://cloud.githubusercontent.com/assets/282788/9742366/8f5f5f18-5657-11e5-9b68-972c8e933862.png)\r\n"},"comment":{"url":"https://api.github.com/repos/mysociety/alaveteli/issues/comments/144034826","html_url":"https://github.com/mysociety/alaveteli/issues/2783#issuecomment-144034826","issue_url":"https://api.github.com/repos/mysociety/alaveteli/issues/2783","id":144034826,"user":{"login":"garethrees","id":282788,"avatar_url":"https://avatars.githubusercontent.com/u/282788?v=3","gravatar_id":"","url":"https://api.github.com/users/garethrees","html_url":"https://github.com/garethrees","followers_url":"https://api.github.com/users/garethrees/followers","following_url":"https://api.github.com/users/garethrees/following{/other_user}","gists_url":"https://api.github.com/users/garethrees/gists{/gist_id}","starred_url":"https://api.github.com/users/garethrees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garethrees/subscriptions","organizations_url":"https://api.github.com/users/garethrees/orgs","repos_url":"https://api.github.com/users/garethrees/repos","events_url":"https://api.github.com/users/garethrees/events{/privacy}","received_events_url":"https://api.github.com/users/garethrees/received_events","type":"User","site_admin":false},"created_at":"2015-09-29T11:44:01Z","updated_at":"2015-09-29T11:44:01Z","body":"Okay so this works, but we end up with two `#wrapper` and `#content` elements.\r\n\r\n```diff\r\ndiff --git a/app/controllers/general_controller.rb b/app/controllers/general_controller.rb\r\nindex 75de677..f008c80 100644\r\n--- a/app/controllers/general_controller.rb\r\n+++ b/app/controllers/general_controller.rb\r\n@@ -17,6 +17,7 @@ class GeneralController < ApplicationController\r\n     medium_cache\r\n     @locale = locale_from_params\r\n     successful_query = InfoRequestEvent.make_query_from_params( :latest_status => ['successful'] )\r\n+    flash.now[:notice] = 'hi'\r\n     @request_events, @request_events_all_successful = InfoRequest.recent_requests\r\n     @track_thing = TrackThing.create_track_for_search_query(successful_query)\r\n     @number_of_requests = InfoRequest.visible.count\r\ndiff --git a/app/views/general/_responsive_header.html.erb b/app/views/general/_responsive_header.html.erb\r\nindex e32dca2..d9efff9 100644\r\n--- a/app/views/general/_responsive_header.html.erb\r\n+++ b/app/views/general/_responsive_header.html.erb\r\n@@ -38,5 +38,16 @@\r\n </div>\r\n \r\n <% if params[:action] == 'frontpage' %>\r\n+  <div id=\"wrapper\">\r\n+    <div id=\"content\">\r\n+      <% if flash[:notice] %>\r\n+        <div id=\"notice\"><%= flash[:notice] %></div>\r\n+      <% end %>\r\n+      <% if flash[:error] %>\r\n+        <div id=\"error\"><%= flash[:error] %></div>\r\n+      <% end %>\r\n+    </div>\r\n+  </div>\r\n+\r\n   <%= render :partial => \"frontpage_hero\" %>\r\n <% end %>\r\ndiff --git a/app/views/layouts/default.html.erb b/app/views/layouts/default.html.erb\r\nindex d7caa3d..74e6564 100644\r\n--- a/app/views/layouts/default.html.erb\r\n+++ b/app/views/layouts/default.html.erb\r\n@@ -107,11 +107,13 @@\r\n       <% end %>\r\n       <div id=\"wrapper\">\r\n         <div id=\"content\">\r\n-          <% if flash[:notice] %>\r\n-            <div id=\"notice\"><%= flash[:notice] %></div>\r\n-          <% end %>\r\n-          <% if flash[:error] %>\r\n-            <div id=\"error\"><%= flash[:error] %></div>\r\n+          <% unless params[:action] == 'frontpage' %>\r\n+            <% if flash[:notice] %>\r\n+              <div id=\"notice\"><%= flash[:notice] %></div>\r\n+            <% end %>\r\n+            <% if flash[:error] %>\r\n+              <div id=\"error\"><%= flash[:error] %></div>\r\n+            <% end %>\r\n           <% end %>\r\n \r\n           <div id=\"<%= controller.controller_name + \"_\" + controller.action_name %>\" class=\"controller_<%= controller.controller_name %>\">\r\n@@ -143,6 +145,7 @@\r\n         pageTracker._trackPageview();\r\n       </script>\r\n \r\n+\r\n     <% end %>\r\n \r\n     <%= render :partial => 'general/before_body_end' %>\r\n```"}}