Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add accessibility information to footer #1017

Merged
merged 1 commit into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions app/views/shared/_footer.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,10 @@
</ul>
</div>
</div>
<div class="row">
<div class="col mt-4">
<p><%= t('.accessibility_html', accessibility_email: Settings.accessibility_email) %></p>
</div>
</div>
</div>
</footer>
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ en:
uploaders_html: The most recent upload was made by <b>%{uploader}</b> %{upload_time} ago.
shared:
footer:
accessibility_html: If you cannot access content or use features on this website due to a disability, please <a href="mailto:%{accessibility_email}">report your accessibility issue</a>.
copyright_html: "&copy; 2020-%{current_year}"
docs:
api: POD API
Expand Down
1 change: 1 addition & 0 deletions config/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions spec/views/shared/footer.html.erb_spec.rb
Original file line number Diff line number Diff line change
@@ -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