Skip to content

Commit

Permalink
Rename "Departments and Agencies" link to "Organisations" and reorder…
Browse files Browse the repository at this point in the history
… links
  • Loading branch information
davidtrussler authored and farahTW committed Oct 30, 2023
1 parent ee9c3bf commit bfe4f4b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/helpers/admin/url_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def admin_organisations_header_menu_link
end

def admin_organisations_link
admin_link "Departments & agencies", admin_organisations_path
admin_link "Organisations", admin_organisations_path
end

def admin_roles_header_menu_link
Expand Down
16 changes: 8 additions & 8 deletions app/views/admin/more/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@
<div class="govuk-grid-column-two-thirds">
<%= render "govuk_publishing_components/components/list", {
items: [
admin_organisations_link,
admin_cabinet_ministers_link,
admin_fields_of_operation_link,
admin_get_involved_link,
admin_governments_link,
admin_policy_groups_link,
admin_roles_link,
admin_organisations_link,
admin_people_link,
admin_roles_link,
admin_sitewide_settings_link,
admin_topical_events_link,
admin_worldwide_organisations_link,
admin_world_location_news_link,
admin_fields_of_operation_link,
admin_cabinet_ministers_link,
admin_get_involved_link,
admin_sitewide_settings_link,
admin_governments_link,
admin_worldwide_organisations_link,
],
} %>
</div>
Expand Down
2 changes: 1 addition & 1 deletion test/functional/admin/more_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ class Admin::MoreControllerTest < ActionController::TestCase
assert_response :success
assert_select "h1.govuk-heading-xl", text: "More"
assert_select ".govuk-list"
assert_select "a.govuk-link", text: "Departments & agencies"
assert_select "a.govuk-link", text: "Cabinet ministers order"
end
end

0 comments on commit bfe4f4b

Please sign in to comment.