Mercurial > hg > soundsoftware-site
changeset 633:d0fec261c169 feature_36
Fixes Bug #281 (drag to reorder in publiations with one author).
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Mon, 05 Sep 2011 17:39:51 +0100 |
parents | 84a746383a5b |
children | c2481ae787f0 47b21bb3fa03 |
files | vendor/plugins/redmine_bibliography/app/views/publications/show.html.erb |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/vendor/plugins/redmine_bibliography/app/views/publications/show.html.erb Wed Aug 31 18:07:56 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/app/views/publications/show.html.erb Mon Sep 05 17:39:51 2011 +0100 @@ -11,14 +11,14 @@ <ul id="authorships"> <% for authorship in @publication.authorships.find(:all, :order => :auth_order) %> <% content_tag_for :li, authorship do %> - <%- if User.current.allowed_to?(:edit_publication, @project) -%> + <%- if User.current.allowed_to?(:edit_publication, @project) && @publication.authorships.length > 1 -%> <span class="handle">[drag to reorder]</span> <%- end -%> <%= h authorship.name_on_paper %> <em><%= h authorship.institution %></em> <br /> <%- end -%> <%- end -%> </ul> -<%- if User.current.allowed_to?(:edit_publication, @project) -%> +<%- if User.current.allowed_to?(:edit_publication, @project) && @publication.authorships.length > 1 -%> <%= sortable_element("authorships", :url => { :controller => :publications, :action => :sort_author_order }, :handle => "handle") %> <%- end -%>