Browse Source

Extract the helpdesk url constant

pull/2086/head
Kat 2 years ago
parent
commit
3f7ac45402
  1. 4
      app/components/data_protection_confirmation_banner_component.rb
  2. 4
      app/components/missing_stock_owners_banner_component.rb
  3. 3
      app/constants/global_constants.rb
  4. 4
      app/mailers/csv_download_mailer.rb
  5. 2
      app/views/errors/not_found.html.erb
  6. 2
      app/views/layouts/_footer.html.erb
  7. 2
      app/views/maintenance/service_unavailable.html.erb
  8. 2
      app/views/organisation_relationships/add_managing_agent.html.erb
  9. 2
      app/views/organisation_relationships/add_stock_owner.html.erb
  10. 2
      app/views/organisations/show.html.erb
  11. 2
      app/views/schemes/changes.html.erb
  12. 2
      app/views/start/index.html.erb

4
app/components/data_protection_confirmation_banner_component.rb

@ -3,8 +3,6 @@ class DataProtectionConfirmationBannerComponent < ViewComponent::Base
attr_reader :user, :organisation attr_reader :user, :organisation
HELPDESK_URL = "https://dluhcdigital.atlassian.net/servicedesk/customer/portal/6/group/11".freeze
def initialize(user:, organisation: nil) def initialize(user:, organisation: nil)
@user = user @user = user
@organisation = organisation @organisation = organisation
@ -58,7 +56,7 @@ private
end end
def link_href 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 end
def dpo_required? def dpo_required?

4
app/components/missing_stock_owners_banner_component.rb

@ -3,8 +3,6 @@ class MissingStockOwnersBannerComponent < ViewComponent::Base
attr_reader :user, :organisation attr_reader :user, :organisation
HELPDESK_URL = "https://dluhcdigital.atlassian.net/servicedesk/customer/portal/6/group/11".freeze
def initialize(user:) def initialize(user:)
@user = user @user = user
@organisation = user.organisation @organisation = user.organisation
@ -49,7 +47,7 @@ private
def contact_helpdesk_link def contact_helpdesk_link
govuk_link_to( govuk_link_to(
"contact the helpdesk", "contact the helpdesk",
HELPDESK_URL, GlobalConstants::HELPDESK_URL,
class: "govuk-notification-banner__link govuk-!-font-weight-bold", class: "govuk-notification-banner__link govuk-!-font-weight-bold",
) )
end end

3
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

4
app/mailers/csv_download_mailer.rb

