diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/request_controller.rb | 4 | ||||
-rw-r--r-- | app/views/request/show.rhtml | 37 |
2 files changed, 35 insertions, 6 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index daf32b802..fbdfd3ca3 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -4,7 +4,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: request_controller.rb,v 1.75 2008-04-18 08:54:36 francis Exp $ +# $Id: request_controller.rb,v 1.76 2008-04-22 10:11:00 francis Exp $ class RequestController < ApplicationController @@ -30,7 +30,7 @@ class RequestController < ApplicationController @new_responses_count = @events_needing_description.select {|i| i.event_type == 'response'}.size # Sidebar stuff - limit = 8 + limit = 3 + 1 @info_requests_same_user_same_body = InfoRequest.find(:all, :order => "created_at desc", :conditions => ["prominence = 'normal' and user_id = ? and public_body_id = ? and id <> ?", @info_request.user_id, @info_request.public_body_id, @info_request.id], :limit => limit) diff --git a/app/views/request/show.rhtml b/app/views/request/show.rhtml index f748102c5..74f8ca38d 100644 --- a/app/views/request/show.rhtml +++ b/app/views/request/show.rhtml @@ -108,10 +108,39 @@ <% end %> <% end %> - <!--<h2>Juicy stuff will be here</h2> - <p>For now it is just padding to make the messages on the left - narrower, so I can see what the formatting is like. - --> + <h2>Things to do about this request</h2> + + <!-- WriteToThem envelope box, start --> + <script type="text/javascript"> + function clearDefault(el) { + if (el.defaultValue==el.value) el.value = ""; + } + function fillDefault(el) { + if (el.value=="") el.value = "Your Postcode"; + } + </script> + <div style="width:167px;height:120px; + background: url(http://www.writetothem.com/envelope_bg.gif) no-repeat 0 0; + font:9pt/11pt arial,helvetica,sans-serif;position:relative;"> + <form method="get" action="http://www.writetothem.com/"> + <div style="padding:55px 0 0 20px;"> + <label for="pc" style="display:none;"> + Contact Your Politician + </label> + <input type="text" value="Your Postcode" name="pc" size="13" + style="width:90px;vertical-align:bottom; + font:8pt/11pt arial,helvetica,sans-serif;color:#666;" + onfocus="clearDefault(this)" onblur="fillDefault(this)" /> + <input type="image" value="Go" style="vertical-align:bottom;" + src="http://www.writetothem.com/envelope_arrow.gif" /> + </div> + </form> + <a href="http://www.writetothem.com/" title="Visit writetothem.com" + style="display:block;position:absolute;bottom:0;width:100%;overflow:hidden; + text-indent:-1234em;height:30px;bottom:0;">writetothem.com</a> + </div> + <!-- WriteToThem envelope box, end--> + <!--<h2>Blog posts about this request</h2> <p>... <h2>Wikipedia articles</h2> |