Skip to content

Commit

Permalink
Merge pull request #2138 from DFE-Digital/TEVA-1320-401-copy
Browse files Browse the repository at this point in the history
[TEVA-1320] Additional copy for 401 unauth page
  • Loading branch information
alexbowen committed Oct 14, 2020
2 parents 97dcde7 + 7eecf95 commit a18165a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
9 changes: 7 additions & 2 deletions app/views/errors/unauthorised.html.haml
@@ -1,4 +1,9 @@
- content_for :page_title_prefix, t('error_pages.unauthorised')
- content_for :page_title_prefix, t('error_pages.unauthorised.title')

%h1.govuk-heading-xl=t('error_pages.unauthorised')
%h1.govuk-heading-xl=t('error_pages.unauthorised.title')
%p= t('error_pages.unauthorised.text_html')
%ul.govuk-list.govuk-list--bullet
-t('error_pages.unauthorised.options').each do |option|
%li=option.html_safe
%p= t('error_pages.unauthorised.footer')
%p You can email #{mail_to t('help.email'), t('help.email'), class: 'govuk-link'} if the problem persists.
14 changes: 11 additions & 3 deletions config/locales/en.yml
Expand Up @@ -1010,11 +1010,19 @@ en:
already_exists: "You're already subscribed to an alert for these search criteria"

error_pages:
unauthorised: We were unable to authorise your request.
unprocessable_entity: We're unable to process your request.
not_found: Page not found.
trashed_vacancy_found: Page not found.
server_error: Sorry, there’s a technical issue at our end
trashed_vacancy_found: Page not found.
unauthorised:
footer: If you still can’t access this page, or you haven’t yet been authorised, please email teaching.vacancies@education.gov.uk
options:
- checking the URL is correct
- logging out of Teaching Vacancies and signing in again
- reloading or refreshing the page
- <a href="https://support.google.com/accounts/answer/32050" class="govuk-link">deleting your browser’s cache</a>
text_html: "<p>You need authorisation to be able to see this page.</p><p>If you have already been given access, you can try fixing this problem by:</p>"
title: We were unable to authorise your request.
unprocessable_entity: We're unable to process your request.

help:
email: teaching.vacancies@education.gov.uk
Expand Down

0 comments on commit a18165a

Please sign in to comment.