diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-03-08 13:16:11 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-03-08 13:16:11 +1100 |
commit | b835b7922820a757feafe36327f4b0f437956edc (patch) | |
tree | 639794f7f125334be1280083fbe0b53fe7c9cfb4 /app/helpers/admin_helper.rb | |
parent | f8b1352b155a56f10a58cbc801efe3babb876a25 (diff) |
Use helpers for icons
Diffstat (limited to 'app/helpers/admin_helper.rb')
-rw-r--r-- | app/helpers/admin_helper.rb | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/app/helpers/admin_helper.rb b/app/helpers/admin_helper.rb index 65519692e..c7f467760 100644 --- a/app/helpers/admin_helper.rb +++ b/app/helpers/admin_helper.rb @@ -3,22 +3,34 @@ module AdminHelper content_tag(:i, "", :class => "icon-#{name}") end - def eye_icon + def eye icon("eye-open") end + def chevron_right + icon("chevron-right") + end + + def chevron_down + icon("chevron-down") + end + + def arrow_right + icon("arrow-right") + end + def request_both_links(info_request) - link_to(eye_icon, request_path(info_request), :title => "view request on public website") + " " + + link_to(eye, request_path(info_request), :title => "view request on public website") + " " + link_to(info_request.title, admin_request_show_url(info_request), :title => "view full details") end def public_body_both_links(public_body) - link_to(eye_icon, public_body_url(public_body), :title => "view authority on public website") + " " + + link_to(eye, public_body_url(public_body), :title => "view authority on public website") + " " + link_to(h(public_body.name), admin_body_show_path(public_body), :title => "view full details") end def user_both_links(user) - link_to(eye_icon, user_url(user), :title => "view user's page on public website") + " " + + link_to(eye, user_url(user), :title => "view user's page on public website") + " " + link_to(h(user.name), admin_user_show_url(user), :title => "view full details") end |