{"action":"created","comment":{"url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/pulls/comments/53939151","id":53939151,"diff_hunk":"@@ -0,0 +1,187 @@\n+/*\n+ * Copyright (C) eZ Systems AS. All rights reserved.\n+ * For full copyright and license information view LICENSE file distributed with this source code.\n+ */\n+YUI.add('ez-usermenuview', function (Y) {\n+    'use strict';\n+    /**\n+     * Provides the User Menu View class\n+     *\n+     * @module ez-usermenuview\n+     */\n+    Y.namespace('eZ');\n+\n+    var CLASS_HIDDEN = 'is-user-menu-hidden',\n+        CLASS_USER_PROFILE = 'ez-user-profile',\n+        SELECTOR_USER_PROFILE = '.' + CLASS_USER_PROFILE;\n+\n+    /**\n+     * The User Menu view\n+     *\n+     * @namespace eZ\n+     * @class UserMenuView\n+     * @constructor\n+     * @extends Y.eZ.View\n+     */\n+    Y.eZ.UserMenuView = Y.Base.create('userMenuView', Y.eZ.View, [], {\n+        initializer: function () {\n+            this.containerTemplate = '<ul class=\"ez-view-usermenuview is-user-menu-hidden\"/>';","path":"Resources/public/js/views/ez-usermenuview.js","position":28,"original_position":28,"commit_id":"943a2680a17a90a38de615522f7332b942554b44","original_commit_id":"943a2680a17a90a38de615522f7332b942554b44","user":{"login":"dpobel","id":305563,"avatar_url":"https://avatars.githubusercontent.com/u/305563?v=3","gravatar_id":"","url":"https://api.github.com/users/dpobel","html_url":"https://github.com/dpobel","followers_url":"https://api.github.com/users/dpobel/followers","following_url":"https://api.github.com/users/dpobel/following{/other_user}","gists_url":"https://api.github.com/users/dpobel/gists{/gist_id}","starred_url":"https://api.github.com/users/dpobel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpobel/subscriptions","organizations_url":"https://api.github.com/users/dpobel/orgs","repos_url":"https://api.github.com/users/dpobel/repos","events_url":"https://api.github.com/users/dpobel/events{/privacy}","received_events_url":"https://api.github.com/users/dpobel/received_events","type":"User","site_admin":false},"body":"nitpick: you can use CLASS_HIDDEN defined a few lines above","created_at":"2016-02-24T13:43:15Z","updated_at":"2016-02-24T13:43:15Z","html_url":"https://github.com/ezsystems/PlatformUIBundle/pull/513#discussion_r53939151","pull_request_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/pulls/513","_links":{"self":{"href":"https://api.github.com/repos/ezsystems/PlatformUIBundle/pulls/comments/53939151"},"html":{"href":"https://github.com/ezsystems/PlatformUIBundle/pull/513#discussion_r53939151"},"pull_request":{"href":"https://api.github.com/repos/ezsystems/PlatformUIBundle/pulls/513"}}},"pull_request":{"url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/pulls/513","id":59615053,"html_url":"https://github.com/ezsystems/PlatformUIBundle/pull/513","diff_url":"https://github.com/ezsystems/PlatformUIBundle/pull/513.diff","patch_url":"https://github.com/ezsystems/PlatformUIBundle/pull/513.patch","issue_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/issues/513","number":513,"state":"open","locked":false,"title":"EZP-25446: Add the user profile in the navigation hub","user":{"login":"dew326","id":12594013,"avatar_url":"https://avatars.githubusercontent.com/u/12594013?v=3","gravatar_id":"","url":"https://api.github.com/users/dew326","html_url":"https://github.com/dew326","followers_url":"https://api.github.com/users/dew326/followers","following_url":"https://api.github.com/users/dew326/following{/other_user}","gists_url":"https://api.github.com/users/dew326/gists{/gist_id}","starred_url":"https://api.github.com/users/dew326/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dew326/subscriptions","organizations_url":"https://api.github.com/users/dew326/orgs","repos_url":"https://api.github.com/users/dew326/repos","events_url":"https://api.github.com/users/dew326/events{/privacy}","received_events_url":"https://api.github.com/users/dew326/received_events","type":"User","site_admin":false},"body":"Jira: https://jira.ez.no/browse/EZP-25446\r\n\r\n## Description\r\nThe user profile in navigation hub should contain the user name, role, image and the user menu. Menu should provide ability to add new items manually or using view plugins. \r\n\r\n## TODO\r\n- [x] JS Unit Tests","created_at":"2016-02-17T09:16:12Z","updated_at":"2016-02-24T13:43:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"97710246758cc1743c299b4a32ea38254cb22438","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/pulls/513/commits","review_comments_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/pulls/513/comments","review_comment_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/issues/513/comments","statuses_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/statuses/943a2680a17a90a38de615522f7332b942554b44","head":{"label":"dew326:add-user-menu","ref":"add-user-menu","sha":"943a2680a17a90a38de615522f7332b942554b44","user":{"login":"dew326","id":12594013,"avatar_url":"https://avatars.githubusercontent.com/u/12594013?v=3","gravatar_id":"","url":"https://api.github.com/users/dew326","html_url":"https://github.com/dew326","followers_url":"https://api.github.com/users/dew326/followers","following_url":"https://api.github.com/users/dew326/following{/other_user}","gists_url":"https://api.github.com/users/dew326/gists{/gist_id}","starred_url":"https://api.github.com/users/dew326/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dew326/subscriptions","organizations_url":"https://api.github.com/users/dew326/orgs","repos_url":"https://api.github.com/users/dew326/repos","events_url":"https://api.github.com/users/dew326/events{/privacy}","received_events_url":"https://api.github.com/users/dew326/received_events","type":"User","site_admin":false},"repo":{"id":50909054,"name":"PlatformUIBundle","full_name":"dew326/PlatformUIBundle","owner":{"login":"dew326","id":12594013,"avatar_url":"https://avatars.githubusercontent.com/u/12594013?v=3","gravatar_id":"","url":"https://api.github.com/users/dew326","html_url":"https://github.com/dew326","followers_url":"https://api.github.com/users/dew326/followers","following_url":"https://api.github.com/users/dew326/following{/other_user}","gists_url":"https://api.github.com/users/dew326/gists{/gist_id}","starred_url":"https://api.github.com/users/dew326/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dew326/subscriptions","organizations_url":"https://api.github.com/users/dew326/orgs","repos_url":"https://api.github.com/users/dew326/repos","events_url":"https://api.github.com/users/dew326/events{/privacy}","received_events_url":"https://api.github.com/users/dew326/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dew326/PlatformUIBundle","description":"Main Bundle to provide editorial/admin UI for eZ Platform","fork":true,"url":"https://api.github.com/repos/dew326/PlatformUIBundle","forks_url":"https://api.github.com/repos/dew326/PlatformUIBundle/forks","keys_url":"https://api.github.com/repos/dew326/PlatformUIBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dew326/PlatformUIBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dew326/PlatformUIBundle/teams","hooks_url":"https://api.github.com/repos/dew326/PlatformUIBundle/hooks","issue_events_url":"https://api.github.com/repos/dew326/PlatformUIBundle/issues/events{/number}","events_url":"https://api.github.com/repos/dew326/PlatformUIBundle/events","assignees_url":"https://api.github.com/repos/dew326/PlatformUIBundle/assignees{/user}","branches_url":"https://api.github.com/repos/dew326/PlatformUIBundle/branches{/branch}","tags_url":"https://api.github.com/repos/dew326/PlatformUIBundle/tags","blobs_url":"https://api.github.com/repos/dew326/PlatformUIBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dew326/PlatformUIBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dew326/PlatformUIBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/dew326/PlatformUIBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dew326/PlatformUIBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/dew326/PlatformUIBundle/languages","stargazers_url":"https://api.github.com/repos/dew326/PlatformUIBundle/stargazers","contributors_url":"https://api.github.com/repos/dew326/PlatformUIBundle/contributors","subscribers_url":"https://api.github.com/repos/dew326/PlatformUIBundle/subscribers","subscription_url":"https://api.github.com/repos/dew326/PlatformUIBundle/subscription","commits_url":"https://api.github.com/repos/dew326/PlatformUIBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/dew326/PlatformUIBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/dew326/PlatformUIBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/dew326/PlatformUIBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/dew326/PlatformUIBundle/contents/{+path}","compare_url":"https://api.github.com/repos/dew326/PlatformUIBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dew326/PlatformUIBundle/merges","archive_url":"https://api.github.com/repos/dew326/PlatformUIBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dew326/PlatformUIBundle/downloads","issues_url":"https://api.github.com/repos/dew326/PlatformUIBundle/issues{/number}","pulls_url":"https://api.github.com/repos/dew326/PlatformUIBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/dew326/PlatformUIBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/dew326/PlatformUIBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dew326/PlatformUIBundle/labels{/name}","releases_url":"https://api.github.com/repos/dew326/PlatformUIBundle/releases{/id}","deployments_url":"https://api.github.com/repos/dew326/PlatformUIBundle/deployments","created_at":"2016-02-02T09:24:19Z","updated_at":"2016-02-02T09:24:21Z","pushed_at":"2016-02-24T09:34:14Z","git_url":"git://github.com/dew326/PlatformUIBundle.git","ssh_url":"git@github.com:dew326/PlatformUIBundle.git","clone_url":"https://github.com/dew326/PlatformUIBundle.git","svn_url":"https://github.com/dew326/PlatformUIBundle","homepage":"http://ezplatform.com/","size":4852,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ezsystems:master","ref":"master","sha":"2f6e7da74db4472cef9ce44b5e7845c393f150aa","user":{"login":"ezsystems","id":295311,"avatar_url":"https://avatars.githubusercontent.com/u/295311?v=3","gravatar_id":"","url":"https://api.github.com/users/ezsystems","html_url":"https://github.com/ezsystems","followers_url":"https://api.github.com/users/ezsystems/followers","following_url":"https://api.github.com/users/ezsystems/following{/other_user}","gists_url":"https://api.github.com/users/ezsystems/gists{/gist_id}","starred_url":"https://api.github.com/users/ezsystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezsystems/subscriptions","organizations_url":"https://api.github.com/users/ezsystems/orgs","repos_url":"https://api.github.com/users/ezsystems/repos","events_url":"https://api.github.com/users/ezsystems/events{/privacy}","received_events_url":"https://api.github.com/users/ezsystems/received_events","type":"Organization","site_admin":false},"repo":{"id":11221607,"name":"PlatformUIBundle","full_name":"ezsystems/PlatformUIBundle","owner":{"login":"ezsystems","id":295311,"avatar_url":"https://avatars.githubusercontent.com/u/295311?v=3","gravatar_id":"","url":"https://api.github.com/users/ezsystems","html_url":"https://github.com/ezsystems","followers_url":"https://api.github.com/users/ezsystems/followers","following_url":"https://api.github.com/users/ezsystems/following{/other_user}","gists_url":"https://api.github.com/users/ezsystems/gists{/gist_id}","starred_url":"https://api.github.com/users/ezsystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezsystems/subscriptions","organizations_url":"https://api.github.com/users/ezsystems/orgs","repos_url":"https://api.github.com/users/ezsystems/repos","events_url":"https://api.github.com/users/ezsystems/events{/privacy}","received_events_url":"https://api.github.com/users/ezsystems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ezsystems/PlatformUIBundle","description":"Main Bundle to provide editorial/admin UI for eZ Platform","fork":false,"url":"https://api.github.com/repos/ezsystems/PlatformUIBundle","forks_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/forks","keys_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/teams","hooks_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/hooks","issue_events_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/issues/events{/number}","events_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/events","assignees_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/assignees{/user}","branches_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/branches{/branch}","tags_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/tags","blobs_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/languages","stargazers_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/stargazers","contributors_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/contributors","subscribers_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/subscribers","subscription_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/subscription","commits_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/contents/{+path}","compare_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/merges","archive_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/downloads","issues_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/issues{/number}","pulls_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/labels{/name}","releases_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/releases{/id}","deployments_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/deployments","created_at":"2013-07-06T17:21:40Z","updated_at":"2016-01-11T14:10:41Z","pushed_at":"2016-02-24T10:02:16Z","git_url":"git://github.com/ezsystems/PlatformUIBundle.git","ssh_url":"git@github.com:ezsystems/PlatformUIBundle.git","clone_url":"https://github.com/ezsystems/PlatformUIBundle.git","svn_url":"https://github.com/ezsystems/PlatformUIBundle","homepage":"http://ezplatform.com/","size":5903,"stargazers_count":27,"watchers_count":27,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":29,"mirror_url":null,"open_issues_count":14,"forks":29,"open_issues":14,"watchers":27,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ezsystems/PlatformUIBundle/pulls/513"},"html":{"href":"https://github.com/ezsystems/PlatformUIBundle/pull/513"},"issue":{"href":"https://api.github.com/repos/ezsystems/PlatformUIBundle/issues/513"},"comments":{"href":"https://api.github.com/repos/ezsystems/PlatformUIBundle/issues/513/comments"},"review_comments":{"href":"https://api.github.com/repos/ezsystems/PlatformUIBundle/pulls/513/comments"},"review_comment":{"href":"https://api.github.com/repos/ezsystems/PlatformUIBundle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ezsystems/PlatformUIBundle/pulls/513/commits"},"statuses":{"href":"https://api.github.com/repos/ezsystems/PlatformUIBundle/statuses/943a2680a17a90a38de615522f7332b942554b44"}}}}