Revision 1325:4ef7df804bab plugins/redmine_bibliography/app
| plugins/redmine_bibliography/app/helpers/authorships_helper.rb | ||
|---|---|---|
| 15 | 15 |
s << link_to(authorship.name_on_paper, :controller => 'users', :action => 'show', :id => authorship.author.user) |
| 16 | 16 |
end |
| 17 | 17 |
end |
| 18 |
s |
|
| 18 |
s.html_safe
|
|
| 19 | 19 |
end |
| 20 | 20 |
|
| 21 | 21 |
end |
| plugins/redmine_bibliography/app/views/publications/show.html.erb | ||
|---|---|---|
| 14 | 14 |
|
| 15 | 15 |
<ul id="authorships"> |
| 16 | 16 |
<% for authorship in @publication.authorships.find(:all, :order => :auth_order) %> |
| 17 |
<% content_tag_for :li, authorship do %>
|
|
| 17 |
<%= content_tag_for :li, authorship do -%>
|
|
| 18 | 18 |
<%- if User.current.allowed_to?(:edit_publication, @project) && @publication.authorships.length > 1 -%> |
| 19 | 19 |
<span class="handle">[drag to reorder]</span> |
| 20 | 20 |
<%- end -%> |
| 21 |
|
|
| 21 |
|
|
| 22 | 22 |
<%= link_to_authorship authorship %> <em><%= h(authorship.institution) %></em> |
| 23 |
|
|
| 23 |
|
|
| 24 | 24 |
<br /> |
| 25 | 25 |
<%- end -%> |
| 26 | 26 |
<%- end -%> |
Also available in: Unified diff