Sha256: 830e1c042b0de18c5101df8020aa3c60e65ee215daafcc1b1a72eff36edda9c3
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 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 - overall_overtime = 0 - WorkDay.for_month(@employee).each do |day| - overall_overtime += day.overtime - activities = @employee.activities.where(:date => day.date) - tr_params = {:class => work_day_classes(day)} - tr_params.merge!(:rel => 'popover', 'data-content' => h(render 'timesheets/activities_popover', :activities => activities), 'data-original-title' => 'Aktivitäten', 'data-html' => 'true') unless 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" % overall_overtime
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bookyt_projects-0.13.0 | app/views/timesheets/_show.html.haml |