aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrancis <francis>2008-01-21 19:12:46 +0000
committerfrancis <francis>2008-01-21 19:12:46 +0000
commit8bf2c6521b5566caa922c26c1ad17e701452646a (patch)
tree40c4be0ccf1bdfc5f07634e0567303bb9113434a
parentec8f08ba07a909378c8d4bc0cbb67da8cf8b50f3 (diff)
Say it is development site on about page.
-rw-r--r--app/helpers/application_helper.rb7
-rw-r--r--app/views/help/about.rhtml10
-rw-r--r--todo.txt2
3 files changed, 16 insertions, 3 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 8f9f3cd3d..ce78011a0 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -5,13 +5,18 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: application_helper.rb,v 1.14 2008-01-14 12:27:56 francis Exp $
+# $Id: application_helper.rb,v 1.15 2008-01-21 19:12:46 francis Exp $
module ApplicationHelper
# URL generating functions are needed by all controllers (for redirects)
# views (for links), so include them into all of both.
include LinkToHelper
+ # Contact email address
+ def contact_email
+ MySociety::Config.get("CONTACT_EMAIL", 'contact@localhost')
+ end
+
# Copied from error_messages_for in active_record_helper.rb
def foi_error_messages_for(*params)
options = params.last.is_a?(Hash) ? params.pop.symbolize_keys : {}
diff --git a/app/views/help/about.rhtml b/app/views/help/about.rhtml
index 20b7938a8..ac92602bf 100644
--- a/app/views/help/about.rhtml
+++ b/app/views/help/about.rhtml
@@ -1,3 +1,13 @@
+<dt>Is this site still in development?</dt>
+
+<dd>Yes, that's right. The site is currently being tested with a handful of
+real requests, and improved. The design and even the name are not final.
+If you have any comments, or would like to help test by sending a request
+to a public body that we don't have yet, then email
+
+<a href="mailto:<%=contact_email%>"><%=contact_email%></a>.
+</dd>
+
<h1>Introduction to GovernmentSpy</h1>
<dl>
diff --git a/todo.txt b/todo.txt
index 9e1df184d..5ad645332 100644
--- a/todo.txt
+++ b/todo.txt
@@ -74,8 +74,6 @@ Alert somewhere if working days table not up to date
Test it works if exim is down - e.g. not accepting connections
-Remove security warning from admin pages
-
Make it so if the pipe fails, exim tries again rather than sending an error to the public body.
Or so errors go to an admin somehow, at the very least.