diff --git a/app/views/shared/_footer.html.erb b/app/views/shared/_footer.html.erb index fc8135d1..7c93fd27 100644 --- a/app/views/shared/_footer.html.erb +++ b/app/views/shared/_footer.html.erb @@ -38,5 +38,10 @@ +
+
+

<%= t('.accessibility_html', accessibility_email: Settings.accessibility_email) %>

+
+
diff --git a/config/locales/en.yml b/config/locales/en.yml index a3877fad..4007972d 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -135,6 +135,7 @@ en: uploaders_html: The most recent upload was made by %{uploader} %{upload_time} ago. shared: footer: + accessibility_html: If you cannot access content or use features on this website due to a disability, please report your accessibility issue. copyright_html: "© 2020-%{current_year}" docs: api: POD API diff --git a/config/settings.yml b/config/settings.yml index 57808614..cd6ebbcd 100644 --- a/config/settings.yml +++ b/config/settings.yml @@ -9,6 +9,7 @@ action_mailer: from: 'test@example.com' contact_email: 'pod-support@lists.stanford.edu' +accessibility_email: 'library-accessibility-contact@lists.stanford.edu' marc_fixture_seeds: host: https://pod.stanford.edu diff --git a/spec/views/shared/footer.html.erb_spec.rb b/spec/views/shared/footer.html.erb_spec.rb new file mode 100644 index 00000000..da09d76c --- /dev/null +++ b/spec/views/shared/footer.html.erb_spec.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +require 'rails_helper' + +RSpec.describe 'shared/_footer' do + it 'displays an accessibility message' do + render + + expect(rendered).to have_link('report your accessibility issue') + end +end