Skip to content

Commit

Permalink
Add accessibility information to footer
Browse files Browse the repository at this point in the history
  • Loading branch information
corylown committed Dec 5, 2023
1 parent 90fb165 commit 8fdc6ba
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
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

0 comments on commit 8fdc6ba

Please sign in to comment.