     if state
       privateMessage.formView.setClass 'has-sub'
       privateMessage.subSettings.show()
-
     else
       privateMessage.formView.unsetClass 'has-sub'
       privateMessage.subSettings.hide()

  putContents: (frequency) ->

    @fields = fields =
      global           :
        title          : 'Send me email notifications'
      daily            :
        title          : 'Send me a daily digest of activity on my posts'
      privateMessage   :
        title          : 'When someone sends me a private message'
      comment          :
        title          : 'When my post gets a new comment'
      likeActivities   :
        title          : 'When someone likes my content'
      mention          :
        title          : 'When someone mentions me'
      marketing        :
        title          : 'When Koding has member updates <small>Like VM security updates, privacy updates, inactive account notices, offers and campaigns.</small>'
      pmNotificationDelay:
        title          : ''

    view = this



  handleGlobalState: (state) ->

    @handleDependency ['daily', 'privateMessage', 'comment', 'likeActivities', 'mention', 'marketing'], state


  handlePrivateMessageState: (state) ->
