Skip to content

Commit 5a42f1c

Browse files
committed
WIP
1 parent 82f13f0 commit 5a42f1c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

app/controllers/application_controller.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# frozen_string_literal: true
22

33
class 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

6768
private
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

app/views/layouts/base.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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>

0 commit comments

Comments
 (0)