view vendor/plugins/redmine_bibliography/app/helpers/authors_helper.rb @ 562:82a6e3756383 feature_36

Some changes to the way the author/users are added to a publication. Not finished.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Fri, 05 Aug 2011 17:44:17 +0100
parents 951fcb1711f2
children 8fa35731c959
line wrap: on
line source
module AuthorsHelper
  unloadable
  
  def render_author_publications(author)
    s = ""
    pubs = []

    author.publications.each do |pub|
     pubs << link_to(pub.title, pub)
    end

    if pubs.size < 3
      s << '<nobr>' << pubs.join(', ') << '</nobr>'
    else
      s << pubs.join(', ')
    end
    s    
  end
  
end