Sha256: 8dc295b69f7762e8b0b205c881e7b753ac5d9dc2e2e280419ccc2999f4f95218

Contents?: true

Size: 1.11 KB

Versions: 5

Compression:

Stored size: 1.11 KB

Contents

.person.panel.panel-default
  .panel-heading
    .panel-title
      = icon :users if person.corporation?
      = icon :user  if person.individual?
      = " "
      span.name
        = link_to person.to_s, dorsale.customer_vault_person_path(person)

      - if defined?(link)
        span.separator = " / "
        span.title     = link.title

        .actions.pull-right
          - if policy(link.person).update?
            = update_button dorsale.edit_customer_vault_person_link_path(link.person, link)

          - if policy(link.person).delete?
            = delete_button dorsale.customer_vault_person_link_path(link.person, link)

      - else
        .actions.pull-right
          - if policy(person).read?
            = read_button dorsale.customer_vault_person_path(person)

          - if policy(person).update?
            = update_button dorsale.edit_customer_vault_person_path(person)

  .panel-body
    .avatar-container
      = avatar_img(person)

    .infos-container
      = info person, :phone
      = info person, :mobile
      = info person, :email, helper: :email_link
      = info person, :tags, tags(person)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dorsale-3.3.0 app/views/dorsale/customer_vault/people/_list_item.html.slim
dorsale-3.2.0 app/views/dorsale/customer_vault/people/_list_item.html.slim
dorsale-3.1.7 app/views/dorsale/customer_vault/people/_list_item.html.slim
dorsale-3.1.6 app/views/dorsale/customer_vault/people/_list_item.html.slim
dorsale-3.1.5 app/views/dorsale/customer_vault/people/_list_item.html.slim