# File app/helpers/proposals_helper.rb, line 71
  def link_to_document(doc, can_edit)
    delete_link = (can_edit ?
                   link_to(icon_trash, {:action => 'delete_document',
                             :id => @proposal, :document_id => doc},
                           :method => 'post',
                           :confirm => _('Are you sure you want to delete ' +
                                         'this document?')) : 
                   '')
    _('%s %s: %s (%s)') % [delete_link,
                           link_to(doc.filename, :action => 'get_document', 
                                   :id => @proposal, :document_id => doc.id,
                                   :filename => doc.filename),
                           doc.descr, doc.human_size ]
      
  end