diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-03-25 11:15:24 +0000 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2014-03-25 11:15:24 +0000 |
commit | 7a108776e4f45b10ef5956326fdd9c66514d1ddd (patch) | |
tree | 3bad8adc1347e16c87827bfa43aa9f81e147da6e /app/helpers | |
parent | 2f5085e25a9fd66d839463835a63767003708f62 (diff) | |
parent | eff755504d45bfeff415786dcd0dbbb4c47e8dd0 (diff) |
Merge branch 'ab_annotations_1' into rails-3-develop
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/admin_helper.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/helpers/admin_helper.rb b/app/helpers/admin_helper.rb index 059cebdfa..151e53758 100644 --- a/app/helpers/admin_helper.rb +++ b/app/helpers/admin_helper.rb @@ -33,5 +33,10 @@ module AdminHelper link_to(eye, user_path(user), :title => "view user's page on public website") + " " + link_to(h(user.name), admin_user_show_path(user), :title => "view full details") end + + def comment_visibility(comment) + comment.visible? ? 'Visible' : 'Hidden' + end + end |