-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from epimorphics/spike/additional-a11y-improve…
…ments Continued gem refactoring updates
- Loading branch information
Showing
11 changed files
with
105 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,21 @@ | ||
%header.with-proposition.c-hmlr-header#global-header | ||
%header#global-header.with-proposition.lr-header{ role: "banner" } | ||
.header-wrapper | ||
.header-global | ||
.header-logo | ||
%a.content{ href: '/app/ukhpi', title: t('common.header.home_link') } | ||
= image_tag('ukhpi-icon.png', srcset: image_path('ukhpi-icon.svg'), alt: '') | ||
%a.content{ href: 'https://www.gov.uk/government/organisations/land-registry/', title: I18n.t('common.header.home_link') } | ||
= image_tag('hm_lr_logo.png', srcset: image_path('hm_lr_logo.svg'), alt: "HM Land Registry logo") | ||
|
||
|
||
.header-proposition | ||
.header-proposition.lr-header--header-proposition | ||
.content | ||
%a.js-header-toggle.menu{ href: '#proposition-links' } Menu | ||
%nav#proposition-menu{ 'aria-label' => 'application menu' } | ||
%a#proposition-name{ href: '/app/ukhpi' } | ||
= t('common.header.app_title') | ||
|
||
= link_to(t('common.header.menu_text'), '#proposition-links', class: 'js-header-toggle menu') | ||
%nav#proposition-menu | ||
= LrCommonConfig.app_link( "/", request, 'lr-header--proposition-name' ) | ||
%ul#proposition-links | ||
%li | ||
= link_to(t('action.browse'), browse_path(lang: I18n.locale), class: active_class(browse_path)) | ||
%li | ||
= link_to(t('action.compare_locations'), compare_path(lang: I18n.locale), class: active_class(compare_path)) | ||
= LrCommonConfig.app_link( "ukhpi", request, 'lr-header--header-proposition--a' ) | ||
%li | ||
= link_to(t('action.sparql'), '/app/qonsole') | ||
= LrCommonConfig.app_link( "ppd", request, 'lr-header--header-proposition--a' ) | ||
%li | ||
= link_to(t('action.user_guide'), doc_ukhpi_user_guide_path(lang: I18n.locale)) | ||
= LrCommonConfig.app_link( "standard-reports", request, 'lr-header--header-proposition--a' ) | ||
%li | ||
= link_to(t('action.about'), doc_index_path(lang: I18n.locale), class: active_class(doc_index_path)) | ||
%li | ||
= link_to(t('action.changelog'), changelog_index_path(lang: I18n.locale), class: active_class(changelog_index_path)) | ||
|
||
.o-lr-top-bar | ||
|
||
.container.o-container | ||
.o-secondary-banner | ||
- if Rails.application.config.welsh_language_enabled | ||
%nav.o-secondary-banner__lang-select{ 'aria-label' => 'language selector' } | ||
- if @view_state.user_selections.english? | ||
English | ||
- else | ||
= link_to('English', @view_state.user_selections.alternative_language_params.params) | ||
| | ||
- if @view_state.user_selections.welsh? | ||
Cymraeg | ||
- else | ||
= link_to('Cymraeg', @view_state.user_selections.alternative_language_params.params) | ||
= LrCommonConfig.app_link( "qonsole", request, 'lr-header--header-proposition--a' ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
cy: | ||
common: | ||
header: | ||
menu_text: "Dewislen" | ||
home_link: "Ewch i hafan Mynegai Prisiau Tai y DU" | ||
site_title: "Data Agored Cofrestrfa Tir EM" | ||
app_title: "Data Agored Cofrestrfa Tir EM" | ||
feedback_request: "Problem neu awgrym? Bydd eich <a rel='external' href='mailto:[email protected]'>adborth</a> yn ein helpu i wella’r gwasanaeth hwn." | ||
language_selection: "Dewiswch eich dewis iaith" | ||
cookie_banner: | ||
heading: "Mae’r wefan hon yn defnyddio cwcis" | ||
details: "Ffeiliau sy’n cael eu storio ar eich cyfrifiadur, ffôn neu lechen yw cwcis. Maen nhw’n ein helpu i ddeall sut rydych yn defnyddio’r wefan hon, er enghraifft pa dudalennau rydych yn ymweld â nhw. Am ragor o wybodaeth, edrychwch ar ein" | ||
|
@@ -28,4 +30,4 @@ cy: | |
application_release: "Cyhoeddiad ap" | ||
accessibility: "Hygyrchedd" | ||
privacy: "Preifatrwydd" | ||
additional_terms: "Mae rhai <a href='https://www.gov.uk/government/statistical-data-sets/price-paid-data-downloads#using-or-publishing-our-price-paid-data'>telerau trwyddedu ychwanegol</a> yn gymwys wrth ailgyhoeddi data cyfeiriadau." | ||
additional_terms: "Mae rhai <a href='https://www.gov.uk/government/statistical-data-sets/price-paid-data-downloads#using-or-publishing-our-price-paid-data'>telerau trwyddedu ychwanegol</a> yn gymwys wrth ailgyhoeddi data cyfeiriadau." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
en: | ||
common: | ||
header: | ||
menu_text: "Menu" | ||
home_link: "Go to the UK HPI homepage" | ||
app_title: "HM Land Registry Open Data" | ||
site_title: "HM Land Registry Open Data" | ||
feedback_request: "Found a problem or have a suggestion? Your <a rel='external' href='mailto:[email protected]'>feedback</a> will help us to improve this service." | ||
language_selection: "Choose your preferred language" | ||
cookie_banner: | ||
heading: "This site uses cookies" | ||
details: "Cookies are files stored on your computer, phone, or tablet. They help us understand how you use this site, such as which pages you visit. For more information please read our" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters