-app = FactlinkApp
-
 class window.ProfileController extends Backbone.Factlink.BaseController
 
   routes: ['showProfile', 'showNotificationSettings', 'showFact']


  showSidebarProfile: (user) ->
    sidebarProfileView = new SidebarProfileView(model: user)
    app.leftTopRegion.show(sidebarProfileView)

  makePermalinkEvent: ->
    FactlinkApp.factlinkBaseUrl = null

      main_region.show(new NotificationSettingsView model: user)

  showPage: (username, options) ->
    FactlinkApp.leftBottomRegion.close()
    @main = new TabbedMainRegionLayout();
    FactlinkApp.mainRegion.show(@main)
    @getUser username,
      onInit: (user) =>
        FactlinkApp.Sidebar.showForChannelsOrTopicsAndActivateCorrectItem(window.Channels, null, user)
