def link_author_delete(auth)
if auth.proposal.authorships.size > 1
confirm_msg = _('Are you sure you want to delete author' +
'"%s" from proposal "%s"? ') %
[auth.person.name, auth.proposal.title]
else
confirm_msg = _('Removing the only registered author for this proposal ' +
'will also remove the proposal from the system. This ' +
'action cannot be undone. Are you sure you want to ' +
'continue?')
end
link_to( icon_trash,
{ :action => 'author_delete', :id => auth.proposal.id,
:authorship_id => auth.id},
{ :method => 'post',
:confirm => confirm_msg})
end