Module: EffortLogsHelper
- Defined in:
- app/helpers/effort_logs_helper.rb
Instance Method Summary collapse
- #show_monday_for(cwyear, week_number) ⇒ Object
- #show_week_of_year_text ⇒ Object
- #td_class_is_today(day_of_week) ⇒ Object
Instance Method Details
#show_monday_for(cwyear, week_number) ⇒ Object
7 8 9 |
# File 'app/helpers/effort_logs_helper.rb', line 7 def show_monday_for(cwyear, week_number) Date.commercial(cwyear, week_number, 1).strftime "%b %d, %Y" # Jul 01, 2008 end |
#show_week_of_year_text ⇒ Object
3 4 5 |
# File 'app/helpers/effort_logs_helper.rb', line 3 def show_week_of_year_text "Week " + @effort_log.week_number + " of " + @effort_log.year end |
#td_class_is_today(day_of_week) ⇒ Object
11 12 13 |
# File 'app/helpers/effort_logs_helper.rb', line 11 def td_class_is_today(day_of_week) @today_column == day_of_week ? "<td class='today'>".html_safe : "<td>".html_safe end |