diff options
author | francis <francis> | 2008-05-21 10:51:23 +0000 |
---|---|---|
committer | francis <francis> | 2008-05-21 10:51:23 +0000 |
commit | 4945a4c4801326553be87c80a381afdd787841c3 (patch) | |
tree | 1da01bc40aa136b56c9fb080a3332bfe9060c4f9 /app/controllers/general_controller.rb | |
parent | 2452b06d4b9a45d43b01af261b19a842a747dbe9 (diff) |
Bullet list in credits on about page.
Rename rss_at to described_at.
Email alerts based on date of description, not just creation date (so don't
miss things that were created before alert but described only recently)
Tidy up when described vs. newest is used for sort order.
Caching of text extracted from attachments, and display in search results.
Add some tests for things that aren't tested.
(alright, maybe we *should* use git/hg if I'm going to keep doing this many
separate commits on a train)
Diffstat (limited to 'app/controllers/general_controller.rb')
-rw-r--r-- | app/controllers/general_controller.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/general_controller.rb b/app/controllers/general_controller.rb index 5853f4ba3..7802b701e 100644 --- a/app/controllers/general_controller.rb +++ b/app/controllers/general_controller.rb @@ -5,7 +5,7 @@ # Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: general_controller.rb,v 1.27 2008-05-19 23:28:39 francis Exp $ +# $Id: general_controller.rb,v 1.28 2008-05-21 10:51:24 francis Exp $ class GeneralController < ApplicationController @@ -57,6 +57,8 @@ class GeneralController < ApplicationController # in config/routes.rb for comments. combined = params[:combined] sortby = nil + # XXX currently /described isn't linked to anywhere, just used in RSS and for /list/successful + # This is because it's confusingly different from /newest - but still useful for power users. if combined.size > 1 and (combined[-1] == 'newest' or combined[-1] == 'described') sortby = combined[-1] combined = combined[0..-2] |