 # upcoming, and past) in a grid layout.
 # Used in overview and shows tab of partner galleries, overview tab
 # of nonpartner galleries, and shows tab of institutions.
+# Will hide itself if there is no shows.
 module.exports = class PartnerShowsGridView extends Backbone.View
 
   defaults:

      success: =>
        if @numberOfFeatured - featured.length > 0
          f = partnerShows.featured()
          featured.push f

        exclude = if f then [f] else []


    @initializeShows()
    
  renderShows: (featured=[], current=[], upcoming=[], past=[]) ->
    return @$el.hide() if _.union(featured, current, upcoming, upcoming).length is 0

    @ensurePosterImages featured.concat current, upcoming, past
    @$el.html template
      partner: @partner
