extends ../../../components/main_layout/templates/index

append locals
  - assetPackage = 'artists_artworks'

block head
  include ../components/meta/index

block body
  - isAuction = artwork.context && artwork.context.__typename == 'ArtworkContextAuction'
  
  if isAuction
    .artwork-page.main-layout-container
      section.artwork
        .artwork__main
          .artwork__main__overview
            include ../components/banner/index
            include ../components/images/index
            include ../components/actions/index
            include ../components/additional_info/index
            include ../components/artists/index
            
          include ./metadata
            
        .artwork__main__overview__fold( class='js-artwork-fold' )
          include ../client/fold
        
        .artwork__footer( class='js-artwork-footer' )
          include ../client/footer
  
  else 
    .artwork-page.main-layout-container
      section.artwork
        .artwork__main
          .artwork__main__overview
            include ../components/banner/index
            include ../components/images/index
            include ../components/actions/index
            include ../components/additional_info/index
            include ../components/artists/index

            .artwork__main__overview__fold( class='js-artwork-fold' )
              include ../client/fold

          include ./metadata

        .artwork__footer( class='js-artwork-footer' )
          include ../client/footer

extends ../../../components/main_layout/templates/index

append locals
  - assetPackage = 'artists_artworks'

block head
  include ../components/meta/index

block body
  - isAuction = artwork.context && artwork.context.__typename == 'ArtworkContextAuction'
  - isEcommerceSale = artwork.sale && artwork.sale.is_auction == false

  if isAuction
    .artwork-page.main-layout-container
      section.artwork
        .artwork__main
          .artwork__main__overview
            include ../components/banner/index
            include ../components/images/index
            include ../components/actions/index
            include ../components/additional_info/index
            include ../components/artists/index

          include ./metadata

        .artwork__main__overview__fold( class='js-artwork-fold' )
          include ../client/fold

        .artwork__footer( class='js-artwork-footer' )
          include ../client/footer

  else
    .artwork-page.main-layout-container
      section.artwork
        .artwork__main
          .artwork__main__overview
            unless isEcommerceSale
              include ../components/banner/index

            include ../components/images/index
            include ../components/actions/index
            include ../components/additional_info/index
            include ../components/artists/index

            .artwork__main__overview__fold( class='js-artwork-fold' )
              include ../client/fold

          include ./metadata

        .artwork__footer( class='js-artwork-footer' )
          include ../client/footer

Hide top banner for ecommerce sales
Hide top banner for ecommerce sales
