diff vendor/plugins/redmine_bibliography/app/helpers/authors_helper.rb @ 612:8fa35731c959 feature_36

Created the show actions and view for Authors, addressing Features #234 and #235.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Tue, 23 Aug 2011 13:45:30 +0100
parents 951fcb1711f2
children
line wrap: on
line diff
--- a/vendor/plugins/redmine_bibliography/app/helpers/authors_helper.rb	Mon Aug 22 14:38:31 2011 +0100
+++ b/vendor/plugins/redmine_bibliography/app/helpers/authors_helper.rb	Tue Aug 23 13:45:30 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