# HG changeset patch # User luisf # Date 1373639190 -3600 # Node ID 939f4a491900a73eef273f8d150c36239fffb2e4 # Parent 6e033c113bd40d746df9b10715c571639665f935 Adds a link to a publication's external URL (if exists). Proposed solution for issue #556. diff -r 6e033c113bd4 -r 939f4a491900 plugins/redmine_bibliography/app/views/projects/_bibliography_box.html.erb --- a/plugins/redmine_bibliography/app/views/projects/_bibliography_box.html.erb Fri Jul 12 12:56:26 2013 +0100 +++ b/plugins/redmine_bibliography/app/views/projects/_bibliography_box.html.erb Fri Jul 12 15:26:30 2013 +0100 @@ -18,6 +18,12 @@ <%= link_to(l("more_details_link"), {:controller => :publications, :action => :show, :id => publication.id, :project_id => @project.id}) -%> <%= link_to l(:bibtex_link).html_safe, "javascript:void(0)", :class => "bibtex-link"-%> + + <%- unless publication.external_url.blank? -%> + <%= link_to l(:external_url_link), publication.external_url, {:target => "_blank"} -%> + <%- end -%> + +