aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/application_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index b3c62fc5e..55e71a42e 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.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: application_helper.rb,v 1.6 2007-10-09 20:02:13 francis Exp $
+# $Id: application_helper.rb,v 1.7 2007-10-16 21:17:14 louise Exp $
module ApplicationHelper
@@ -38,6 +38,14 @@ module ApplicationHelper
def simple_date(date)
return date.strftime("%e %B %Y")
end
+
+ def request_link(info_request)
+ link_to h(info_request.title), request_url(:id => info_request)
+ end
+
+ def public_body_link(public_body)
+ link_to h(public_body.short_name), public_body_url(:short_name => public_body.short_name)
+ end
end