Sha256: 9f8b6ec03489662c5276761719beb108aa5783058ea8a7d87de54a45eb762c6f
Contents?: true
Size: 1 KB
Versions: 1
Compression:
Stored size: 1 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 '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.1f" % day.hours_worked = "(%0.1f)" % day.hours_due %td.number.overtime.strong= day.overtime %td.number.overall-overtime.strong= overall_overtime
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bookyt_projects-0.12.0 | app/views/timesheets/_show.html.haml |