Mercurial > hg > soundsoftware-site
changeset 658:65749e700af0 feature_36
Feature #284: New, Edit and Show views already with the External URL field.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Fri, 09 Sep 2011 15:34:19 +0100 |
parents | a4775b8e352f |
children | d2a371616088 |
files | vendor/plugins/redmine_bibliography/app/views/publications/_form.html.erb vendor/plugins/redmine_bibliography/app/views/publications/show.html.erb vendor/plugins/redmine_bibliography/config/locales/en.yml |
diffstat | 3 files changed, 19 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 -%> + + <p> + <%= f.text_field :external_url, :size => 70 %> + <br /> + <em><%= l(:text_external_url) %></em> + </p> + </div> </div>
--- 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? %> + <h4> + <%= l(:field_external_url) %> + </h4> + <p> + <%= link_to h(@publication.external_url), @publication.external_url, {:target => "_blank"} %> + </p> +<% end %> + <br / > <% if User.current.allowed_to?(:add_publication, @project) %> <%= link_to l(:label_publication_edit), { :controller => "publications", :action => "edit", :id => @publication, :project_id => @project } %> |
--- 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."