# HG changeset patch # User luisf # Date 1315578859 -3600 # Node ID 65749e700af096c572a0e4888361ade395d7c8a7 # Parent a4775b8e352f05a704026674045d1ee47a11a3de Feature #284: New, Edit and Show views already with the External URL field. diff -r a4775b8e352f -r 65749e700af0 vendor/plugins/redmine_bibliography/app/views/publications/_form.html.erb --- a/vendor/plugins/redmine_bibliography/app/views/publications/_form.html.erb Fri Sep 09 14:55:14 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/app/views/publications/_form.html.erb Fri Sep 09 15:34:19 2011 +0100 @@ -8,6 +8,13 @@ <% f.fields_for :bibtex_entry do |builder| -%> <%= render :partial => 'bibtex_fields', :locals => { :f => builder} %> <%- end -%> + +

+ <%= f.text_field :external_url, :size => 70 %> +
+ <%= l(:text_external_url) %> +

+ diff -r a4775b8e352f -r 65749e700af0 vendor/plugins/redmine_bibliography/app/views/publications/show.html.erb --- a/vendor/plugins/redmine_bibliography/app/views/publications/show.html.erb Fri Sep 09 14:55:14 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/app/views/publications/show.html.erb Fri Sep 09 15:34:19 2011 +0100 @@ -26,6 +26,16 @@ <%= show_bibtex_fields(@publication.bibtex_entry) %> <%- end -%> + +<% unless @publication.external_url.blank? %> +

+ <%= l(:field_external_url) %> +

+

+ <%= link_to h(@publication.external_url), @publication.external_url, {:target => "_blank"} %> +

+<% end %> +
<% if User.current.allowed_to?(:add_publication, @project) %> <%= link_to l(:label_publication_edit), { :controller => "publications", :action => "edit", :id => @publication, :project_id => @project } %> | diff -r a4775b8e352f -r 65749e700af0 vendor/plugins/redmine_bibliography/config/locales/en.yml --- a/vendor/plugins/redmine_bibliography/config/locales/en.yml Fri Sep 09 14:55:14 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/config/locales/en.yml Fri Sep 09 15:34:19 2011 +0100 @@ -24,6 +24,7 @@ field_authorship_email: "Email Address" field_authorship_institution: "Institution" + field_external_url: "External URL" field_publication_title: Title field_publication_authors: Authors field_publication_projects: "Associated projects" @@ -59,6 +60,7 @@ label_publication_index: "View all publications" label_publication_other_details: "Details" + text_external_url: "Link to the publication itself." text_author_name_on_paper: "Author's name as it appears on the paper." text_author_institution: "Author's institution as on the paper." text_author_email: "Author's email address as on the paper."