Mercurial > hg > soundsoftware-site
diff vendor/plugins/redmine_bibliography/app/helpers/publications_helper.rb @ 554:026c9747fe9b feature_36
Addresses Feature #228. Already able to remove projects associated with a publication.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Tue, 02 Aug 2011 16:50:22 +0100 |
parents | 258b68689b28 |
children | a76abc63257a |
line wrap: on
line diff
--- a/vendor/plugins/redmine_bibliography/app/helpers/publications_helper.rb Mon Aug 01 21:18:37 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/app/helpers/publications_helper.rb Tue Aug 02 16:50:22 2011 +0100 @@ -70,18 +70,12 @@ def render_projects_list(publication) s = "" - projs = [] publication.projects.each do |proj| - projs << link_to_project(proj) + s << link_to_project(proj) + link_to_remote(l(:button_delete), { :url => { :controller => 'publications', :action => 'remove_from_project_list', :id => publication, :project_id => proj }, :method => :post }, :class => 'icon icon-del') + "<br />" end - if projs.size < 3 - s << '<nobr>' << projs.join(', ') << '</nobr>' - else - s << projs.join(', ') - end - s + s end def show_bibtex_fields(bibtex_entry)