%table.table.table-striped.activities.collection
  %thead
    %tr
      - [:date, :person, :project, :duration].each do |attr|
        %th= t_attr(attr, Activity)
  %tbody
    = render collection

= render 'activities/sidebar'

%table.table.table-striped.activities.collection
  %thead
    %tr
      - [:date, :person, :project, :duration].each do |attr|
        %th= t_attr(attr, Activity)
  %tbody
    = render collection
  %tfoot
    %tr
      %th= "#{collection.minimum(:date)} - #{collection.maximum(:date)}"
      %th
      %th
      %th= t('bookyt.projects.hours', :duration => "%0.2f" % collection.sum(:duration))

= render 'activities/sidebar'

Add sum to list of activities.
Add sum to list of activities.
