Browse Source

Add rubocop ignore

pull/2613/head
Rachael Booth 2 years ago
parent
commit
7b2f6c9e0c
  1. 4
      app/helpers/notifications_helper.rb

4
app/helpers/notifications_helper.rb

@ -30,13 +30,13 @@ class NotificationTitleRenderer < Redcarpet::Render::HTML
def initialize(options = {}) def initialize(options = {})
link_class = "govuk-link" link_class = "govuk-link"
link_class += " govuk-link--inverse" if options[:invert_link_colour] link_class += " govuk-link--inverse" if options[:invert_link_colour]
@bold = options[:bold_all_text] @bold = options[:bold_all_text] # rubocop:disable Rails/HelperInstanceVariable
base_options = { escape_html: true, safe_links_only: true, link_attributes: { class: link_class } } base_options = { escape_html: true, safe_links_only: true, link_attributes: { class: link_class } }
super base_options super base_options
end end
def paragraph(text) def paragraph(text)
return %(<p class="govuk-!-font-weight-bold">#{text}</p>) if @bold return %(<p class="govuk-!-font-weight-bold">#{text}</p>) if @bold # rubocop:disable Rails/HelperInstanceVariable
%(<p>#{text}</p>) %(<p>#{text}</p>)
end end

Loading…
Cancel
Save