Added functionality to give warnings when links open in new windows.
The solution is based on the recommendation in "Techniques for WCAG 2.0" section
"G201: Giving users advanced warning when opening a new window":
"Example 2: Using CSS to provide a warning before opening a new window"
(cf., https://www.w3.org/TR/WCAG20-TECHS/G201.html)

Changes:

- any link in the views with target="_blank" has had css class "has-new-window-popup-info" to the link together with the span   <span class="new-window-pop-info"><%= _('Opens in new window') %></span>.
- The javascript script externalLink.js is used for external links that don't have the target="_blank" in the view.

Fix for issue #2175.
dev
1 parent 474e665 commit b3c998539471e4c00fd8e64b61c7fce81faa4499
@John Pinto John Pinto authored on 9 Aug 2019
Showing 14 changed files
View
app/assets/stylesheets/blocks/_new_window_popup.scss 0 → 100644
View
app/javascript/utils/externalLink.js
View
app/views/contact_us/contacts/new.html.erb
View
app/views/layouts/_branding.html.erb
View
app/views/layouts/_footer.html.erb
View
app/views/layouts/application.html.erb
View
app/views/org_admin/plans/index.html.erb
View
app/views/paginable/plans/_organisationally_or_publicly_visible.html.erb
View
app/views/paginable/plans/_publicly_visible.html.erb
View
app/views/paginable/templates/_publicly_visible.html.erb
View
app/views/plans/_download_form.html.erb
View
app/views/static_pages/about_us.html.erb
View
app/views/static_pages/termsuse.html.erb
View
app/views/usage/index.html.erb