diff options
author | francis <francis> | 2009-08-26 23:13:28 +0000 |
---|---|---|
committer | francis <francis> | 2009-08-26 23:13:28 +0000 |
commit | 2b06475801c55ecce628f3e05b05b31fd21d6470 (patch) | |
tree | 495947c414308cdc5d7a04019e0b5df657a0b8d6 | |
parent | 566da1621db32170a7ea3549d63e8943f00f9b29 (diff) |
Add help about not putting allegations in requests.
Add help about not impersonating.
Link to game from help.
Require login to play request game (probably should show some stuff
without login, but is nice to have login before they get to individual
request pages)
Cope with the game finishing (all being classified).
Make action links in game into buttons.
Margin at bottom of login page.
-rw-r--r-- | app/controllers/request_game_controller.rb | 17 | ||||
-rw-r--r-- | app/views/help/about.rhtml | 21 | ||||
-rw-r--r-- | app/views/request/_describe_state.rhtml | 1 | ||||
-rw-r--r-- | app/views/request/new.rhtml | 3 | ||||
-rw-r--r-- | app/views/request_game/play.rhtml | 24 | ||||
-rw-r--r-- | public/stylesheets/main.css | 15 |
6 files changed, 66 insertions, 15 deletions
diff --git a/app/controllers/request_game_controller.rb b/app/controllers/request_game_controller.rb index 0cedc2f94..3abb9adf6 100644 --- a/app/controllers/request_game_controller.rb +++ b/app/controllers/request_game_controller.rb @@ -4,17 +4,30 @@ # Copyright (c) 2009 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: request_game_controller.rb,v 1.2 2009-06-23 13:52:25 francis Exp $ +# $Id: request_game_controller.rb,v 1.3 2009-08-26 23:13:28 francis Exp $ class RequestGameController < ApplicationController def play - # XXX make sure they're logged in + if !authenticated?( + :web => "To play the request categorisation game", + :email => "Then you can play the request categorisation game.", + :email_subject => "Play the request categorisation game" + ) + # do nothing - as "authenticated?" has done the redirect to signin page for us + return + end + session[:request_game] = Time.now old = InfoRequest.find_old_unclassified(:conditions => ["prominence = 'normal'"], :age_in_days => 10) @missing = old.size @requests = old.sort_by{ rand }.slice(0..2) + + if @missing == 0 + flash[:notice] = 'All done! Thank you very much for your help.' + redirect_to frontpage_url + end end # Requests similar to this one diff --git a/app/views/help/about.rhtml b/app/views/help/about.rhtml index e8f3ba748..ff4d6a0ae 100644 --- a/app/views/help/about.rhtml +++ b/app/views/help/about.rhtml @@ -146,6 +146,23 @@ website) explains how to do this.</p> <p>If you see that somebody has included personal information, perhaps unwittingly, in a request, please <a href="/help/contact">contact us</a> immediately so we can remove it.</p> +</dd> + +<dt id="focussed">Why should I keep my request focussed?<a href="#focussed">#</a> </dt> + +<dd> +<p>Firstly, WhatDoTheyKnow is not a place to run a campaign. If you make +allegations about any individual, we will have to remove your request. This not +only avoids problems with libel law, but it also makes it more likely your request will +be answered quietly "under the wire". If you want confrontation, please <%= +link_to 'start your own blog', "http://wordpress.com/"%>. </p> + +<p>Secondly, there is a limit on the amount an authority needs to spend answering +each request. If you ask for lots of information, the limit might be exceeded, and +you might get nothing. If requests are very complicated, you can often simplify +them by limiting the time period. +</p> +</dd> <dt id="private_requests">I'd like to keep my request secret! (At least until I publish my story) <a href="#private_requests">#</a> </dt> @@ -262,6 +279,8 @@ a good reason why you cannot make the request yourself and cannot ask a friend to. We don't have the resources to do this for everyone. </ul> +<p>Please do not try to impersonate someone else.</p> + </dd> <dt id="full_address">They've asked for my postal address! <a href="#full_address">#</a> </dt> @@ -584,6 +603,8 @@ You're all stars. <p>Yes please! We're built out of our supporters and volunteers.</p> <ul> <li>You can <a href="https://secure.mysociety.org/donate/">make a donation</a>. We're a registered charity.</li> + <li>Help people find successful requests, and monitor performance of authorities, by + <a href="/categorise/play">playing the categorisation game</a>. </li> <li>Find out FOI email addresses of <a href="#missing_body">authorities that we're missing</a>.</li> <li>Write a blog post about either WhatDoTheyKnow or an interesting request that you've found. Post about it on a forum that you frequent. Tell friends about it.</li> <li>If you're diff --git a/app/views/request/_describe_state.rhtml b/app/views/request/_describe_state.rhtml index 4b8e840f9..e19fe7d4b 100644 --- a/app/views/request/_describe_state.rhtml +++ b/app/views/request/_describe_state.rhtml @@ -104,6 +104,5 @@ please <%= link_to "sign in", signin_url(:r => request.request_uri) %> and let everyone know. - <% end %> diff --git a/app/views/request/new.rhtml b/app/views/request/new.rhtml index fc3288bdc..1eaeb53e3 100644 --- a/app/views/request/new.rhtml +++ b/app/views/request/new.rhtml @@ -50,7 +50,8 @@ </li> <li>Write your request in <strong>simple, precise language</strong>.</li> <li>Ask for <strong>specific</strong> documents or information, this site is not suitable for general enquiries.</li> - <li>Keep it <strong>focussed</strong>. If you ask for everything it might cost too much and you might get nothing.</li> + <li>Keep it <strong>focussed</strong>. Keep the cost down, and avoid making accusations + (<a href="/help/about/#focussed">why?</a>).</li> <li>This site is <strong>public</strong>. Everything you type and any response will be published.</li> </ul> diff --git a/app/views/request_game/play.rhtml b/app/views/request_game/play.rhtml index 393e0b0b6..cbaeee4f1 100644 --- a/app/views/request_game/play.rhtml +++ b/app/views/request_game/play.rhtml @@ -1,20 +1,24 @@ +<% @title = 'Play the request categorisation game!' %> -<h2>Help Us!</h2> +<h2>Play the request categorisation game!</h2> -<p>Hi! We need your help. We have <%= @missing %> requests where the person who -made them hasn't told us whether or not they were successful. We would -be exceedingly grateful if you could choose one of these requests, read -it, and let everyone know whether or not the information has been +<p>Hi! We need your help. We have <%= @missing %> requests which have had a +response, but where the person who made them hasn't told us whether or not they +were successful. </p> + +<p>We would be exceedingly grateful if you could choose one of these requests, +read it, and let everyone know whether or not the information has been provided.</p> <%= render :partial => 'request/request_listing', :locals => { :info_requests => @requests } %> -<hr /> -<ul> - <li><%= link_to "I don't like these ones — give me some more!", play_url %></li> - <li><%= link_to "I don't want to do any more tidying now!", stop_url %></li> -</ul> +<p id="game_buttons"> +<%= button_to "I don't like these ones — give me some more!", play_url %> +<%= button_to "I don't want to do any more tidying now!", 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> diff --git a/public/stylesheets/main.css b/public/stylesheets/main.css index ff1e8af93..93430fe52 100644 --- a/public/stylesheets/main.css +++ b/public/stylesheets/main.css @@ -209,7 +209,11 @@ body padding: 0.20em 10px 0.25em 1em; color: #FFF; } - #logged_in_bar a, #logged_in_bar a:visited { color: #92B3FF; } + +#logged_in_bar a, #logged_in_bar a:visited +{ + color: #92B3FF; +} /*------------------------------------------------ wrapper*/ @@ -864,6 +868,7 @@ p#sign_in_reason { clear: none; width: 23em; + margin-bottom: 1em; } #signup h2, #signin h2 @@ -1007,3 +1012,11 @@ div.act_link img { margin: 0.5em 0; } + +/*------------------------------------------------ request categorisation game */ + +#game_buttons { +} + + + |