 
       headerView.setLegacyLink("content/#{id}/#{version}") if id and version
 
-    onRender: () ->
-      @regions.media.append(new MediaEndorsedView({model: @model}))
-      @regions.media.append(new LatestView({model: @model}))
-      @regions.media.append(new MediaTitleView({model: @model}))
-      @regions.media.append(new MediaTabsView({model: @model}))
-      @regions.media.append(new MediaNavView({model: @model}))
-      @regions.media.append(new MediaHeaderView({model: @model}))
-      @regions.media.append(new MediaBodyView({model: @model}))
-      @regions.media.append(new MediaFooterView({model: @model}))
-      @regions.media.append(new MediaNavView({model: @model, hideProgress: true}))
+    displayError: () ->
+      error = arguments[1] # @model.get('error')
+      router.appView.render('error', {code: error, message: 'Media Not Found'}) if error

define (require) ->
  Content = require('cs!models/content')
  BaseView = require('cs!helpers/backbone/views/base')
  MediaEndorsedView = require('cs!./endorsed/endorsed')

  return class MediaView extends BaseView
    template: template

    regions:
      media: '.media'

    initialize: (options) ->
      super()

