diff --git a/app/components/data_protection_confirmation_banner_component.rb b/app/components/data_protection_confirmation_banner_component.rb index 5757ad87f..745c79e20 100644 --- a/app/components/data_protection_confirmation_banner_component.rb +++ b/app/components/data_protection_confirmation_banner_component.rb @@ -3,8 +3,6 @@ class DataProtectionConfirmationBannerComponent < ViewComponent::Base attr_reader :user, :organisation - HELPDESK_URL = "https://dluhcdigital.atlassian.net/servicedesk/customer/portal/6/group/11".freeze - def initialize(user:, organisation: nil) @user = user @organisation = organisation @@ -58,7 +56,7 @@ private end def link_href - dpo_required? ? HELPDESK_URL : data_sharing_agreement_organisation_path(org_or_user_org) + dpo_required? ? GlobalConstants::HELPDESK_URL : data_sharing_agreement_organisation_path(org_or_user_org) end def dpo_required? diff --git a/app/components/missing_stock_owners_banner_component.rb b/app/components/missing_stock_owners_banner_component.rb index 6585dd6ea..c0cc731d4 100644 --- a/app/components/missing_stock_owners_banner_component.rb +++ b/app/components/missing_stock_owners_banner_component.rb @@ -3,8 +3,6 @@ class MissingStockOwnersBannerComponent < ViewComponent::Base attr_reader :user, :organisation - HELPDESK_URL = "https://dluhcdigital.atlassian.net/servicedesk/customer/portal/6/group/11".freeze - def initialize(user:) @user = user @organisation = user.organisation @@ -49,7 +47,7 @@ private def contact_helpdesk_link govuk_link_to( "contact the helpdesk", - HELPDESK_URL, + GlobalConstants::HELPDESK_URL, class: "govuk-notification-banner__link govuk-!-font-weight-bold", ) end diff --git a/app/constants/global_constants.rb b/app/constants/global_constants.rb new file mode 100644 index 000000000..c25bf7c92 --- /dev/null +++ b/app/constants/global_constants.rb @@ -0,0 +1,3 @@ +module GlobalConstants + HELPDESK_URL = "https://dluhcdigital.atlassian.net/servicedesk/customer/portal/6/group/11".freeze +end diff --git a/app/mailers/csv_download_mailer.rb b/app/mailers/csv_download_mailer.rb index b590ebcfc..681f864e9 100644 --- a/app/mailers/csv_download_mailer.rb +++ b/app/mailers/csv_download_mailer.rb @@ -29,8 +29,6 @@ class CsvDownloadMailer < NotifyMailer private - HELPDESK_URL = "https://dluhcdigital.atlassian.net/servicedesk/customer/portal/6/group/11".freeze - def issue_explanation(issue_types, log_type) [ "We have found #{multiple_issue_types?(issue_types) ? 'these issues' : 'this issue'} in your logs imported to the new version of CORE:\n", @@ -43,7 +41,7 @@ private def how_to_fix(issue_types, link, log_type) [ "You need to:\n\n", - "- download [this spreadsheet for #{log_type} logs](#{link}). This link will expire in one week. To request another link, [contact the CORE helpdesk](#{HELPDESK_URL}).\n", + "- download [this spreadsheet for #{log_type} logs](#{link}). This link will expire in one week. To request another link, [contact the CORE helpdesk](#{GlobalConstants::HELPDESK_URL}).\n", issue_types.include?("missing_address") || issue_types.include?("missing_town") ? "- fill in the missing address data\n" : "", uprn_issues_only(issue_types) ? "- check that the address data is correct\n" : "- check that the existing address data is correct\n", has_uprn_issues(issue_types) ? "- correct any address errors\n" : "", diff --git a/app/views/errors/not_found.html.erb b/app/views/errors/not_found.html.erb index 23401c82b..f79b1422d 100644 --- a/app/views/errors/not_found.html.erb +++ b/app/views/errors/not_found.html.erb @@ -5,6 +5,6 @@
If you typed the web address, check it is correct.
If you pasted the web address, check you copied the entire address.
-<%= govuk_link_to "Get help", "https://dluhcdigital.atlassian.net/servicedesk/customer/portal/6/group/11" %> if the web address is correct and not working.
+<%= govuk_link_to "Get help", GlobalConstants::HELPDESK_URL %> if the web address is correct and not working.
diff --git a/app/views/layouts/_footer.html.erb b/app/views/layouts/_footer.html.erb index f105cb9d5..cadc13db6 100644 --- a/app/views/layouts/_footer.html.erb +++ b/app/views/layouts/_footer.html.erb @@ -6,7 +6,7 @@- <%= govuk_link_to("CORE helpdesk (opens in a new tab)", "https://dluhcdigital.atlassian.net/servicedesk/customer/portal/6/group/11", class: "govuk-footer__link", rel: "noreferrer noopener", target: "_blank") %> + <%= govuk_link_to("CORE helpdesk (opens in a new tab)", GlobalConstants::HELPDESK_URL, class: "govuk-footer__link", rel: "noreferrer noopener", target: "_blank") %>
You will be able to use the service from 9am on Thursday 16 November 2023.
Changes from the page you were on have not been saved. Changes on pages where you have selected 'save and continue' have been saved.
-<%= govuk_link_to "Contact the helpdesk", "https://dluhcdigital.atlassian.net/servicedesk/customer/portal/6/group/11" %> if you need help.
+<%= govuk_link_to "Contact the helpdesk", GlobalConstants::HELPDESK_URL %> if you need help.
To report a merge or update your organisation details, <%= govuk_link_to "contact the helpdesk", "https://dluhcdigital.atlassian.net/servicedesk/customer/portal/6/group/11" %>.
+To report a merge or update your organisation details, <%= govuk_link_to "contact the helpdesk", GlobalConstants::HELPDESK_URL %>.
<% end %> <%= render partial: "organisations/merged_organisation_details" %> diff --git a/app/views/schemes/changes.html.erb b/app/views/schemes/changes.html.erb index 850cc63ce..74c23f0f6 100644 --- a/app/views/schemes/changes.html.erb +++ b/app/views/schemes/changes.html.erb @@ -28,6 +28,6 @@If you upload logs in bulk, you can use either the new or old scheme codes in your template.
You should be able to recognise a scheme migrated from old CORE by viewing its details or locations. Try searching for it by postcode.
-If you still can’t find a scheme that was migrated from old CORE, either create a new one if you know the details, or <%= govuk_link_to("contact the helpdesk", "https://dluhcdigital.atlassian.net/servicedesk/customer/portal/6/group/11", rel: "noreferrer noopener", target: "_blank") %> to report the problem. Only data coordinators can create and edit schemes.
+If you still can’t find a scheme that was migrated from old CORE, either create a new one if you know the details, or <%= govuk_link_to("contact the helpdesk", GlobalConstants::HELPDESK_URL, rel: "noreferrer noopener", target: "_blank") %> to report the problem. Only data coordinators can create and edit schemes.
diff --git a/app/views/start/index.html.erb b/app/views/start/index.html.erb index 8ce802478..3c10232d2 100644 --- a/app/views/start/index.html.erb +++ b/app/views/start/index.html.erb @@ -18,7 +18,7 @@Use your account details to sign in.
-If you need to set up a new account, speak to your organisation’s CORE data coordinator. If you don’t know who that is, <%= govuk_link_to("contact the helpdesk", "https://dluhcdigital.atlassian.net/servicedesk/customer/portal/6/group/11") %>.
+If you need to set up a new account, speak to your organisation’s CORE data coordinator. If you don’t know who that is, <%= govuk_link_to("contact the helpdesk", GlobalConstants::HELPDESK_URL) %>.
You can <%= govuk_mail_to("dluhc.digital-services@levellingup.gov.uk", "request an account", subject: "CORE: Request a new account") %> if your organisation doesn’t have one.