diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-02-15 14:16:10 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-02-15 14:47:02 +1100 |
commit | b59116c168c7ca24c36faf73c7848e4537daec47 (patch) | |
tree | 51d7af8aa2aa735f1a952796e664fbcdacd99d7f /app/helpers/link_to_helper.rb | |
parent | 902631ec4f5e1a16b8f08a2ed0ccc86ad2b72c6c (diff) |
Inline helper
Diffstat (limited to 'app/helpers/link_to_helper.rb')
-rwxr-xr-x | app/helpers/link_to_helper.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/app/helpers/link_to_helper.rb b/app/helpers/link_to_helper.rb index bd59f24d0..2c4a30eda 100755 --- a/app/helpers/link_to_helper.rb +++ b/app/helpers/link_to_helper.rb @@ -22,16 +22,12 @@ module LinkToHelper link_to h(info_request.title), request_path(info_request), :class => cls end - def request_admin_url(info_request) - admin_request_show_url(info_request) - end - def request_admin_link(info_request, name="admin", cls=nil) - link_to name, request_admin_url(info_request), :class => cls + link_to name, admin_request_show_url(info_request), :class => cls end def request_both_links(info_request) - link_to(h(info_request.title), request_url(info_request)) + " (" + link_to("admin", request_admin_url(info_request)) + ")" + link_to(h(info_request.title), request_url(info_request)) + " (" + link_to("admin", admin_request_show_url(info_request)) + ")" end def request_similar_url(info_request) |