Skip to content

Commit

Permalink
Merge pull request #2442 from alphagov/remove-tree-survey
Browse files Browse the repository at this point in the history
Remove tree survey banner from pages
  • Loading branch information
hannako authored May 20, 2022
2 parents 4b08a93 + 4e52a46 commit 7759f82
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 98 deletions.
1 change: 0 additions & 1 deletion app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ $govuk-new-link-styles: true;
@import 'govuk_publishing_components/components/image-card';
@import 'govuk_publishing_components/components/input';
@import 'govuk_publishing_components/components/inset-text';
@import 'govuk_publishing_components/components/intervention';
@import 'govuk_publishing_components/components/inverse-header';
@import 'govuk_publishing_components/components/label';
@import 'govuk_publishing_components/components/lead-paragraph';
Expand Down
4 changes: 0 additions & 4 deletions app/assets/stylesheets/components/_banner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,3 @@
max-width: 30em;
padding-top: govuk-spacing(2);
}

.gem-c-intervention {
margin-top: govuk-spacing(4);
}
28 changes: 0 additions & 28 deletions app/presenters/content_item/recruitment_banner.rb

This file was deleted.

1 change: 0 additions & 1 deletion app/presenters/content_item_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ class ContentItemPresenter
include ContentItem::Withdrawable
include ContentItem::BrexitTaxons
include ContentItem::SinglePageNotificationButton
include ContentItem::RecruitmentBanner
attr_reader :content_item,
:requested_path,
:view_context,
Expand Down
9 changes: 1 addition & 8 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,7 @@
</head>
<body>
<div id="wrapper" class="<%= wrapper_class %>">
<% if @content_item.recruitment_survey_url %>
<%= render "govuk_publishing_components/components/intervention", {
suggestion_text: "Help improve GOV.UK",
suggestion_link_text: "Take part in user research",
suggestion_link_url: @content_item.recruitment_survey_url,
new_tab: true,
} %>
<% elsif @content_item.show_phase_banner? %>
<% if @content_item.show_phase_banner? %>
<%= render 'govuk_publishing_components/components/phase_banner', phase: @content_item.phase %>
<% end %>

Expand Down
56 changes: 0 additions & 56 deletions test/integration/recruitment_banner_test.rb

This file was deleted.

0 comments on commit 7759f82

Please sign in to comment.