Sha256: bcd1276cfdd3c3dd85319b58de9d664648dc06a8af416f41a78e44df848470fd

Contents?: true

Size: 915 Bytes

Versions: 2

Compression:

Stored size: 915 Bytes

Contents

.person-context: .context
  h3 = Flyboy::Task.model_name.human.pluralize

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

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

  = create_button flyboy.new_task_path(taskable_guid: person.guid), action: :new_task

  hr

  h3 = CustomerVault::Link.model_name.human.pluralize

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

  - if person.is_a?(CustomerVault::Individual)
    = create_button customer_vault.new_individual_link_path(person), action: :new_link

  - if person.is_a?(CustomerVault::Corporation)
    = create_button customer_vault.new_corporation_link_path(person), action: :new_link

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
customer_vault-1.3.2 app/views/customer_vault/people/_data_context.html.slim
customer_vault-1.3.1 app/views/customer_vault/people/_data_context.html.slim