Sha256: cd29fd19297510bf460673c0767afb91d4adffb25cc83aa4301a646b9f3c4336
Contents?: true
Size: 1.07 KB
Versions: 4
Compression:
Stored size: 1.07 KB
Contents
%table.condensed-table.span8 %tr %th= t_attr :date, Activity %th.number= t_attr :working_hours, Activity %th.number= t_attr :overtime, Activity %th.number= t_attr :overall_overtime, Activity - WorkDay.create_or_update_upto(@employee, Date.today.end_of_month) - range = Date.today.beginning_of_month..Date.today.end_of_month - @employee.work_days.where(:date => range).each do |day| - tr_params = {:class => work_day_classes(day)} - tr_params.merge!(:rel => 'popover', 'data-content' => h(render 'timesheets/activities_popover', :activities => day.activities), 'data-original-title' => 'Aktivitäten', 'data-html' => 'true') unless day.activities.empty? %tr{tr_params} %td= link_to l(day.date, :format => '%a, %d.%m.%Y'), person_activities_path(@employee, :by_date => day.date.to_s(:db)), 'data-href-container' => 'tr' %td.number %span.strong= "%0.2f" % day.hours_worked = "(%0.2f)" % day.hours_due %td.number.overtime.strong= "%0.2f" % day.overtime %td.number.overall-overtime.strong= "%0.2f" % day.overall_overtime
Version data entries
4 entries across 4 versions & 1 rubygems