Sha256: 1532fa0ffeadfd57278eee13b433bbf717b7893ee0f805f6630c8b2f23c39cb1

Contents?: true

Size: 1.21 KB

Versions: 1

Compression:

Stored size: 1.21 KB

Contents

%table.table.collection
  %thead
    %tr
      %th= t_attr :date, Activity
      %th.right= t_attr :working_hours, Activity
      %th.right= t_attr :overtime, Activity
      %th.right= t_attr :overall_overtime, Activity
  %tbody
    - work_days.each do |day|
      - tr_params = {:class => work_day_classes(day)}
      - tr_params.merge!(:rel => 'popover', 'data-placement' => 'bottom', '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
          - if day.activities.empty?
            = link_to l(day.date, :format => '%d.%m.%Y, %a'), new_activity_path(:activity => {:person_id => day.person_id, :date => day.date.to_s(:db)}), 'data-href-container' => 'tr'
          - else
            = link_to l(day.date, :format => '%d.%m.%Y, %a'), person_activities_path(day.person, :by_date => day.date.to_s(:db)), 'data-href-container' => 'tr'
        %td.right
          %span.strong= "%0.2f" % day.hours_worked
          = "(%0.2f)" % day.hours_due
        %td.right.overtime.strong= "%0.2f" % day.overtime
        %td.right.overall-overtime.strong= "%0.2f" % day.overall_overtime

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bookyt_projects-0.21.0 app/views/timesheets/_show.html.haml