Skip to content

Commit

Permalink
Remove rendering code for worldwide organisations
Browse files Browse the repository at this point in the history
The worldwide organisation pages are now rendered by government-frontend
(#7937).

This removes the public controller, and any related code.
  • Loading branch information
jkempster34 committed Jul 13, 2023
1 parent 9edcdce commit 99099e5
Show file tree
Hide file tree
Showing 19 changed files with 68 additions and 684 deletions.
82 changes: 0 additions & 82 deletions app/assets/javascripts/frontend/hide-other-links.js

This file was deleted.

3 changes: 0 additions & 3 deletions app/assets/javascripts/frontend/on_ready.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// Happen as soon as the DOM is loaded and before assets are downloaded
jQuery(function ($) {
$('.js-hide-other-links').hideOtherLinks()
$('.js-hide-other-departments').hideOtherLinks({ linkElement: 'span', alwaysVisibleClass: '.lead' })

$('.govspeak').enhanceYoutubeVideoLinks()

GOVUK.worldLocationFilter.init()
Expand Down
9 changes: 0 additions & 9 deletions app/helpers/document_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,4 @@ def attachment_attributes(attachment)
def native_language_name_for(locale)
Locale.new(locale).native_language_name
end

def link_to_translation(locale)
options = {}

options[:locale] = locale
options[:locale] = nil if locale.to_s == "en"

link_to native_language_name_for(locale), options, lang: locale, class: "govuk-link"
end
end
57 changes: 0 additions & 57 deletions app/views/contacts/_organisation_contact.html.erb

This file was deleted.

15 changes: 0 additions & 15 deletions app/views/shared/_available_languages.html.erb

This file was deleted.

39 changes: 0 additions & 39 deletions app/views/worldwide_organisations/_corporate_information.html.erb

This file was deleted.

38 changes: 0 additions & 38 deletions app/views/worldwide_organisations/_header.html.erb

This file was deleted.

100 changes: 0 additions & 100 deletions app/views/worldwide_organisations/show.html.erb

This file was deleted.

2 changes: 1 addition & 1 deletion features/managing-contact-details-on-homepages.feature
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Feature: managing contact details on home pages
Given there is a worldwide organisation with some offices on its home page
When I add a new office to be featured on the home page of the worldwide organisation
And I reorder the offices to highlight my new office
Then I see the offices in my specified order including the new one under the main office on the home page of the worldwide organisation
# Then I see the offices in my specified order including the new one under the main office on the home page of the worldwide organisation

Scenario: Removing offices from the home page of a worldwide organisation
Given there is a worldwide organisation with some offices on its home page
Expand Down
2 changes: 0 additions & 2 deletions features/roles.feature
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,12 @@ Feature: Administering Roles
And a person called "Giles Paxman"
When I add a new "Ambassador" role named "Her Majesty's Ambassador to Spain" to the "British embassy in Spain" worldwide organisation
Then I should be able to appoint "Giles Paxman" to the new role
And I should see him listed as "Her Majesty's Ambassador to Spain" on the worldwide organisation page

Scenario: Adding a deputy role to a worldwide organisation
Given the worldwide organisation "British embassy in Spain" exists
And a person called "Andrew Tomkins"
When I add a new "Deputy head of mission" role named "Deputy Head of Mission" to the "British embassy in Spain" worldwide organisation
Then I should be able to appoint "Andrew Tomkins" to the new role
And I should see him listed as "Deputy Head of Mission" on the worldwide organisation page

Scenario: Adding a new translation
Given the worldwide organisation "British embassy in Spain" exists
Expand Down
Loading

0 comments on commit 99099e5

Please sign in to comment.