{"action":"created","comment":{"url":"https://api.github.com/repos/dark-side/language-school/pulls/comments/35409169","id":35409169,"diff_hunk":"@@ -0,0 +1,54 @@\n+var Menus = React.createClass({\n+mixins: [ReactRouter.Navigation],\n+  \n+getInitialState: function() {\n+ return {data: []};\n+ },\n+\n+ componentDidMount: function() {\n+  var menus = new Bb.Collections.Menus();\n+    menus.fetch({\n+     success: function(collection) {\n+      this.setState({data: collection.toJSON()});\n+      }.bind(this),\n+    error: function(collection, response) {\n+    console.error(response);\n+    }\n+  });\n+ },\n+    render: function() {\n+  var items = this.state.data.map(function(menu) {\n+return ( \n+  <tbody>\n+      <tr key={menu.id} >\n+        <td>{menu.id}</td>\n+        <td>{menu.name}</td>\n+        <td>{menu.url}</td>\n+        <td><Link to=\"menu_item\" params={{menuId: menu.id}}className=\"btn btn-danger\">{'Delete menu item'}</Link></td>\n+        <td><Link to=\"edit\" params={{menuId: menu.id}}className=\"btn btn-warning\">{'Edit menu item'}</Link></td>\n+      </tr>\n+  </tbody>     \n+  );\n+});\n+  return (\n+<div className='menu-wrapper'>\n+<h2> List of menu items </h2>\n+<table className='table table-striped'> \n+  <thead>\n+    <tr>\n+      <th>ID</th>\n+        <th>Name</th>\n+        <th>URL</th>\n+      <th colSpan=\"4\"></th>\n+    </tr>\n+  </thead>\n+{items}\n+</table>\n+\n+<Link to='new_menu' className=\"btn btn-success\">\n+      {'Create new menu item'}\n+    </Link>\n+</div>\n+    );\n+  }\n+});","path":"app/assets/javascripts/components/menu/menu_index.js.jsx","position":54,"original_position":54,"commit_id":"058697d2a48084bc0adbafe070b4f5f166c92691","original_commit_id":"058697d2a48084bc0adbafe070b4f5f166c92691","user":{"login":"rtriska","id":7093719,"avatar_url":"https://avatars.githubusercontent.com/u/7093719?v=3","gravatar_id":"","url":"https://api.github.com/users/rtriska","html_url":"https://github.com/rtriska","followers_url":"https://api.github.com/users/rtriska/followers","following_url":"https://api.github.com/users/rtriska/following{/other_user}","gists_url":"https://api.github.com/users/rtriska/gists{/gist_id}","starred_url":"https://api.github.com/users/rtriska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtriska/subscriptions","organizations_url":"https://api.github.com/users/rtriska/orgs","repos_url":"https://api.github.com/users/rtriska/repos","events_url":"https://api.github.com/users/rtriska/events{/privacy}","received_events_url":"https://api.github.com/users/rtriska/received_events","type":"User","site_admin":false},"body":"add new line\r\n","created_at":"2015-07-24T09:44:02Z","updated_at":"2015-07-24T09:44:02Z","html_url":"https://github.com/dark-side/language-school/pull/9#discussion_r35409169","pull_request_url":"https://api.github.com/repos/dark-side/language-school/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/dark-side/language-school/pulls/comments/35409169"},"html":{"href":"https://github.com/dark-side/language-school/pull/9#discussion_r35409169"},"pull_request":{"href":"https://api.github.com/repos/dark-side/language-school/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/dark-side/language-school/pulls/9","id":39696003,"html_url":"https://github.com/dark-side/language-school/pull/9","diff_url":"https://github.com/dark-side/language-school/pull/9.diff","patch_url":"https://github.com/dark-side/language-school/pull/9.patch","issue_url":"https://api.github.com/repos/dark-side/language-school/issues/9","number":9,"state":"open","locked":false,"title":"LVUIDF-23:Main page layout created","user":{"login":"YuliyaPelekh","id":12516569,"avatar_url":"https://avatars.githubusercontent.com/u/12516569?v=3","gravatar_id":"","url":"https://api.github.com/users/YuliyaPelekh","html_url":"https://github.com/YuliyaPelekh","followers_url":"https://api.github.com/users/YuliyaPelekh/followers","following_url":"https://api.github.com/users/YuliyaPelekh/following{/other_user}","gists_url":"https://api.github.com/users/YuliyaPelekh/gists{/gist_id}","starred_url":"https://api.github.com/users/YuliyaPelekh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YuliyaPelekh/subscriptions","organizations_url":"https://api.github.com/users/YuliyaPelekh/orgs","repos_url":"https://api.github.com/users/YuliyaPelekh/repos","events_url":"https://api.github.com/users/YuliyaPelekh/events{/privacy}","received_events_url":"https://api.github.com/users/YuliyaPelekh/received_events","type":"User","site_admin":false},"body":"http://ssu-jira.softserveinc.com/browse/LVUIDF-23\r\nCreated main page layout, design implemented\r\n\r\nhttp://ssu-jira.softserveinc.com/browse/LVUIDF-51\r\nAll menu items should be stored in database and all of them are editable\r\n\r\nTo review:\r\n\r\n- [ ] @rtriska\r\n- [ ] @vyshnevska\r\n- [x] @forecome \r\n\r\nTo merge:\r\n\r\n- [ ] @izagor\r\n- [ ] @forecome \r\n\r\n","created_at":"2015-07-10T15:36:31Z","updated_at":"2015-07-24T09:44:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e7a7fee11b4a57a7e9e83966b04e8deeb384315f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dark-side/language-school/pulls/9/commits","review_comments_url":"https://api.github.com/repos/dark-side/language-school/pulls/9/comments","review_comment_url":"https://api.github.com/repos/dark-side/language-school/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dark-side/language-school/issues/9/comments","statuses_url":"https://api.github.com/repos/dark-side/language-school/statuses/058697d2a48084bc0adbafe070b4f5f166c92691","head":{"label":"dark-side:develop_lvuidf_23_main_page_created","ref":"develop_lvuidf_23_main_page_created","sha":"058697d2a48084bc0adbafe070b4f5f166c92691","user":{"login":"dark-side","id":12395650,"avatar_url":"https://avatars.githubusercontent.com/u/12395650?v=3","gravatar_id":"","url":"https://api.github.com/users/dark-side","html_url":"https://github.com/dark-side","followers_url":"https://api.github.com/users/dark-side/followers","following_url":"https://api.github.com/users/dark-side/following{/other_user}","gists_url":"https://api.github.com/users/dark-side/gists{/gist_id}","starred_url":"https://api.github.com/users/dark-side/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dark-side/subscriptions","organizations_url":"https://api.github.com/users/dark-side/orgs","repos_url":"https://api.github.com/users/dark-side/repos","events_url":"https://api.github.com/users/dark-side/events{/privacy}","received_events_url":"https://api.github.com/users/dark-side/received_events","type":"Organization","site_admin":false},"repo":{"id":38773980,"name":"language-school","full_name":"dark-side/language-school","owner":{"login":"dark-side","id":12395650,"avatar_url":"https://avatars.githubusercontent.com/u/12395650?v=3","gravatar_id":"","url":"https://api.github.com/users/dark-side","html_url":"https://github.com/dark-side","followers_url":"https://api.github.com/users/dark-side/followers","following_url":"https://api.github.com/users/dark-side/following{/other_user}","gists_url":"https://api.github.com/users/dark-side/gists{/gist_id}","starred_url":"https://api.github.com/users/dark-side/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dark-side/subscriptions","organizations_url":"https://api.github.com/users/dark-side/orgs","repos_url":"https://api.github.com/users/dark-side/repos","events_url":"https://api.github.com/users/dark-side/events{/privacy}","received_events_url":"https://api.github.com/users/dark-side/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dark-side/language-school","description":"","fork":false,"url":"https://api.github.com/repos/dark-side/language-school","forks_url":"https://api.github.com/repos/dark-side/language-school/forks","keys_url":"https://api.github.com/repos/dark-side/language-school/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dark-side/language-school/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dark-side/language-school/teams","hooks_url":"https://api.github.com/repos/dark-side/language-school/hooks","issue_events_url":"https://api.github.com/repos/dark-side/language-school/issues/events{/number}","events_url":"https://api.github.com/repos/dark-side/language-school/events","assignees_url":"https://api.github.com/repos/dark-side/language-school/assignees{/user}","branches_url":"https://api.github.com/repos/dark-side/language-school/branches{/branch}","tags_url":"https://api.github.com/repos/dark-side/language-school/tags","blobs_url":"https://api.github.com/repos/dark-side/language-school/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dark-side/language-school/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dark-side/language-school/git/refs{/sha}","trees_url":"https://api.github.com/repos/dark-side/language-school/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dark-side/language-school/statuses/{sha}","languages_url":"https://api.github.com/repos/dark-side/language-school/languages","stargazers_url":"https://api.github.com/repos/dark-side/language-school/stargazers","contributors_url":"https://api.github.com/repos/dark-side/language-school/contributors","subscribers_url":"https://api.github.com/repos/dark-side/language-school/subscribers","subscription_url":"https://api.github.com/repos/dark-side/language-school/subscription","commits_url":"https://api.github.com/repos/dark-side/language-school/commits{/sha}","git_commits_url":"https://api.github.com/repos/dark-side/language-school/git/commits{/sha}","comments_url":"https://api.github.com/repos/dark-side/language-school/comments{/number}","issue_comment_url":"https://api.github.com/repos/dark-side/language-school/issues/comments{/number}","contents_url":"https://api.github.com/repos/dark-side/language-school/contents/{+path}","compare_url":"https://api.github.com/repos/dark-side/language-school/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dark-side/language-school/merges","archive_url":"https://api.github.com/repos/dark-side/language-school/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dark-side/language-school/downloads","issues_url":"https://api.github.com/repos/dark-side/language-school/issues{/number}","pulls_url":"https://api.github.com/repos/dark-side/language-school/pulls{/number}","milestones_url":"https://api.github.com/repos/dark-side/language-school/milestones{/number}","notifications_url":"https://api.github.com/repos/dark-side/language-school/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dark-side/language-school/labels{/name}","releases_url":"https://api.github.com/repos/dark-side/language-school/releases{/id}","created_at":"2015-07-08T19:02:46Z","updated_at":"2015-07-09T13:39:42Z","pushed_at":"2015-07-24T09:31:09Z","git_url":"git://github.com/dark-side/language-school.git","ssh_url":"git@github.com:dark-side/language-school.git","clone_url":"https://github.com/dark-side/language-school.git","svn_url":"https://github.com/dark-side/language-school","homepage":null,"size":20476,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":0,"default_branch":"develop"}},"base":{"label":"dark-side:develop","ref":"develop","sha":"b8bcadf85468c2a9d6526aac07e59138ab3b4f5b","user":{"login":"dark-side","id":12395650,"avatar_url":"https://avatars.githubusercontent.com/u/12395650?v=3","gravatar_id":"","url":"https://api.github.com/users/dark-side","html_url":"https://github.com/dark-side","followers_url":"https://api.github.com/users/dark-side/followers","following_url":"https://api.github.com/users/dark-side/following{/other_user}","gists_url":"https://api.github.com/users/dark-side/gists{/gist_id}","starred_url":"https://api.github.com/users/dark-side/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dark-side/subscriptions","organizations_url":"https://api.github.com/users/dark-side/orgs","repos_url":"https://api.github.com/users/dark-side/repos","events_url":"https://api.github.com/users/dark-side/events{/privacy}","received_events_url":"https://api.github.com/users/dark-side/received_events","type":"Organization","site_admin":false},"repo":{"id":38773980,"name":"language-school","full_name":"dark-side/language-school","owner":{"login":"dark-side","id":12395650,"avatar_url":"https://avatars.githubusercontent.com/u/12395650?v=3","gravatar_id":"","url":"https://api.github.com/users/dark-side","html_url":"https://github.com/dark-side","followers_url":"https://api.github.com/users/dark-side/followers","following_url":"https://api.github.com/users/dark-side/following{/other_user}","gists_url":"https://api.github.com/users/dark-side/gists{/gist_id}","starred_url":"https://api.github.com/users/dark-side/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dark-side/subscriptions","organizations_url":"https://api.github.com/users/dark-side/orgs","repos_url":"https://api.github.com/users/dark-side/repos","events_url":"https://api.github.com/users/dark-side/events{/privacy}","received_events_url":"https://api.github.com/users/dark-side/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dark-side/language-school","description":"","fork":false,"url":"https://api.github.com/repos/dark-side/language-school","forks_url":"https://api.github.com/repos/dark-side/language-school/forks","keys_url":"https://api.github.com/repos/dark-side/language-school/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dark-side/language-school/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dark-side/language-school/teams","hooks_url":"https://api.github.com/repos/dark-side/language-school/hooks","issue_events_url":"https://api.github.com/repos/dark-side/language-school/issues/events{/number}","events_url":"https://api.github.com/repos/dark-side/language-school/events","assignees_url":"https://api.github.com/repos/dark-side/language-school/assignees{/user}","branches_url":"https://api.github.com/repos/dark-side/language-school/branches{/branch}","tags_url":"https://api.github.com/repos/dark-side/language-school/tags","blobs_url":"https://api.github.com/repos/dark-side/language-school/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dark-side/language-school/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dark-side/language-school/git/refs{/sha}","trees_url":"https://api.github.com/repos/dark-side/language-school/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dark-side/language-school/statuses/{sha}","languages_url":"https://api.github.com/repos/dark-side/language-school/languages","stargazers_url":"https://api.github.com/repos/dark-side/language-school/stargazers","contributors_url":"https://api.github.com/repos/dark-side/language-school/contributors","subscribers_url":"https://api.github.com/repos/dark-side/language-school/subscribers","subscription_url":"https://api.github.com/repos/dark-side/language-school/subscription","commits_url":"https://api.github.com/repos/dark-side/language-school/commits{/sha}","git_commits_url":"https://api.github.com/repos/dark-side/language-school/git/commits{/sha}","comments_url":"https://api.github.com/repos/dark-side/language-school/comments{/number}","issue_comment_url":"https://api.github.com/repos/dark-side/language-school/issues/comments{/number}","contents_url":"https://api.github.com/repos/dark-side/language-school/contents/{+path}","compare_url":"https://api.github.com/repos/dark-side/language-school/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dark-side/language-school/merges","archive_url":"https://api.github.com/repos/dark-side/language-school/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dark-side/language-school/downloads","issues_url":"https://api.github.com/repos/dark-side/language-school/issues{/number}","pulls_url":"https://api.github.com/repos/dark-side/language-school/pulls{/number}","milestones_url":"https://api.github.com/repos/dark-side/language-school/milestones{/number}","notifications_url":"https://api.github.com/repos/dark-side/language-school/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dark-side/language-school/labels{/name}","releases_url":"https://api.github.com/repos/dark-side/language-school/releases{/id}","created_at":"2015-07-08T19:02:46Z","updated_at":"2015-07-09T13:39:42Z","pushed_at":"2015-07-24T09:31:09Z","git_url":"git://github.com/dark-side/language-school.git","ssh_url":"git@github.com:dark-side/language-school.git","clone_url":"https://github.com/dark-side/language-school.git","svn_url":"https://github.com/dark-side/language-school","homepage":null,"size":20476,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/dark-side/language-school/pulls/9"},"html":{"href":"https://github.com/dark-side/language-school/pull/9"},"issue":{"href":"https://api.github.com/repos/dark-side/language-school/issues/9"},"comments":{"href":"https://api.github.com/repos/dark-side/language-school/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/dark-side/language-school/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/dark-side/language-school/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dark-side/language-school/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/dark-side/language-school/statuses/058697d2a48084bc0adbafe070b4f5f166c92691"}}}}