@ -29,8 +29,6 @@ class CsvDownloadMailer < NotifyMailer
private private
HELPDESK_URL = "https://dluhcdigital.atlassian.net/servicedesk/customer/portal/6/group/11".freeze
def issue_explanation(issue_types, log_type) 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", "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) def how_to_fix(issue_types, link, log_type)
[ [
"You need to:\n\n", "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" : "", 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", 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" : "", has_uprn_issues(issue_types) ? "- correct any address errors\n" : "",

2
app/views/errors/not_found.html.erb

@ -5,6 +5,6 @@
<h1 class="govuk-heading-l"><%= content_for(:title) %></h1> <h1 class="govuk-heading-l"><%= content_for(:title) %></h1>
<p class="govuk-body">If you typed the web address, check it is correct.</p> <p class="govuk-body">If you typed the web address, check it is correct.</p>
<p class="govuk-body">If you pasted the web address, check you copied the entire address.</p> <p class="govuk-body">If you pasted the web address, check you copied the entire address.</p>
<p class="govuk-body"><%= govuk_link_to "Get help", "https://dluhcdigital.atlassian.net/servicedesk/customer/portal/6/group/11" %> if the web address is correct and not working.</p> <p class="govuk-body"><%= govuk_link_to "Get help", GlobalConstants::HELPDESK_URL %> if the web address is correct and not working.</p>
</div> </div>
</div> </div>

2
app/views/layouts/_footer.html.erb

@ -6,7 +6,7 @@
<div class="govuk-grid-column-one-third-from-desktop"> <div class="govuk-grid-column-one-third-from-desktop">
<h3 class="govuk-heading-s govuk-!-margin-bottom-1">Online helpdesk</h3> <h3 class="govuk-heading-s govuk-!-margin-bottom-1">Online helpdesk</h3>
<p class="govuk-body govuk-!-font-size-16"> <p class="govuk-body govuk-!-font-size-16">
<%= 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") %>
</p> </p>
</div> </div>

2
app/views/maintenance/service_unavailable.html.erb

@ -6,6 +6,6 @@
<div class="govuk-grid-column-two-thirds-from-desktop"> <div class="govuk-grid-column-two-thirds-from-desktop">
<p class="govuk-body">You will be able to use the service from 9am on Thursday 16 November 2023.</p> <p class="govuk-body">You will be able to use the service from 9am on Thursday 16 November 2023.</p>
<p class="govuk-body">Changes from the page you were on have not been saved. Changes on pages where you have selected 'save and continue' have been saved.</p> <p class="govuk-body">Changes from the page you were on have not been saved. Changes on pages where you have selected 'save and continue' have been saved.</p>
<p class="govuk-body"><%= govuk_link_to "Contact the helpdesk", "https://dluhcdigital.atlassian.net/servicedesk/customer/portal/6/group/11" %> if you need help.</p> <p class="govuk-body"><%= govuk_link_to "Contact the helpdesk", GlobalConstants::HELPDESK_URL %> if you need help.</p>
</div> </div>
</div> </div>

2
app/views/organisation_relationships/add_managing_agent.html.erb

@ -31,7 +31,7 @@
<li>Double check the spelling and try again</li> <li>Double check the spelling and try again</li>
<li>Type the first few letters to see the suggestions</li> <li>Type the first few letters to see the suggestions</li>
<li>If you still can't find it, <li>If you still can't find it,
<%= govuk_link_to("contact the DLUHC service desk", "https://dluhcdigital.atlassian.net/servicedesk/customer/portal/6/group/11", rel: "noreferrer noopener", target: "_blank") %> <%= govuk_link_to("contact the DLUHC service desk", GlobalConstants::HELPDESK_URL, rel: "noreferrer noopener", target: "_blank") %>
</li> </li>
</ul> </ul>
<% end %> <% end %>

2
app/views/organisation_relationships/add_stock_owner.html.erb

@ -31,7 +31,7 @@
<li>Double check the spelling and try again</li> <li>Double check the spelling and try again</li>
<li>Type the first few letters to see the suggestions</li> <li>Type the first few letters to see the suggestions</li>
<li>If you still can't find it, <li>If you still can't find it,
<%= govuk_link_to("contact the DLUHC service desk", "https://dluhcdigital.atlassian.net/servicedesk/customer/portal/6/group/11", rel: "noreferrer noopener", target: "_blank") %> <%= govuk_link_to("contact the DLUHC service desk", GlobalConstants::HELPDESK_URL, rel: "noreferrer noopener", target: "_blank") %>
</li> </li>
</ul> </ul>
<% end %> <% end %>

2
app/views/organisations/show.html.erb

@ -37,7 +37,7 @@
<%= data_sharing_agreement_row(organisation: @organisation, user: current_user, summary_list:) %> <%= data_sharing_agreement_row(organisation: @organisation, user: current_user, summary_list:) %>
<% end %> <% end %>
<% if FeatureToggle.merge_organisations_enabled? %> <% if FeatureToggle.merge_organisations_enabled? %>
<p>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" %>.</p> <p>To report a merge or update your organisation details, <%= govuk_link_to "contact the helpdesk", GlobalConstants::HELPDESK_URL %>.</p>
<% end %> <% end %>
<%= render partial: "organisations/merged_organisation_details" %> <%= render partial: "organisations/merged_organisation_details" %>
</div> </div>

2
app/views/schemes/changes.html.erb

@ -28,6 +28,6 @@
<p class="govuk-body">If you upload logs in bulk, you can use either the new or old scheme codes in your template.</p> <p class="govuk-body">If you upload logs in bulk, you can use either the new or old scheme codes in your template.</p>
<h2 class="govuk-heading-m">If you can’t find a scheme</h2> <h2 class="govuk-heading-m">If you can’t find a scheme</h2>
<p class="govuk-body">You should be able to recognise a scheme migrated from old CORE by viewing its details or locations. Try searching for it by postcode.</p> <p class="govuk-body">You should be able to recognise a scheme migrated from old CORE by viewing its details or locations. Try searching for it by postcode.</p>
<p class="govuk-body">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.</p> <p class="govuk-body">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.</p>
</div> </div>
</div> </div>

2
app/views/start/index.html.erb

@ -18,7 +18,7 @@
<h2 class="govuk-heading-m">Before you start</h2> <h2 class="govuk-heading-m">Before you start</h2>
<p class="govuk-body">Use your account details to sign in.</p> <p class="govuk-body">Use your account details to sign in.</p>
<p class="govuk-body">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") %>.</p> <p class="govuk-body">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) %>.</p>
<p class="govuk-body">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.</p> <p class="govuk-body">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.</p>
</div> </div>

Loading…
Cancel
Save