# HG changeset patch # User Chris Cannam # Date 1315393996 -3600 # Node ID 8c88a15a701e5b2d7951d03a7ec686ec112d64d3 # Parent cbad7075a60fa38f434bbe9f0736324ee27a465c Show authors and date in publication list box on project front page diff -r cbad7075a60f -r 8c88a15a701e vendor/plugins/redmine_bibliography/app/views/projects/_bibliography_box.html.erb --- a/vendor/plugins/redmine_bibliography/app/views/projects/_bibliography_box.html.erb Tue Sep 06 15:10:45 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/app/views/projects/_bibliography_box.html.erb Wed Sep 07 12:13:16 2011 +0100 @@ -1,8 +1,11 @@ <% if @project.publications.any? %>
-

<%=l(:label_publications_plural)%>

+

<%=l(:label_related_publication_plural)%>

<% @project.publications.each do |publication| %> - <%= link_to publication.title, :controller => 'publications', :action => 'show', :id => publication, :project_id => @project %>
+ <%= link_to publication.title, :controller => 'publications', :action => 'show', :id => publication, :project_id => @project %> - + <%= publication.authorships.map { |a| h a.name_on_paper }.join(', ') %> + <% if publication.bibtex_entry.year.to_s != "" %>(<%= publication.bibtex_entry.year %>)<% end %> +
<% end %>

<% end %> diff -r cbad7075a60f -r 8c88a15a701e vendor/plugins/redmine_bibliography/config/locales/en.yml --- a/vendor/plugins/redmine_bibliography/config/locales/en.yml Tue Sep 06 15:10:45 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/config/locales/en.yml Wed Sep 07 12:13:16 2011 +0100 @@ -47,7 +47,8 @@ remove_author: "Remove this author" - label_publications_plural: "Publications" + label_publication_plural: "Publications" + label_related_publication_plural: "Related publications" label_publication_new: "Create New Publication" label_publication_index: "List of Publication" label_add_publication_to_project: "Add publication to this project"