diff --git a/app/controllers/public_pages_controller.rb b/app/controllers/public_pages_controller.rb index 9307c4a..f64e61d 100644 --- a/app/controllers/public_pages_controller.rb +++ b/app/controllers/public_pages_controller.rb @@ -29,7 +29,7 @@ render pdf: file_name, margin: @formatting[:margin], footer: { - center: _('Template created using the %{application_name}. Last modified %{date}') % {application_name: Rails.configuration.branding[:application][:name], date: l(@template.updated_at.to_date, formats: :short)}, + center: _('Template created using the %{application_name} service. Last modified %{date}') % {application_name: Rails.configuration.branding[:application][:name], date: l(@template.updated_at.to_date, formats: :short)}, font_size: 8, spacing: (@formatting[:margin][:bottom] / 2) - 4, right: '[page] of [topage]' @@ -69,7 +69,7 @@ render pdf: file_name, margin: @formatting[:margin], footer: { - center: _('Created using the %{application_name}. Last modified %{date}') % {application_name: Rails.configuration.branding[:application][:name], date: l(@plan.updated_at.to_date, formats: :short)}, + center: _('Created using the %{application_name} service. Last modified %{date}') % {application_name: Rails.configuration.branding[:application][:name], date: l(@plan.updated_at.to_date, formats: :short)}, font_size: 8, spacing: (@formatting[:margin][:bottom] / 2) - 4, right: '[page] of [topage]' diff --git a/app/views/public_pages/plan_index.html.erb b/app/views/public_pages/plan_index.html.erb index 3ba73bd..d4d47aa 100644 --- a/app/views/public_pages/plan_index.html.erb +++ b/app/views/public_pages/plan_index.html.erb @@ -4,7 +4,7 @@ <% if @plans.count > 0 %>

- <%= _('Public DMPs are plans created using the %{application_name} and shared publicly by their owners. They are not vetted for quality, completeness, or adherence to funder guidelines.') % {application_name: Rails.application.config.branding[:application][:name]} %> + <%= _('Public DMPs are plans created using the %{application_name} service and shared publicly by their owners. They are not vetted for quality, completeness, or adherence to funder guidelines.') % {application_name: Rails.application.config.branding[:application][:name]} %>

<% else %>

@@ -24,4 +24,4 @@ scope: @plans) %> <% end %> - \ No newline at end of file + diff --git a/app/views/public_pages/template_export.docx.erb b/app/views/public_pages/template_export.docx.erb index fea397f..f29833d 100644 --- a/app/views/public_pages/template_export.docx.erb +++ b/app/views/public_pages/template_export.docx.erb @@ -21,12 +21,12 @@

<%= section.title %>

<% section.questions.each do |question|%>
-

<%= raw question.text %>

+

<%= raw question.text.chomp.strip %>

<% q_format = question.question_format %> <% if q_format.option_based? %> <% end %> @@ -36,8 +36,8 @@ <% question.annotations.each do |annotation| %> <% unless annotation.text.chomp.strip.gsub(/<\/?p>/, '').gsub(//, '').blank? %>
-

<%= annotation.type == 0 ? _('Example Answer') : _('Guidance') %>:

- <%= raw annotation.text %> +

<%= annotation.type == 'example_answer' ? _('Example Answer') : _('Guidance') %>:

+ <%= raw annotation.text.chomp.strip %> <% end %> <% end %>
@@ -47,4 +47,4 @@ <% end %> <% end %> - \ No newline at end of file + diff --git a/app/views/public_pages/template_export.pdf.erb b/app/views/public_pages/template_export.pdf.erb index 9561aa1..606ea69 100644 --- a/app/views/public_pages/template_export.pdf.erb +++ b/app/views/public_pages/template_export.pdf.erb @@ -65,12 +65,12 @@

<%= section.title %>

<% section.questions.each do |question| %>
-

<%= raw question.text %>

+

<%= raw question.text.chomp.strip %>

<% q_format = question.question_format %> <% if q_format.option_based? %> <% end %> @@ -78,7 +78,7 @@
<% question.annotations.each do |annotation| %> <% unless annotation.text.chomp.strip.gsub(/<\/?p>/, '').gsub(//, '').blank? %> -

<%= annotation.type == 0 ? _('Example Answer') : _('Guidance') %>:

+

<%= annotation.type == 'example_answer' ? _('Example Answer') : _('Guidance') %>:

<%= raw annotation.text.chomp.strip %>
<% end %> <% end %> diff --git a/app/views/shared/export/_plan.erb b/app/views/shared/export/_plan.erb index fb9acb4..e3e5772 100644 --- a/app/views/shared/export/_plan.erb +++ b/app/views/shared/export/_plan.erb @@ -81,7 +81,7 @@ <% end %>

<%= raw ah['text'] %>

<% else %> -

<%= raw answer.text %>

+

<%= raw answer.text.chomp.strip %>

<% end %> <% end %>