-# Extend Backbone View 
+# Extend Backbone View
 Backbone.View.prototype.destroy = ->
     return
 

        log_router '/databases/' + id
        clear_modals()
        database = databases.get(id)
        
        @current_view.destroy()
        if database? then @current_view = new DatabaseView.Container model: database
        else @current_view = new DatabaseView.NotFound id


    render_sidebar: -> @$sidebar.html @sidebar.render().el
    render_navbar: -> $('#navbar-container').html @navbar.render().el
    render_walkthrough_popup: ->
        # TODO: add this back when we're ready to do it
        # $('.walkthrough-popup').html (new Walkthrough).render().el

    index_namespaces: (data) ->
        log_router '/index_namespaces'
