app/decorators/application_decorator.rb
# TODO: Move this to a view component
Move this to a view component
Move this to a view component
def status_tag
    tag = h.govuk_tag(text: status_text.html_safe, colour: status_colour)
    tag += unpublished_status_hint if object.has_unpublished_changes?
    tag.html_safe
  end
def status_tag tag = h . govuk_tag ( text : status_text . html_safe , colour : status_colour ) tag += unpublished_status_hint if object . has_unpublished_changes? tag . html_safe end
TODO: Move this to a view component
TODO : Move this to a view component