diff vendor/plugins/redmine_bibliography/app/views/users/show.rhtml @ 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 37e39e437b2c
children
line wrap: on
line diff
--- 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>