aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/link_to_helper.rb
diff options
context:
space:
mode:
authorMatthew Landauer <matthew@openaustralia.org>2013-03-08 10:16:50 +1100
committerMatthew Landauer <matthew@openaustralia.org>2013-03-08 11:22:45 +1100
commit7dd325084021cc56a57ec4dd3421ef0554aa098f (patch)
treed2b2d24b9de5934e42c38a0e55af61e3e564c3fe /app/helpers/link_to_helper.rb
parenteadfc265ff83524cbd54b2682f2de818bca24bf4 (diff)
Update admin specific helpers with new standard form of links
Diffstat (limited to 'app/helpers/link_to_helper.rb')
-rwxr-xr-xapp/helpers/link_to_helper.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/helpers/link_to_helper.rb b/app/helpers/link_to_helper.rb
index 15cce39eb..9657845e0 100755
--- a/app/helpers/link_to_helper.rb
+++ b/app/helpers/link_to_helper.rb
@@ -27,7 +27,8 @@ module LinkToHelper
end
def request_both_links(info_request)
- link_to(h(info_request.title), request_url(info_request)) + " (" + link_to("admin", admin_request_show_url(info_request)) + ")"
+ link_to('<i class="icon-eye-open"></i>'.html_safe, request_path(info_request)) + " " +
+ link_to(info_request.title, admin_request_show_url(info_request))
end
def request_details_path(info_request)
@@ -95,7 +96,8 @@ module LinkToHelper
end
def public_body_both_links(public_body)
- link_to(h(public_body.name), public_body_url(public_body)) + " (" + link_to("admin", admin_body_show_url(public_body)) + ")"
+ link_to('<i class="icon-eye-open"></i>'.html_safe, public_body_url(@blank_contact)) + " " +
+ link_to(h(@blank_contact.name), admin_body_show_path(@blank_contact))
end
# Users