You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: availabilities_helper.rb
    path of file: ./repos/ReadyResponder/app/helpers
    
    the code of the file until where you have to start completion: module AvailabilitiesHelper
  def availability_status_label(a, event = nil)
    if a.class.to_s=='Assignment'
      conten
    
  def availability_status_class(a, event = nil)
    return 'class="info"' if a.class.to_s=='Assignment'
    case a.status
    when 'Available'
      return a.partially_available?(event) ? 'class="warning"' : 'class="success"'
    when 'Unavailable'
      return 'class="danger"'
    when 'Cancelled'
      return 'label label-default'
    else
      return nil
    end