-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This removes the base view and replaces it with the application view as it doesn't do anything extra.
- Loading branch information
1 parent
d40fc04
commit 14b17ed
Showing
12 changed files
with
95 additions
and
106 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
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
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 |
---|---|---|
|
@@ -2,6 +2,4 @@ | |
|
||
class StaticController < ApplicationController | ||
include EligibilityCurrentNamespace | ||
|
||
layout "two_thirds" | ||
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 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,5 +1,89 @@ | ||
<% content_for :content do %> | ||
<%= yield %> | ||
<% end %> | ||
<!DOCTYPE html> | ||
<html lang="en" class="govuk-template"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title><%= [yield(:page_title).presence, t(current_namespace, scope: %i[service name])].compact.join(' - ') %></title> | ||
|
||
<%= render template: 'layouts/base' %> | ||
<%= csrf_meta_tags %> | ||
<%= csp_meta_tag %> | ||
|
||
<%= tag :meta, name: 'viewport', content: 'width=device-width, initial-scale=1' %> | ||
<%= tag :meta, property: 'og:image', content: asset_path('images/govuk-opengraph-image.png') %> | ||
<%= tag :meta, name: 'theme-color', content: '#0b0c0c' %> | ||
<%= favicon_link_tag asset_path('images/favicon.ico') %> | ||
<%= favicon_link_tag asset_path('images/govuk-mask-icon.svg'), rel: 'mask-icon', type: 'image/svg', color: "#0b0c0c" %> | ||
<%= favicon_link_tag asset_path('images/govuk-apple-touch-icon.png'), rel: 'apple-touch-icon', type: 'image/png' %> | ||
<%= favicon_link_tag asset_path('images/govuk-apple-touch-icon-152x152.png'), rel: 'apple-touch-icon', type: 'image/png', size: '152x152' %> | ||
<%= favicon_link_tag asset_path('images/govuk-apple-touch-icon-167x167.png'), rel: 'apple-touch-icon', type: 'image/png', size: '167x167' %> | ||
<%= favicon_link_tag asset_path('images/govuk-apple-touch-icon-180x180.png'), rel: 'apple-touch-icon', type: 'image/png', size: '180x180' %> | ||
|
||
<%= stylesheet_link_tag "application" %> | ||
<%= javascript_include_tag "application", defer: true %> | ||
</head> | ||
|
||
<body class="govuk-template__body"> | ||
<%= javascript_tag nonce: true do -%> | ||
document.body.className = ((document.body.className) ? document.body.className + ' js-enabled' : 'js-enabled'); | ||
<% end -%> | ||
|
||
<%= govuk_skip_link %> | ||
|
||
<%= render partial: "shared/header" %> | ||
|
||
<div class="govuk-width-container"> | ||
<div class="govuk-phase-banner"> | ||
<p class="govuk-phase-banner__content"> | ||
<strong class="govuk-tag govuk-phase-banner__content__tag app-environment-tag--<%= HostingEnvironment.name %>"> | ||
<%= HostingEnvironment.phase %> | ||
</strong> | ||
|
||
<span class="govuk-phase-banner__text"> | ||
<% if HostingEnvironment.production? %> | ||
This is a new service - <%= link_to "your feedback will help us to improve it", yield(:feedback_url).presence || t("service.form.feedback") %>. | ||
<% else %> | ||
This is a ‘<%= HostingEnvironment.phase %>’ version of the service. | ||
<% end %> | ||
</span> | ||
</p> | ||
</div> | ||
</div> | ||
|
||
<div class="govuk-width-container"> | ||
<%= govuk_back_link(href: yield(:back_link_url)) unless yield(:back_link_url).blank? %> | ||
<main class="govuk-main-wrapper" id="main-content" role="main"> | ||
<%= render(FlashMessage::Component.new(flash: flash)) %> | ||
<%= content_for?(:content) ? yield(:content) : yield %> | ||
</main> | ||
</div> | ||
|
||
<%= govuk_footer( | ||
meta_items_title: 'Footer links', | ||
meta_items: { | ||
'Accessibility': '/accessibility', | ||
'Cookies': '/cookies', | ||
'Privacy': '/privacy' | ||
} ) do |footer| %> | ||
<% footer.with_navigation do %> | ||
<% if current_teacher %> | ||
<div class="govuk-footer__section"> | ||
<h3 style="margin-left: 100px">Get help</h3> | ||
<p> | ||
If you’re having difficulty completing your application form, contact: | ||
<%= govuk_link_to t("service.email.enquiries"), "mailto:#{t("service.email.enquiries")}" %> | ||
for support. | ||
</p> | ||
<p> | ||
So that we can help you quickly, please include as much detail as possible | ||
about the problem you‘re experiencing, for example: | ||
</p> | ||
<ul class="govuk-list govuk-list--bullet"> | ||
<li>any important details (such as application reference numbers etc)</li> | ||
<li>screenshots that illustrate your problem</li> | ||
</ul> | ||
<p>We’ll aim to respond to you within 2 working days.</p> | ||
</div> | ||
<% end %> | ||
<% end %> | ||
<% end %> | ||
</body> | ||
</html> |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -6,4 +6,4 @@ | |
</div> | ||
<% end %> | ||
|
||
<%= render template: 'layouts/base' %> | ||
<%= render template: "layouts/application" %> |
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 |
---|---|---|
|
@@ -6,4 +6,4 @@ | |
</div> | ||
<% end %> | ||
|
||
<%= render template: 'layouts/base' %> | ||
<%= render template: "layouts/application" %> |
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