Sha256: 30d8317fd2d11af3560226531b53eb843e150422a7ba701877b3a829333afa43
Contents?: true
Size: 537 Bytes
Versions: 3
Compression:
Stored size: 537 Bytes
Contents
module Redmineup module CalendarsHelper def calendar_day_css_classes(calendar, day) css = day.month==calendar.month ? +'even' : +'odd' css << " today" if User.current.today == day css << " nwday" if non_working_week_days.include?(day.cwday) css end def non_working_week_days @non_working_week_days ||= begin days = Setting.non_working_week_days if days.is_a?(Array) && days.size < 7 days.map(&:to_i) else [] end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
redmineup-1.0.5 | lib/redmineup/helpers/calendars_helper.rb |
redmineup-1.0.4 | lib/redmineup/helpers/calendars_helper.rb |
redmineup-1.0.3 | lib/redmineup/helpers/calendars_helper.rb |