Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO NOT MERGE] Remove travel advice rendering code #3426

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading