module Twitch
  module ReservationHelper
    def reservation_type_span_label(type)
      case type
      when "JTV Reservation"
        haml_tag :span, "JTV Reservation", class: "label label-success"
      when "Reserved Record"
        haml_tag :span, "Reserved Record", class: "label label-warning"
      when "Partner Block Record"
        haml_tag :spam, "Partner Block Record", class: "label label-info"
      when "User Block Record"
        haml_tag :spam, "User Block Record", class: "label label-primary"
      else
        haml_tag :span, "Unknown", class: "label label-danger"
      end
    end
  end
end
