Mercurial > hg > soundsoftware-site
diff vendor/plugins/redmine_bibliography/app/helpers/authors_helper.rb @ 640:47b21bb3fa03 cannam_integration
Merge from branch "feature_36"
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Tue, 06 Sep 2011 12:23:51 +0100 |
parents | 8fa35731c959 |
children |
line wrap: on
line diff
--- a/vendor/plugins/redmine_bibliography/app/helpers/authors_helper.rb Tue Aug 09 16:02:08 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/app/helpers/authors_helper.rb Tue Sep 06 12:23:51 2011 +0100 @@ -17,4 +17,12 @@ s end + + # Generates a link to an author + # todo: test options + def link_to_author(author, options={}, html_options = nil) + url = {:controller => 'authors', :action => 'show', :id => author}.merge(options) + link_to(h(author.name), url, html_options) + end + end