diff --git a/app/assets/javascripts/theses.js b/app/assets/javascripts/theses.js index 532562b..66370a5 100644 --- a/app/assets/javascripts/theses.js +++ b/app/assets/javascripts/theses.js @@ -37,4 +37,11 @@ $(document).ready(function () { source: committee_member_names_list }); }); + + $('div.student-view div.settings-content a').each(function () { + var class_attr = $(this).attr('class'); + if (typeof class_attr === typeof undefined || class_attr == '') { + $(this).attr('target', '_blank'); + } + }); }); diff --git a/app/models/app_settings.rb b/app/models/app_settings.rb index 4425a22..ea1f739 100644 --- a/app/models/app_settings.rb +++ b/app/models/app_settings.rb @@ -33,6 +33,7 @@ class AppSettings < RailsSettings::Base field :student_upload_files field :student_primary_upload_files field :student_supplementary_upload_files + field :student_supplementary_licence_upload_files field :student_supplementary_embargo_upload_files field :student_review_license_info field :student_review_license_lac diff --git a/app/views/documents/_form.html.erb b/app/views/documents/_form.html.erb index 55740f7..88afcf2 100644 --- a/app/views/documents/_form.html.erb +++ b/app/views/documents/_form.html.erb @@ -24,7 +24,7 @@ html: { multipart: true, class: "file-upload" } do |f| %> <%= raw(AppSettings.student_supplementary_upload_files) %> <% end %> <% if @document.usage == 'licence' %> - <%= raw(AppSettings.student_supplementary_embargo_upload_files) %> + <%= raw(AppSettings.student_supplementary_licence_upload_files) %> <% end %> <% if @document.usage == 'embargo' %> <%= raw(AppSettings.student_supplementary_embargo_upload_files) %> diff --git a/app/views/settings/_student_submission.html.erb b/app/views/settings/_student_submission.html.erb index f4f9084..d348875 100644 --- a/app/views/settings/_student_submission.html.erb +++ b/app/views/settings/_student_submission.html.erb @@ -20,9 +20,10 @@ <%= f.input :student_update_details_keywords, as: :rich_text_area, label: "Keywords", input_html: { rows: 5 } %>