diff options
author | francis <francis> | 2008-09-13 22:17:23 +0000 |
---|---|---|
committer | francis <francis> | 2008-09-13 22:17:23 +0000 |
commit | 2fe306e969fa46bea4e2638e853e8f97f70e357f (patch) | |
tree | 26600abf5cae59b2ba7e6b21df42ae893dd08896 | |
parent | fbac01ec333aaf20e6ee1e256bd1051f958a6f1b (diff) |
Offer search on 404 pages
-rw-r--r-- | app/views/general/exception_caught.rhtml | 12 | ||||
-rw-r--r-- | todo.txt | 4 |
2 files changed, 9 insertions, 7 deletions
diff --git a/app/views/general/exception_caught.rhtml b/app/views/general/exception_caught.rhtml index 0cc08cce5..44d5803de 100644 --- a/app/views/general/exception_caught.rhtml +++ b/app/views/general/exception_caught.rhtml @@ -1,12 +1,18 @@ <h1>Sorry, we couldn't find that page</h1> -<p>You've requested a page which doesn't exist, or which is broken. -Perhaps you mistyped the address? Other things you can try:</p> +<p>The page either doesn't exist, or is broken. Things you can try now:</p> <ul> -<li>Go to <a href="/">our front page</a></li> +<li>Check for mistakes if you typed or copied the address.</li> +<li>Search the site to find what you were looking for. + <% form_tag({:controller => "general", :action => "search_redirect"}, {:id => "search_form"}) do %> + <%= text_field_tag 'query', params[:query], { :size => 30 } %> + <%= submit_tag "Search" %> + <% end %> +</li> <li><a href="/help/contact">Contact us</a> to tell us about the problem</li> +<li>Go to our <a href="/">front page</a></li> </ul> <p id="error_technical_details"><strong>Technical details:</strong> <%=@exception_class ? @exception_class : "Unknown"%></p> @@ -64,8 +64,6 @@ Admin: Somehow fold up the enormous pages on many admin pages Have internal links to different parts of request page -Comments etc. do not sort in right order - by date, but not by time - "Excessive use of speed by Police vehicles." appears only once, even though multiple annotations. Perhaps show grouping count? http://www.whatdotheyknow.com/search/variety:comment/newest @@ -190,8 +188,6 @@ Offer option of one RSS feed with all things you are tracking in it. Maybe. "Some of the information" option should give you choice of complaining if you like. -Offer search on 404s - For followups, have radio button to say is it a new request or followup? Interface for when you change your email address - easier to do now with post_redirect.circumstance? |