Skip to content

Commit

Permalink
Updates | hmrc: Update h1 to replicate page title
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtrussler committed Apr 12, 2024
1 parent 4a0892c commit 4803c8f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/content_items/hmrc_manual_updates.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
} %>
<% end %>

<%= render "content_items/manuals/manual_updates_layout" %>
<%= render "content_items/manuals/manual_updates_layout", type: I18n.t("manuals.hmrc_manual_type") %>
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<%
type ||= nil
%>

<% content_for :main do %>
<div id="manuals-frontend" class="manuals-frontend-body">
<%= render "content_items/manuals/updates", content_item: @content_item %>
<%= render "content_items/manuals/updates", content_item: @content_item, manual_type: type %>
</div>
<% end %>
12 changes: 11 additions & 1 deletion app/views/content_items/manuals/_updates.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
<%
manual_type ||= nil

if manual_type
text = "#{t("manuals.updates_title", title: content_item.title)} - #{manual_type}"
else
text = t("manuals.updates_title", title: content_item.title)
end
%>

<div class="govuk-grid-row">
<div class="manual-body">
<article aria-labelledby="section-title">
Expand All @@ -7,7 +17,7 @@
heading_level: 1,
id: "section-title",
margin_bottom: 4,
text: t("manuals.updates_title", title: content_item.title),
text: text
} %>
</div>

Expand Down

0 comments on commit 4803c8f

Please sign in to comment.