Skip to content

Commit 6e068f2

Browse files
authored
Merge pull request #5244 from alphagov/remove-heroku-alert
Remove Heroku alert element
2 parents e31601b + 77b97ff commit 6e068f2

File tree

5 files changed

+3
-55
lines changed

5 files changed

+3
-55
lines changed

app/assets/stylesheets/smart_answers.scss

-20
Original file line numberDiff line numberDiff line change
@@ -69,26 +69,6 @@ $is-ie: false !default;
6969
font-size: 15px;
7070
}
7171

72-
//Heroku alert
73-
.heroku-alert {
74-
margin: 0 15px 15px;
75-
border: 1px solid #b01117;
76-
background-color: govuk-colour('red');
77-
color: govuk-colour('white');
78-
padding: 1em;
79-
font-weight: bold;
80-
81-
a {
82-
cursor: pointer;
83-
color: govuk-colour('white');
84-
text-decoration: underline;
85-
86-
&:focus {
87-
@include govuk-focused-text;
88-
}
89-
}
90-
}
91-
9272
.app-c-meta-data {
9373
@include govuk-font($size: 16);
9474
color: $govuk-secondary-text-colour;

app/controllers/application_controller.rb

-5
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ def debug?
2121
end
2222
helper_method :debug?
2323

24-
def heroku?
25-
request.host.include? "herokuapp"
26-
end
27-
helper_method :heroku?
28-
2924
def error_403
3025
error(403)
3126
end

app/views/layouts/application.html.erb

+3-4
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,9 @@
3030
</head>
3131
<body class="govuk-template__body">
3232
<div class="govuk-width-container smart_answer" id="wrapper">
33-
<%= render partial: "smart_answers/shared/heroku_alert" if heroku? %>
34-
<main id="content" role="main">
35-
<%= yield %>
36-
</main>
33+
<main id="content" role="main">
34+
<%= yield %>
35+
</main>
3736
<%= yield :escape_link %>
3837
<%= render "govuk_publishing_components/components/feedback" %>
3938
</div>

app/views/smart_answers/shared/_heroku_alert.html.erb

-1
This file was deleted.

test/integration/heroku_alert_test.rb

-25
This file was deleted.

0 commit comments

Comments
 (0)