comparison app/helpers/application_helper.rb @ 140:4272e09f4b5f cannam-pre-20110113-merge

Allow list of managers, if more than one row, to overlap with description rather than pushing description down
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 20 Jan 2011 10:01:33 +0000
parents 6a2f8e88344e
children e47742d68d2d
comparison
equal deleted inserted replaced
139:ddcedb549d4e 140:4272e09f4b5f
50 # Displays a link to user's account page if active 50 # Displays a link to user's account page if active
51 def link_to_user(user, options={}) 51 def link_to_user(user, options={})
52 if user.is_a?(User) 52 if user.is_a?(User)
53 name = h(user.name(options[:format])) 53 name = h(user.name(options[:format]))
54 if user.active? 54 if user.active?
55 link_to name, :controller => 'users', :action => 'show', :id => user 55 link_to(name, :controller => 'users', :action => 'show', :id => user)
56 else 56 else
57 name 57 name
58 end 58 end
59 else 59 else
60 h(user.to_s) 60 h(user.to_s)