Revision 1407:00a51e442fe9 plugins/redmine_bibliography/app/helpers
| plugins/redmine_bibliography/app/helpers/publications_helper.rb | ||
|---|---|---|
| 123 | 123 |
s |
| 124 | 124 |
end |
| 125 | 125 |
end |
| 126 |
|
|
| 127 |
|
|
| 128 |
def render_authorship_link(link_class, link_id) |
|
| 129 |
|
|
| 130 |
# Renders a link for an author used when adding authors for a publication |
|
| 131 |
# link_class can be either User or Author |
|
| 132 |
# link_id will be the id of the Author/User we wish to link |
|
| 133 |
|
|
| 134 |
s= "" |
|
| 135 |
|
|
| 136 |
if link_class == "Author" |
|
| 137 |
s << link_to_author(Author.find(link_id), {}, :class => 'author_link')
|
|
| 138 |
else |
|
| 139 |
s << link_to_user(User.find(link_id), :class => 'publication_project') |
|
| 140 |
end |
|
| 141 |
|
|
| 142 |
confirm_msg = "Are you sure you want to remove the link between this publication's author and this code.soundsoftware.ac.uk site user?" |
|
| 143 |
|
|
| 144 |
## s << link_to(l(:button_delete), { :url => { :controller => 'publications', :action => 'remove_project', :id => publication, :remove_project_id => proj, :project_id => @project }, :method => :post, :confirm => confirm_msg }, :class => 'icon icon-del', :remote => :true)
|
|
| 145 |
|
|
| 146 |
s.html_safe |
|
| 147 |
end |
|
| 148 |
|
|
Also available in: Unified diff