.sejour
  =image_tag sejour.image_file.file.square.url if sejour.image_file
  %h3=link_to sejour.title, public_sejour_path(sejour)
  .desc
    =simple_format sejour.content
  .dates
    -if params[:saison_id] and params[:saison_id].to_i == 1
      -@sejours = sejour.sejour_dates.where('extract(month from start_at) IN (?)', [4,5,6])
    
    -elsif params[:saison_id] and params[:saison_id].to_i == 2
      -@sejours = sejour.sejour_dates.where('extract(month from start_at) IN (?)', [7,8,9])
    -elsif params[:saison_id] and params[:saison_id].to_i == 3
      -@sejours = sejour.sejour_dates.where('extract(month from start_at) IN (?)', [10,11])
    -elsif params[:saison_id] and params[:saison_id].to_i == 4
      -@sejours = sejour.sejour_dates.where('extract(month from start_at) IN (?)', [12,1,2,3])
    
    -else
      -@sejours = sejour.sejour_dates
    
    -@sejours.order(:start_at).each do |sejour_date|
      %p
        du
        =l sejour_date.start_at, :format => :long if sejour_date.start_at
        au 
        =l sejour_date.end_at, :format => :long if sejour_date.end_at
        ="-"
        =number_to_currency sejour_date.price if sejour_date.price 
  
  .clear