.form-view
  = render 'form'

%table.list
  %tr
    - [:person, :when, :duration].each do |attr|
      %th= t_attr(attr, Activity)
  - @project.activities.each do |task|
    %tr
      %td= task.person
      %td= task.when
      %td= t('bookyt.projects.minutes', :duration => task.duration)

= link_to t_title(:new, Activity), new_project_activity_path(resource)

.form-view
  = render 'form'

.contextual
  = icon_link_to :new, new_project_activity_path(resource)
%h2= t_title :index, Activity

%table.list
  %tr
    - [:person, :when, :duration].each do |attr|
      %th= t_attr(attr, Activity)
  - @project.activities.each do |task|
    %tr
      %td= task.person
      %td= task.when
      %td= t('bookyt.projects.minutes', :duration => task.duration)

Use contextual link conventions for activity sublist in project view.
Use contextual link conventions for activity sublist in project view.
