Skip to content

Commit

Permalink
Merge pull request #9621 from alphagov/content-modelling/691-update-r…
Browse files Browse the repository at this point in the history
…aise-a-support-request-button-link-on-homepage

(691) Update "Raise a support request" button link on homepage
  • Loading branch information
pezholio authored Nov 20, 2024
2 parents 274bfe0 + 6effc9d commit de8084c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
text: "Keyword",
bold: true,
},
hint: 'For example, "driving standards"',
name: "keyword",
id: "keyword_filter",
value: @filters.present? && @filters[:keyword],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ def product_name
"Content Block Manager"
end

def support_url
"#{Plek.external_url_for('support')}/general_request/new"
end
helper_method :support_url

# This ensures we can override views if we need to without altering the Engine's load order, which
# may have unintended consequences
def prepend_views
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

<div class="govuk-grid-row govuk-!-margin-bottom-8">
<div class="govuk-grid-column-full">
<p class="govuk-body govuk-!-margin-bottom-1">Create, edit and use modular content.</p>
<p class="govuk-body">If you need any support or want to delete a content block, you can raise a support request.</p>
<span class="govuk-!-margin-right-2">
<%= render "govuk_publishing_components/components/button", {
Expand All @@ -14,7 +13,7 @@
<span>
<%= render "govuk_publishing_components/components/button", {
text: "Raise a support request",
href: "https://govuk.zendesk.com",
href: support_url,
secondary_solid: true,
} %>
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<h2 class="govuk-heading-m">What happens next</h2>
<p><%= @paragraph_copy %><br>
If you need any support or want to delete an instance you can
<a class="govuk-link--no-visited-state" href="<%= Plek.external_url_for("support") %>">raise a support request</a>
<%= link_to "raise a support request", support_url, class: "govuk-link--no-visited-state" %>
</p>
<%= render "govuk_publishing_components/components/button", {
text: "View content block",
Expand Down

0 comments on commit de8084c

Please sign in to comment.