 AvatarView = require '../commonviews/avatarviews/avatarview'
 JView = require '../jview'
 PopupNotifications = require '../notifications/popupnotifications'
+JCustomHTMLView = require 'app/jcustomhtmlview'
 
 
 module.exports = class AvatarArea extends KDCustomHTMLView


  pistachio: ->

    {profile} = @getData()

    """
    {{> @avatar}}
    <a class='profile' href='/#{profile.nickname}' title='Your profile'>#{profile.firstName}</a>
    {{> @accountIcon}}
    {{> @notificationsIcon}}
    """

      size       :
        width    : 25
        height   : 25
    , account

    @profileName = new JCustomHTMLView
      tagName    : 'a'
      cssClass   : 'profile'
      attributes :
        href     : "/#{profile.nickname}"
        title    : 'Your profile'
      pistachio  : '{{ #(profile.firstName) }}'
    , account

    @accountPopup = new AccountPopup
