Skip to content

Commit

Permalink
Merge pull request #903 from alphagov/remove-contextual-comms-code
Browse files Browse the repository at this point in the history
Remove code associated with Contextual Comms A/B test
  • Loading branch information
emmabeynon authored May 16, 2018
2 parents 27ee66e + e845dca commit b05114c
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 422 deletions.
43 changes: 0 additions & 43 deletions app/assets/stylesheets/components/_blue-box-campaign.scss

This file was deleted.

31 changes: 0 additions & 31 deletions app/assets/stylesheets/components/_native-campaign.scss

This file was deleted.

176 changes: 0 additions & 176 deletions app/controllers/concerns/contextual_comms_ab_testable.rb

This file was deleted.

1 change: 0 additions & 1 deletion app/controllers/content_items_controller.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
class ContentItemsController < ApplicationController
include ContextualCommsAbTestable

rescue_from GdsApi::HTTPForbidden, with: :error_403
rescue_from GdsApi::HTTPNotFound, with: :error_notfound
Expand Down
6 changes: 0 additions & 6 deletions app/views/components/_blue-box-campaign.html.erb

This file was deleted.

5 changes: 0 additions & 5 deletions app/views/components/_native-campaign.html.erb

This file was deleted.

1 change: 0 additions & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
<meta name="twitter:card" content="summary" />
<% end %>

<%= contextual_comms_test_variant.analytics_meta_tag.html_safe if whitelisted_campaign_page? %>
<%= yield :extra_head_content %>
</head>
<body>
Expand Down
9 changes: 0 additions & 9 deletions app/views/shared/_sidebar_navigation.html.erb
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
<div class="column-one-third">
<%= render 'govuk_publishing_components/components/contextual_sidebar', content_item: @content_item.content_item.parsed_content %>
<!-- Rendering the contextual communications campaign test -->
<% if show_contextual_comms_campaign? %>
<% if show_blue_box_campaign? %>
<%= render 'components/blue-box-campaign', title: campaign_title, description: campaign_description, href: campaign_link %>
<% end %>
<% if show_native_campaign? %>
<%= render 'components/native-campaign', title: campaign_title, description: campaign_description, href: campaign_link %>
<% end %>
<% end %>
</div>
20 changes: 0 additions & 20 deletions test/components/blue_box_campaign_test.rb

This file was deleted.

20 changes: 0 additions & 20 deletions test/components/native_campaign_test.rb

This file was deleted.

Loading

0 comments on commit b05114c

Please sign in to comment.