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_colour
    return status_tags[:withdrawn][:colour] if object.ucas_status == "not_running"
    status_tags[object.content_status.to_sym][:colour]
  end
def status_colour return status_tags [ :withdrawn ] [ :colour ] if object . ucas_status == "not_running" status_tags [ object . content_status . to_sym ] [ :colour ] end
TODO: Move this to a view component
TODO : Move this to a view component