changeset 1325:4ef7df804bab redmine-2.2-integration

Correctly displays the authors of a publication in the show view.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Wed, 19 Jun 2013 18:27:44 +0100
parents 2e54ae6ab02f
children 8516c3292901
files plugins/redmine_bibliography/app/helpers/authorships_helper.rb plugins/redmine_bibliography/app/views/publications/show.html.erb
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/redmine_bibliography/app/helpers/authorships_helper.rb	Wed Jun 19 18:17:33 2013 +0100
+++ b/plugins/redmine_bibliography/app/helpers/authorships_helper.rb	Wed Jun 19 18:27:44 2013 +0100
@@ -15,7 +15,7 @@
         s << link_to(authorship.name_on_paper, :controller => 'users', :action => 'show', :id => authorship.author.user)
       end
     end
-    s
+    s.html_safe
   end
 
 end
--- a/plugins/redmine_bibliography/app/views/publications/show.html.erb	Wed Jun 19 18:17:33 2013 +0100
+++ b/plugins/redmine_bibliography/app/views/publications/show.html.erb	Wed Jun 19 18:27:44 2013 +0100
@@ -14,13 +14,13 @@
 
 <ul id="authorships">
   <% for authorship in @publication.authorships.find(:all, :order => :auth_order) %>
-    <% content_tag_for :li, authorship do %>
+    <%= content_tag_for :li, authorship do -%>
       <%- if User.current.allowed_to?(:edit_publication, @project) && @publication.authorships.length > 1 -%>
         <span class="handle">[drag to reorder]</span>
       <%- end -%>
-      
+
       <%= link_to_authorship authorship %> <em><%= h(authorship.institution) %></em>
-      
+
       <br />
     <%- end -%>
   <%- end -%>