changeset 558:c94e23a6eff1 feature_36

Related to Bug #222Updated the look of the authors list (more intuitive to sort). Created the plugin's stylesheet file.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Wed, 03 Aug 2011 16:27:13 +0100
parents 2fe129b04d82
children 3c9ca235835b
files vendor/plugins/redmine_bibliography/app/views/publications/show.html.erb vendor/plugins/redmine_bibliography/assets/stylesheets/bibliography.css
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vendor/plugins/redmine_bibliography/app/views/publications/show.html.erb	Wed Aug 03 16:09:27 2011 +0100
+++ b/vendor/plugins/redmine_bibliography/app/views/publications/show.html.erb	Wed Aug 03 16:27:13 2011 +0100
@@ -1,3 +1,5 @@
+<%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %>
+
 <h2><%=l(:label_publication_show)%></h2>
 
 <div class="splitcontentleft">
@@ -8,12 +10,13 @@
 <ul id="authorships">
   <% for authorship in @publication.authorships.find(:all, :order => :auth_order) %>
     <% content_tag_for :li, authorship do %>
+      <span class="handle">[drag to reorder]</span>
       <%= h authorship.name_on_paper %> <br />
       <%= h authorship.institution %> <br />
     <% end %>
   <% end %>
 </ul>
-<%= sortable_element("authorships", :url => { :controller => :publications, :action => :sort_author_order }) %>
+<%= sortable_element("authorships", :url => { :controller => :publications, :action => :sort_author_order }, :handle => "handle") %>
 
 <br />
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/vendor/plugins/redmine_bibliography/assets/stylesheets/bibliography.css	Wed Aug 03 16:27:13 2011 +0100
@@ -0,0 +1,5 @@
+li .handle {
+  font-size: 12px;
+  cursor: move;
+  color: #777;
+}
\ No newline at end of file