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. |
---|
|
app/assets/stylesheets/blocks/_new_window_popup.scss 0 → 100644 |
---|
app/javascript/utils/externalLink.js |
---|
app/views/contact_us/contacts/new.html.erb |
---|
app/views/layouts/_branding.html.erb |
---|
app/views/layouts/_footer.html.erb |
---|
app/views/layouts/application.html.erb |
---|
app/views/org_admin/plans/index.html.erb |
---|
app/views/paginable/plans/_organisationally_or_publicly_visible.html.erb |
---|
app/views/paginable/plans/_publicly_visible.html.erb |
---|
app/views/paginable/templates/_publicly_visible.html.erb |
---|
app/views/plans/_download_form.html.erb |
---|
app/views/static_pages/about_us.html.erb |
---|
app/views/static_pages/termsuse.html.erb |
---|
app/views/usage/index.html.erb |
---|