-
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.
CRIMAPP-1568 Replace MoJ primary navigation with Govuk
Replacing the MoJ primary navigation with the GOVUK Service navigation improves accessibility at higher magnification. Latest GOVUK header navigation recommendations not adopted as part of this work.
- Loading branch information
Showing
7 changed files
with
35 additions
and
61 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,13 @@ | ||
<div class="moj-primary-navigation"> | ||
|
||
<div class="moj-primary-navigation__container"> | ||
|
||
<div class="moj-primary-navigation__nav"> | ||
<nav class="moj-primary-navigation" aria-label="Primary navigation"> | ||
|
||
<!-- Applications --> | ||
<% if current_user.service_user? %> | ||
<ul class="moj-primary-navigation__list"> | ||
<li class="moj-primary-navigation__item"> | ||
<%= link_to t('primary_navigation.your_list', | ||
count: assignments_count), | ||
assigned_applications_path, | ||
class: 'moj-primary-navigation__link', | ||
aria: { current: current_page?(assigned_applications_path) ? 'page' : nil } %> | ||
</li> | ||
|
||
<li class="moj-primary-navigation__item"> | ||
<%= link_to t('primary_navigation.search'), | ||
new_application_searches_path, | ||
class: 'moj-primary-navigation__link', | ||
aria: { current: request.url.include?('searches') ? 'page' : nil } %> | ||
</li> | ||
|
||
<li class="moj-primary-navigation__item"> | ||
<%= link_to t('primary_navigation.open_apps'), | ||
open_crime_applications_path, | ||
class: 'moj-primary-navigation__link', | ||
aria: { current: current_page?(open_crime_applications_path) ? 'page' : nil } %> | ||
</li> | ||
|
||
<li class="moj-primary-navigation__item"> | ||
<%= link_to t('primary_navigation.closed_apps'), | ||
closed_crime_applications_path, | ||
class: 'moj-primary-navigation__link', | ||
aria: { current: current_page?(closed_crime_applications_path) ? 'page' : nil } %> | ||
</li> | ||
</ul> | ||
<% end %> | ||
</nav> | ||
</div> | ||
</div> | ||
</div> | ||
<%= govuk_service_navigation(navigation_id: 'example-5', current_path: request.path, classes: 'app-service-navigation') do |sn| %> | ||
<%= sn.with_navigation_item( | ||
text: t('primary_navigation.your_list', count: assignments_count), | ||
href: assigned_applications_path | ||
) %> | ||
<%= sn.with_navigation_item( | ||
text: t('primary_navigation.search'), | ||
href: new_application_searches_path, | ||
active_when: /application_searches/ | ||
) %> | ||
<%= sn.with_navigation_item(text: t('primary_navigation.open_apps'), href: open_crime_applications_path) %> | ||
<%= sn.with_navigation_item(text: t('primary_navigation.closed_apps'), href: closed_crime_applications_path) %> | ||
<% end %> |
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