Mercurial > hg > soundsoftware-site
changeset 1416:96ffcd574b96 biblio_alt_search_auth
No longer using the link_to helpers to generate the links on the render_authorship_link helper function.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Tue, 01 Oct 2013 15:07:23 +0100 |
parents | 8e2e4557fa75 |
children | 1df2db7f0e4d |
files | plugins/redmine_bibliography/app/helpers/publications_helper.rb |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/redmine_bibliography/app/helpers/publications_helper.rb Tue Oct 01 14:58:04 2013 +0100 +++ b/plugins/redmine_bibliography/app/helpers/publications_helper.rb Tue Oct 01 15:07:23 2013 +0100 @@ -134,9 +134,11 @@ s= "" if link_class == "Author" - s << link_to_author(Author.find(link_id.to_i)) + url = {:controller => 'authors', :action => 'show', :id => link_id} + s << link_to(h(Author.find(link_id).name), url) else - s << link_to_user(User.find(link_id.to_i)) + url = {:controller => 'users', :action => 'show', :id => link_id} + s << link_to(h(User.find(link_id).name), url) end s.html_safe