aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/admin_helper.rb
diff options
context:
space:
mode:
authorMatthew Landauer <matthew@openaustralia.org>2013-03-08 12:40:23 +1100
committerMatthew Landauer <matthew@openaustralia.org>2013-03-08 12:45:39 +1100
commitd1b554703a4c645fff693d9b1e7e2e03a783d3e6 (patch)
tree15138c30632678b7c2ed0cb4c8db5c84f35c93be /app/helpers/admin_helper.rb
parented9ef6b0f164722911bf316ab7e7043556ce6a21 (diff)
New helper for showing two links for a user
Diffstat (limited to 'app/helpers/admin_helper.rb')
-rw-r--r--app/helpers/admin_helper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/helpers/admin_helper.rb b/app/helpers/admin_helper.rb
index 0f733118f..65519692e 100644
--- a/app/helpers/admin_helper.rb
+++ b/app/helpers/admin_helper.rb
@@ -18,7 +18,8 @@ module AdminHelper
end
def user_both_links(user)
- link_to(h(user.name), user_url(user)) + " (" + link_to("admin", admin_user_show_url(user)) + ")"
+ link_to(eye_icon, 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
def request_admin_link(info_request, name="admin", cls=nil)