# HG changeset patch # User Chris Cannam # Date 1313147242 -3600 # Node ID 5818ebc113622e72fa39ad02e91ca21c63d0c9c5 # Parent bed7ea82663d3d373073a2d478f85313a51f521b Some simple improvements to publication list table layout diff -r bed7ea82663d -r 5818ebc11362 vendor/plugins/redmine_bibliography/app/views/publications/index.html.erb --- a/vendor/plugins/redmine_bibliography/app/views/publications/index.html.erb Wed Aug 10 18:44:00 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/app/views/publications/index.html.erb Fri Aug 12 12:07:22 2011 +0100 @@ -2,35 +2,38 @@ <%= link_to l(:label_publication_new), {:controller => 'publications', :action => 'new', :project_id => @project}, :class => 'icon icon-add' %> -
<% if @project %>

<%= l(:label_all_publications_for_project, :project => @project.name) %>

<% else %>

<%= l(:label_all_publications) %>

<% end %> - - - - - +
+
NumberTitle
+ + + + + <% @publications.each do |publication| %> - - - - + + + + <% end %>
<%= l(:title) %><%= l(:authors) %><%= l(:year) %>
<%= publication.id %><%= 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.each do |authorship| %> + <% if authorship.author.user.nil? || !authorship.author.user.active? %> + <%= authorship.name_on_paper %> + <% else %> + <%= link_to(authorship.name_on_paper, :controller => 'users', :action => 'show', :id => authorship.author.user) %> + <% end %> + <%= authorship.institution %>
+ <% end %> +
<%= publication.bibtex_entry.year %>
- -
- -
- placeholder div -
- + <% content_for :sidebar do %> - Sidebar <% end %> diff -r bed7ea82663d -r 5818ebc11362 vendor/plugins/redmine_bibliography/config/locales/en.yml --- a/vendor/plugins/redmine_bibliography/config/locales/en.yml Wed Aug 10 18:44:00 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/config/locales/en.yml Fri Aug 12 12:07:22 2011 +0100 @@ -4,6 +4,7 @@ authors: "Authors" author: "Author" name: "Name" + year: "Year" publications_box: "My Publications" label_my_publications_box: "My Publications"