Skip to content

Commit

Permalink
Replace service manual subscription email link
Browse files Browse the repository at this point in the history
On service manual pages, replace the subscription email link with a
subscription_links component.
  • Loading branch information
patrickpatrickpatrick committed Mar 24, 2023
1 parent 23c77ae commit 28c12f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
9 changes: 0 additions & 9 deletions app/assets/stylesheets/modules/_related-content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,3 @@
border-top: 1px solid $govuk-border-colour;
}
}

.related-item {
&__email-link {
padding-left: 25px;
font-weight: bold;
background: image-url("service-manual/mail-icon-x2.png") 0 40% no-repeat;
background-size: 20px 14px;
}
}
11 changes: 8 additions & 3 deletions app/views/shared/_email_signup.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
margin_bottom: 2,
id: "related-subscriptions",
} %>
<p class="govuk-body">When any guidance within this topic is updated
<%= link_to "email", @content_item.email_alert_signup_link, class: 'govuk-link related-item__email-link' %>
</p>

<div class="related-item__subscription-link">
<%= render "govuk_publishing_components/components/subscription_links", {
hide_heading: true,
email_signup_link_text: "Get emails when any guidance within this topic is updated",
email_signup_link: @content_item.email_alert_signup_link
} %>
</div>
</div>

0 comments on commit 28c12f1

Please sign in to comment.