diff --git a/app/controllers/concerns/paginable.rb b/app/controllers/concerns/paginable.rb index d07f4d4..0c58199 100644 --- a/app/controllers/concerns/paginable.rb +++ b/app/controllers/concerns/paginable.rb @@ -55,7 +55,7 @@ # Generates an HTML link to sort given a sort field. # sort_field {String} - Represents the column name for a table def paginable_sort_link(sort_field) - return link_to(sort_link_name(sort_field), sort_link_url(sort_field), 'data-remote': true, class: 'paginable-action') + return link_to(sort_link_name(sort_field), sort_link_url(sort_field), 'data-remote': true, class: 'paginable-action', "aria-label": "#{sort_field}") end # Determines whether or not the latest request included the search functionality def searchable? diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 992c6ab..a2a6012 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -37,4 +37,8 @@ def fingerprinted_asset(name) Rails.env.production? ? "#{name}-#{ASSET_FINGERPRINT}" : name end + + def title(page_title) + content_for(:title) { page_title } + end end diff --git a/app/views/contact_us/contacts/new.html.erb b/app/views/contact_us/contacts/new.html.erb index f98ec59..aca3edd 100644 --- a/app/views/contact_us/contacts/new.html.erb +++ b/app/views/contact_us/contacts/new.html.erb @@ -1,3 +1,4 @@ +<% title 'Contact Us' %>
<%= raw _('
%{application_name} has been developed by the %{organisation_name} to help you write data management plans.
') % {:application_name => Rails.configuration.branding[:application][:name], :organisation_name => Rails.configuration.branding[:organisation][:name]} %> diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 21a535a..a9e62a1 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -1,10 +1,9 @@ -