-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't use legacy layouts for errors (#2517)
The error pages were using the legacy branding and this is very confusing, especially when shown in the embedded contexts. This change ensures the error pages are styled like regular pages.
- Loading branch information
Showing
4 changed files
with
40 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,7 @@ | ||
<% set_meta_tags(title: t(".#{@rescue_response}.title")) %> | ||
|
||
<%= heading_tag t(".#{@rescue_response}.heading", default: t('.heading')), class: "error-page__headline" %> | ||
|
||
<p class="error-page__text<% if @rescue_response != :not_found %> error-page__text--only<% end %>"><%= t(".#{@rescue_response}.intro", default: t(".#{@rescue_response}.title")) %></p> | ||
|
||
<p class="error-page__search-text"><%= t(".#{@rescue_response}.message") %></p> | ||
|
||
<form data-dough-component="ClearInput" action="/en/search" method="get" role="search" class="error-page__search search"> | ||
<label class="visually-hidden" for="search"><%= t('search_box.label') %></label> | ||
<input data-dough-clear-input class="search__input" id="search" required type="search" name="query" autocomplete="off" placeholder="<%= t(".#{@rescue_response}.search_placeholder") %>" /> | ||
|
||
<button data-dough-clear-input-button type="reset" class="search__clear"> | ||
<span class="icon icon--clear"></span> | ||
<span class="visually-hidden"><%= t('search_box.clear_hidden_text') %></span> | ||
</button> | ||
|
||
<button class="search__submit" type="submit"> | ||
<span class="icon icon--search"></span> | ||
<span class="visually-hidden"><%= t('search_box.button_text') %></span> | ||
</button> | ||
</form> | ||
<% content_for(:engine_content) do %> | ||
<div class="global-alert__content-container"> | ||
<%= heading_tag t(".#{@rescue_response}.heading", default: t('.heading')) %> | ||
<p><%= t(".#{@rescue_response}.intro", default: t(".#{@rescue_response}.title")) %></p> | ||
<p><%= t(".#{@rescue_response}.message") %></p> | ||
</div> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.