Sha256: dda268df73d3ccfdcf435ca1ab739ce1ea3b2bd618c44de60ecb4de84d90b0ff

Contents?: true

Size: 711 Bytes

Versions: 3

Compression:

Stored size: 711 Bytes

Contents

%table{:class => "#{collection.first.class.to_s.downcase} detail"}
  - resource.attributes.each_pair do |attr, value|
    - next if ['id', 'created_at', 'updated_at', 'client_id', 'project_state_id'].include?(attr)
    %tr
      %td= attr.titleize
      %td= value
  %tr
    %td= t_model(ProjectState)
    %td= @project.project_state
  %tr
    %td= t_model(Company)
    %td= @project.client
    

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

= link_to t_title(:new, Task), new_project_task_path(resource)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bookyt_projects-0.3.2 app/views/projects/_resource_detail.html.haml
bookyt_projects-0.3.1 app/views/projects/_resource_detail.html.haml
bookyt_projects-0.3.0 app/views/projects/_resource_detail.html.haml