 FeatureNavigationView = require './feature-navigation.coffee'
 BelowTheFoldView      = require './below-the-fold.coffee'
 
-artistArtworksTemplate = -> require('../templates/_artist-artworks.jade') arguments...
+artistArtworksTemplate  = -> require('../templates/_artist-artworks.jade') arguments...
+detailTemplate          = -> require('../templates/_detail.jade') arguments...
 
 { Following, FollowButton } = require '../../../components/follow_button/index.coffee'
 

    @setupBelowTheFold()
    @setupMainSaveButton()

    # Handle all related content
    @setupRelatedLayers()
    @on 'related:features', (feature) ->

      html(artistArtworksTemplate artworks: @artist.artworks)
    @setupArtistArtworkSaveButtons @artist.artworks

  # Re-render incase the cache is inaccurate
  reRenderDetail: ->
    @artwork.fetch
      success: =>
        @$('.artwork-detail').html detailTemplate(artwork: @artwork, artist: @artist)

  setupArtistArtworkSaveButtons: (artworks) ->
    return unless artworks.length > 0
    _.defer =>
