diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 510b9e758..9b276cddd 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -4,6 +4,7 @@ //= require govuk_publishing_components/components/error-summary //= require govuk_publishing_components/components/feedback //= require govuk_publishing_components/components/govspeak +//= require govuk_publishing_components/components/intervention //= require govuk_publishing_components/components/metadata //= require govuk_publishing_components/components/print-link //= require govuk_publishing_components/components/radio diff --git a/app/assets/stylesheets/components/_banner.scss b/app/assets/stylesheets/components/_banner.scss index 55c773b78..5349b2e4c 100644 --- a/app/assets/stylesheets/components/_banner.scss +++ b/app/assets/stylesheets/components/_banner.scss @@ -34,3 +34,7 @@ max-width: 30em; padding-top: govuk-spacing(2); } + +.gem-c-intervention { + margin-top: govuk-spacing(4); +} diff --git a/app/presenters/content_item_presenter.rb b/app/presenters/content_item_presenter.rb index 0a3e8ef5d..f307f3c77 100644 --- a/app/presenters/content_item_presenter.rb +++ b/app/presenters/content_item_presenter.rb @@ -20,6 +20,8 @@ class ContentItemPresenter attr_accessor :include_collections_in_other_publisher_metadata + USER_RESEARCH_PAGES = %w[register-for-self-assessment self-employed-records income-tax-rates].freeze + def initialize(content_item, requested_path, view_context) @content_item = content_item @requested_path = requested_path @@ -87,6 +89,10 @@ def show_phase_banner? phase.in?(%w[alpha beta]) end + def show_study_banner? + USER_RESEARCH_PAGES.include?(slug) + end + def render_guide_as_single_page? # /how-to-vote content_id == "9315bc67-33e7-42e9-8dea-e022f56dabfa" && voting_is_open? diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index c6ce899fc..ac96400fe 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -31,7 +31,14 @@