define('app/views/user_menu', [
    'text!app/templates/user_menu.html',
    'ember'
    ],
    /**
     *
     * Logout Dialog
     *
     * @returns Class
     */
    function(user_menu_html) {
        return Ember.View.extend({
            tagName: false,
            gravatarURL: 'https://www.gravatar.com/avatar/'+md5(EMAIL)+'?d=blank&s=40',
            email: EMAIL,
            logout: URL_PREFIX.length == 0 ? true : false,
            template: Ember.Handlebars.compile(user_menu_html),
        
            click: function(){
        	   $("#user-dialog").popup('option', 'positionTo', '#me-btn').popup("open", {transition: 'pop'});
            }
        });
    }
);
