changeset 721:7c7ef64e68da cannam

More adjustment to publications layout
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Mon, 17 Oct 2011 17:03:46 +0100
parents 5eb7efd59ed7
children 897bc2b63bfe 882917cbe8d0
files vendor/plugins/redmine_bibliography/app/views/projects/_bibliography_box.html.erb vendor/plugins/redmine_bibliography/app/views/users/show.rhtml
diffstat 2 files changed, 6 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/vendor/plugins/redmine_bibliography/app/views/projects/_bibliography_box.html.erb	Mon Oct 17 16:58:48 2011 +0100
+++ b/vendor/plugins/redmine_bibliography/app/views/projects/_bibliography_box.html.erb	Mon Oct 17 17:03:46 2011 +0100
@@ -13,7 +13,7 @@
      <span class="title"><%= link_to publication.title, :controller => 'publications', :action => 'show', :id => publication, :project_id => @project %></span>
      <% if publication.bibtex_entry.year.to_s != "" %>
      <span class="year">
-       (<%= publication.bibtex_entry.year %>)
+       &nbsp;(<%= publication.bibtex_entry.year %>)
      </span>
      <% end %>
      </dt><dd></dd>
--- a/vendor/plugins/redmine_bibliography/app/views/users/show.rhtml	Mon Oct 17 16:58:48 2011 +0100
+++ b/vendor/plugins/redmine_bibliography/app/views/users/show.rhtml	Mon Oct 17 17:03:46 2011 +0100
@@ -51,18 +51,17 @@
 
     <% @publications.each do |publication|%>    
       <dt>
-        <%= link_to publication.title, :controller => 'publications', :action => 'show', :id => publication %>
-      </dt>
-
-      <dd>
         <span class="authors">
-          <%= publication.authorships.map { |a| h a.name_on_paper }.join(', ') %>
+          <%= publication.authorships.map { |a| h a.name_on_paper }.join(', ') %><% if !publication.authorships.empty? %>.<% end %>
         </span>
+        <span class="title"><%= link_to publication.title, :controller => 'publications', :action => 'show', :id => publication %></span>
         <% if publication.bibtex_entry.year.to_s != "" %>
           <span class="year">
-            <%= publication.bibtex_entry.year %>
+            &nbsp;(<%= publication.bibtex_entry.year %>)
           </span>
         <% end %>
+      </dt>
+      <dd>
       </dd>
   	<% end %>
   </div>