Skip to content

Commit

Permalink
Merge pull request #3426 from alphagov/remove-travel-advice-rendering…
Browse files Browse the repository at this point in the history
…-code

Remove travel advice rendering code
  • Loading branch information
leenagupte authored Dec 19, 2024
2 parents 5bb5346 + 0d2d964 commit 5d8746c
Show file tree
Hide file tree
Showing 89 changed files with 11 additions and 1,698 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ Government Frontend is a public-facing app to display the majority of documents
| Speech | [View on GOV.UK](https://www.gov.uk/government/speeches/government-at-your-service-ben-gummer-speech) |
| Take part | [View on GOV.UK](https://www.gov.uk/government/get-involved/take-part/become-a-councillor) |
| Topical event about page | [View on GOV.UK](https://www.gov.uk/government/topical-events/2014-overseas-territories-joint-ministerial-council/about) |
| Travel advice | [View on GOV.UK](https://www.gov.uk/foreign-travel-advice/nepal) |
| Working group | [View on GOV.UK](https://www.gov.uk/government/groups/abstraction-reform) |
| Worldwide corporate information page | [View on GOV.UK](https://www.gov.uk/world/organisations/british-embassy-madrid/about/complaints-procedure) |
| Worldwide office | [View on GOV.UK](https://www.gov.uk/world/organisations/british-embassy-paris/office/british-embassy) |
Expand Down
19 changes: 0 additions & 19 deletions app/assets/stylesheets/components/_download-link.scss

This file was deleted.

46 changes: 0 additions & 46 deletions app/assets/stylesheets/views/_travel-advice.scss

This file was deleted.

6 changes: 0 additions & 6 deletions app/controllers/content_items_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ def show
elsif is_history_page?
show_history_page
else
set_access_control_allow_origin_header if request.format.atom?
set_guide_draft_access_token if @content_item.is_a?(GuidePresenter)
render_template
end
Expand Down Expand Up @@ -191,18 +190,13 @@ def render_template

respond_to do |format|
format.html
format.atom
end

with_locale do
render content_item_template
end
end

def set_access_control_allow_origin_header
response.headers["Access-Control-Allow-Origin"] = "*"
end

def set_expiry
expires_in(
@content_item.cache_control_max_age(request.format),
Expand Down
1 change: 0 additions & 1 deletion app/controllers/development_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ def index
statistics_announcement
take_part
topical_event_about_page
travel_advice
working_group]

@paths = YAML.load_file(Rails.root.join("config/govuk_examples.yml"))
Expand Down
124 changes: 0 additions & 124 deletions app/presenters/travel_advice_presenter.rb

This file was deleted.

18 changes: 0 additions & 18 deletions app/views/components/_download_link.html.erb

This file was deleted.

18 changes: 0 additions & 18 deletions app/views/components/docs/download_link.yml

This file was deleted.

1 change: 0 additions & 1 deletion app/views/components/docs/figure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ body: |
Examples:
- [Case Study containing an image](/government/case-studies/2013-elections-in-swaziland)
- [Travel Advice containing a map (image)](/foreign-travel-advice/nepal)
accessibility_criteria: |
The figure must:
Expand Down
14 changes: 0 additions & 14 deletions app/views/content_items/travel_advice.atom.builder

This file was deleted.

45 changes: 0 additions & 45 deletions app/views/content_items/travel_advice.html+print.erb

This file was deleted.

Loading

0 comments on commit 5d8746c

Please sign in to comment.