File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
33class ApplicationController < ActionController ::Base
4+ before_action :rebrand
45 before_action :set_request_id
56 before_action :set_request_logging_attributes
67 before_action :check_maintenance_mode_is_enabled
@@ -66,6 +67,10 @@ def log_rescued_exception(exception)
6667
6768private
6869
70+ def rebrand
71+ @rebrand_enabled = Settings . features . rebrand
72+ end
73+
6974 def add_robots_header
7075 response . headers [ "X-Robots-Tag" ] = "noindex, nofollow"
7176 end
Original file line number Diff line number Diff line change 11<!DOCTYPE html>
2- < html lang ="en " class ="govuk-template govuk-template--rebranded ">
2+ < html lang ="en " class ="govuk-template <% if @rebrand %> govuk-template--rebranded " <% end %> >
33 < head >
44 < meta charset ="utf-8 ">
55 < title > <%= page_title %> </ title >
You can’t perform that action at this time.
0 commit comments