app/helpers/schedules_helper.rb
# parameters of popup window to show schedule
parameters of popup window to show schedule
parameters of popup window to show schedule
def week_html(display_time, day_time, index, tags = {}, &block)
    html = ""
    7.times do
      day_schedule = @schedules && @schedules[index] || ""
      day_html     = yield(day_time, day_schedule, tags[:day_cell_tags])
      day_class    = current_date?(day_time) ? tags[:current_date_class] : 
                       other_month_date?(display_time, day_time) ? tags[:other_month_date_class] : "cal-day-default"
      day_tag      = tags[:day_tag] + ' ' + "class = #{day_class}"
      html        += i_content_tag(day_tag, day_html)
      day_time     = day_time.next
      index       += 1
    end
    return i_content_tag( tags[:week_tag], html), day_time, index
  end
def week_html ( display_time , day_time , index , tags = { } , & block ) html = "" 7 . times do day_schedule = @schedules && @schedules [ index ] || "" day_html = yield ( day_time , day_schedule , tags [ :day_cell_tags ] ) day_class = current_date? ( day_time ) ? tags [ :current_date_class ] : other_month_date? ( display_time , day_time ) ? tags [ :other_month_date_class ] : "cal-day-default" day_tag = tags [ :day_tag ] + ' ' + "class = #{day_class}" html += i_content_tag ( day_tag , day_html ) day_time = day_time . next index += 1 end return i_content_tag ( tags [ :week_tag ] , html ) , day_time , index end
parameters of popup window to show schedule
parameters of popup window to show schedule
display_time
<not_specific>
day_time
<not_specific>
index
<not_specific>
tags
<not_specific>
block
<not_specific>