- var partner = artwork.partner
- var contacts = helpers.partner_stub.contacts(partner.locations)
- var location = helpers.partner_stub.location(partner.locations)
- var artistIds = helpers.partner_stub.artistIds(artwork.artists)

unless artwork.is_in_auction
  .artwork-partner-stub( class='js-artwork-partner-stub' )
    if artwork.collecting_institution
      .artwork-partner-stub__name
        = artwork.collecting_institution

    else
      if !artwork.is_inquireable
        hr

      //- Default view
      h3.artwork-partner-stub__label
        if artwork.is_for_sale
          | Offered by
        else
          = partner.type

      a.artwork-partner-stub__name( href= (partner.is_linkable ? partner.href : undefined) )
        = partner.name
        if location
          = ', '
          span= location

      if artwork.is_inquireable && contacts && contacts.length
        .artwork-partner-stub__phone
          a(
            class='js-artwork-partner-stub-inquire-via-phone analytics-artwork-show-phone-number garamond-s-body'
            data-partner_id= partner._id
            data-artwork_id= artwork._id
            data-artist_ids= artistIds
          )
            | Inquire via phone

- var partner = artwork.partner
- var contacts = helpers.partner_stub.contacts(partner.locations)
- var location = helpers.partner_stub.location(partner.locations)
- var artistIds = helpers.partner_stub.artistIds(artwork.artists)

unless artwork.is_in_auction
  .artwork-partner-stub( class='js-artwork-partner-stub' )
    if artwork.collecting_institution
      .artwork-partner-stub__name
        = artwork.collecting_institution

    else
      if !artwork.is_inquireable
        hr

      //- Default view
      h3.artwork-partner-stub__label
        if artwork.is_for_sale
          | Offered by
        else
          = partner.type

      a.artwork-partner-stub__name( href= (partner.is_linkable ? partner.href : undefined) )
        = partner.name
        if location
          = ', '
          span= location

      if artwork.is_inquireable && contacts && contacts.length
        .artwork-partner-stub__phone
          a(
            class='js-artwork-partner-stub-inquire-via-phone analytics-artwork-show-phone-number garamond-s-body'
            data-partner_id= partner._id
            data-artwork_id= artwork._id
            data-artist_ids= artistIds
            data-user_id=(sd.CURRENT_USER && sd.CURRENT_USER.id )
            data-context='show phone number'
          )
            | Inquire via phone

Send context and user_id so we can track drop offrate for signup
Send context and user_id so we can track drop offrate for signup
