Skip to content

Commit

Permalink
Replace title component with heading component
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesCGDS committed Jan 29, 2025
1 parent e79b44a commit eaa19b2
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions app/views/applications/deploy.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
]
} %>

<%= render "govuk_publishing_components/components/title", {
title: "Deploy #{@release_tag}",
<%= render "govuk_publishing_components/components/heading", {
text: "Deploy #{@release_tag}",
context: @application.name,
margin_bottom: 2
} %>
Expand Down
4 changes: 2 additions & 2 deletions app/views/applications/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
]
} %>

<%= render "govuk_publishing_components/components/title", {
title: "Applications"
<%= render "govuk_publishing_components/components/heading", {
text: "Applications"
} %>

<%= render partial: "applications_table", locals: { applications: @applications, environments: @environments } %>
Expand Down
4 changes: 2 additions & 2 deletions app/views/applications/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

<%= render "shared/form_errors", resource: @application %>

<%= render "govuk_publishing_components/components/title", {
title: "Create new application"
<%= render "govuk_publishing_components/components/heading", {
text: "Create new application"
} %>

<%= render "govuk_publishing_components/components/lead_paragraph", {
Expand Down
4 changes: 2 additions & 2 deletions app/views/deployments/recent.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
]
} %>

<%= render "govuk_publishing_components/components/title", {
title: "Recent deployments"
<%= render "govuk_publishing_components/components/heading", {
text: "Recent deployments"
} %>

<%= form_tag(activity_path, method: :get) do %>
Expand Down
4 changes: 2 additions & 2 deletions app/views/deployments/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
]
} %>

<%= render "govuk_publishing_components/components/title", {
title: "Deploy ##{@deployment.id}"
<%= render "govuk_publishing_components/components/heading", {
text: "Deploy ##{@deployment.id}"
} %>

<div class="govuk-body">
Expand Down
4 changes: 2 additions & 2 deletions app/views/shared/_application_header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
breadcrumbs: [ root_crumb, { title: application.name, } ]
} %>

<%= render "govuk_publishing_components/components/title", {
title: "#{application.name}",
<%= render "govuk_publishing_components/components/heading", {
text: "#{application.name}",
context: application.shortname,
margin_bottom: 2
} %>
Expand Down
4 changes: 2 additions & 2 deletions app/views/sites/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

<%= render "shared/form_errors", resource: site_settings %>

<%= render "govuk_publishing_components/components/title", {
title: "Settings"
<%= render "govuk_publishing_components/components/heading", {
text: "Settings"
} %>


Expand Down
8 changes: 4 additions & 4 deletions app/views/stats/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
]
} %>

<%= render "govuk_publishing_components/components/title", {
title: "Deployments per month"
<%= render "govuk_publishing_components/components/heading", {
text: "Deployments per month"
} %>

<%= line_chart @stats.per_month, width: "100%", height: "450px", legend: false, download: true %>

<%= render "govuk_publishing_components/components/title", {
title: "Deployments per year"
<%= render "govuk_publishing_components/components/heading", {
text: "Deployments per year"
} %>

<%= column_chart @stats.per_year, width: "100%", height: "250px", legend: false, download: true %>

0 comments on commit eaa19b2

Please sign in to comment.