 remote = require('app/remote').getInstance()
 s3upload = require 'app/util/s3upload'
 whoami = require 'app/util/whoami'
+isKoding = require 'app/util/iskoding'
 showError = require 'app/util/showError'
 JView = require 'app/jview'
 AvatarStaticView = require 'app/commonviews/avatarviews/avatarstaticview'

    {email} = @userInfo
    {nickname, firstName, lastName} = @account.profile

    @emailForm.inputs.email.setDefaultValue Encoder.htmlDecode email
    @emailForm.inputs.username.setDefaultValue Encoder.htmlDecode nickname
    @emailForm.inputs.firstName.setDefaultValue Encoder.htmlDecode firstName
    @emailForm.inputs.lastName.setDefaultValue Encoder.htmlDecode lastName
    @emailForm.inputs.shareLocation.setDefaultValue whoami().shareLocation

    {focus} = kd.utils.parseQuery()
    @emailForm.inputs[focus]?.setFocus()  if focus

    notify = (message)->
      new KDNotificationView

        {{> @useGravatarBtn}}
      </div>
    </div>
    {{> @userProfileForm}}
    """


