Module: TacticalDashboardsHelper

Defined in:
app/helpers/tactical_dashboards_helper.rb

Instance Method Summary collapse

Instance Method Details

#activities_format_day(date, activities_on_day = []) ⇒ Object



3
4
5
6
7
# File 'app/helpers/tactical_dashboards_helper.rb', line 3

def activities_format_day(date, activities_on_day=[])
  (:span, date.strftime("%a"), :class => 'day_name') +
  (:span, date.day, :class => 'day_number') +
  (:span, date.strftime("%a"), :class => (activities_on_day.present? ? 'with_activities' : '')) 
end