Sha256: 0f72c5f79a126ccf372774389c8761c31f954a61e436da439ac0ec5b0a7aa9fe

Contents?: true

Size: 971 Bytes

Versions: 24

Compression:

Stored size: 971 Bytes

Contents

.person-context: .context
  h3 = ::Dorsale::Flyboy::Task.t.pluralize

  ul
    - person.tasks.where(done: false).map do |task|
      li
        a href=dorsale.flyboy_task_path(task)
          = task.name

        - if can?(:complete, task)
          span.pull-right
            = complete_button dorsale.complete_flyboy_task_path(task)

  = create_button dorsale.new_flyboy_task_path(taskable_guid: person.guid), action: :new_task

  hr

  h3 = ::Dorsale::CustomerVault::Link.t.pluralize

  ul
    - person.links.map do |link|
      li
        a href=dorsale.polymorphic_path(link[:person])
          = link[:person].name
        = " / "
        = link[:title]

  - if person.is_a?(::Dorsale::CustomerVault::Individual)
    = create_button dorsale.new_customer_vault_individual_link_path(person), action: :new_link

  - if person.is_a?(::Dorsale::CustomerVault::Corporation)
    = create_button dorsale.new_customer_vault_corporation_link_path(person), action: :new_link

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
dorsale-3.0.3 app/views/dorsale/customer_vault/people/_data_context.html.slim
dorsale-3.0.2 app/views/dorsale/customer_vault/people/_data_context.html.slim
dorsale-3.0.1 app/views/dorsale/customer_vault/people/_data_context.html.slim
dorsale-3.0.0 app/views/dorsale/customer_vault/people/_data_context.html.slim
dorsale-2.7.3 app/views/dorsale/customer_vault/people/_data_context.html.slim
dorsale-2.7.2 app/views/dorsale/customer_vault/people/_data_context.html.slim
dorsale-2.7.1 app/views/dorsale/customer_vault/people/_data_context.html.slim
dorsale-2.7.0 app/views/dorsale/customer_vault/people/_data_context.html.slim
dorsale-2.6.8 app/views/dorsale/customer_vault/people/_data_context.html.slim
dorsale-2.6.7 app/views/dorsale/customer_vault/people/_data_context.html.slim
dorsale-2.6.6 app/views/dorsale/customer_vault/people/_data_context.html.slim
dorsale-2.6.5 app/views/dorsale/customer_vault/people/_data_context.html.slim
dorsale-2.6.4 app/views/dorsale/customer_vault/people/_data_context.html.slim
dorsale-2.6.3 app/views/dorsale/customer_vault/people/_data_context.html.slim
dorsale-2.6.2 app/views/dorsale/customer_vault/people/_data_context.html.slim
dorsale-2.6.1 app/views/dorsale/customer_vault/people/_data_context.html.slim
dorsale-2.6.0 app/views/dorsale/customer_vault/people/_data_context.html.slim
dorsale-2.5.0 app/views/dorsale/customer_vault/people/_data_context.html.slim
dorsale-2.4.3 app/views/dorsale/customer_vault/people/_data_context.html.slim
dorsale-2.4.2 app/views/dorsale/customer_vault/people/_data_context.html.slim