-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify the main layout_for_public component code by breaking parts of the component out into separate partials
- Loading branch information
1 parent
b081ead
commit 364a7bb
Showing
3 changed files
with
61 additions
and
52 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
16 changes: 16 additions & 0 deletions
16
...ovuk_publishing_components/components/layout_for_public/_account-feedback-footer.html.erb
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<%= tag.div(class: "govuk-width-container") do %> | ||
<%= tag.div(class: "gem-c-layout-for-public-account-feedback-footer") do %> | ||
<%= render "govuk_publishing_components/components/heading", { | ||
text: t("components.layout_for_public.account_layout.feedback.banners.title"), | ||
heading_level: 2, | ||
font_size: "m", | ||
margin_bottom: 4, | ||
} %> | ||
|
||
<p class="govuk-body govuk-!-margin-bottom-0"> | ||
<%= t("components.layout_for_public.account_layout.feedback.banners.footer_intro") %> | ||
<a href="<%= "#{Plek.find('account-manager')}/feedback" %>" class="govuk-link"><%= t("components.layout_for_public.account_layout.feedback.banners.footer_link") %></a> | ||
<%= t("components.layout_for_public.account_layout.feedback.banners.footer_outro") %> | ||
</p> | ||
<% end %> | ||
<% end %> |
28 changes: 28 additions & 0 deletions
28
app/views/govuk_publishing_components/components/layout_for_public/_account-layout.html.erb
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<div class="govuk-width-container"> | ||
<% message = capture do %> | ||
<%= t("components.layout_for_public.account_layout.feedback.banners.phase_intro") %> | ||
<a class="govuk-link" href=<%= "#{Plek.find('account-manager')}/feedback" %>><%= t("components.layout_for_public.account_layout.feedback.banners.phase_link") %></a> | ||
<%= t("components.layout_for_public.account_layout.feedback.banners.phase_outro") %> | ||
<% end %> | ||
|
||
<%= render "govuk_publishing_components/components/phase_banner", { | ||
phase: "alpha", | ||
message: message | ||
} unless omit_account_phase_banner %> | ||
|
||
|
||
<div class="govuk-grid-row govuk-main-wrapper"> | ||
<%= tag.div(class: 'govuk-grid-column-one-third') do %> | ||
<%= render "govuk_publishing_components/components/layout_for_public/account-navigation", { page_is: account_nav_location} %> | ||
<% end unless omit_account_navigation %> | ||
|
||
<div class="govuk-grid-column-two-thirds"> | ||
<div id="wrapper"> | ||
<%= yield :before_content %> | ||
<main role="main" id="content"> | ||
<%= yield %> | ||
</main> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |