{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/ftms/pulls/comments/94095718","pull_request_review_id":14626266,"id":94095718,"diff_hunk":"@@ -0,0 +1,92 @@\n+class AddUserFunctionPresenter < ActionView::Base\n+   include Rails.application.routes.url_helpers\n+\n+  def initialize args\n+    @routes = args[:routes]\n+    @form = args[:form]\n+    @user_functions = args[:user_functions]\n+  end\n+\n+  def render\n+    sidebar = Array.new\n+    body = Array.new\n+    index = 0","path":"app/presenters/add_user_function_presenter.rb","position":13,"original_position":13,"commit_id":"4bdc2b521969f7c7044ebaacaf8df910fc173113","original_commit_id":"0562ca6f48ee23d106ed45264ef4c8f831a2a255","user":{"login":"yeunuthongminh","id":20291773,"avatar_url":"https://avatars.githubusercontent.com/u/20291773?v=3","gravatar_id":"","url":"https://api.github.com/users/yeunuthongminh","html_url":"https://github.com/yeunuthongminh","followers_url":"https://api.github.com/users/yeunuthongminh/followers","following_url":"https://api.github.com/users/yeunuthongminh/following{/other_user}","gists_url":"https://api.github.com/users/yeunuthongminh/gists{/gist_id}","starred_url":"https://api.github.com/users/yeunuthongminh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeunuthongminh/subscriptions","organizations_url":"https://api.github.com/users/yeunuthongminh/orgs","repos_url":"https://api.github.com/users/yeunuthongminh/repos","events_url":"https://api.github.com/users/yeunuthongminh/events{/privacy}","received_events_url":"https://api.github.com/users/yeunuthongminh/received_events","type":"User","site_admin":false},"body":"đến lấy index cho từng dòng. có 2 dòng each nên mình không dùng with index được","created_at":"2016-12-29T02:14:49Z","updated_at":"2016-12-29T02:14:49Z","html_url":"https://github.com/framgia/ftms/pull/953#discussion_r94095718","pull_request_url":"https://api.github.com/repos/framgia/ftms/pulls/953","_links":{"self":{"href":"https://api.github.com/repos/framgia/ftms/pulls/comments/94095718"},"html":{"href":"https://github.com/framgia/ftms/pull/953#discussion_r94095718"},"pull_request":{"href":"https://api.github.com/repos/framgia/ftms/pulls/953"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/ftms/pulls/953","id":99356180,"html_url":"https://github.com/framgia/ftms/pull/953","diff_url":"https://github.com/framgia/ftms/pull/953.diff","patch_url":"https://github.com/framgia/ftms/pull/953.patch","issue_url":"https://api.github.com/repos/framgia/ftms/issues/953","number":953,"state":"open","locked":false,"title":"fix trainning management","user":{"login":"yeunuthongminh","id":20291773,"avatar_url":"https://avatars.githubusercontent.com/u/20291773?v=3","gravatar_id":"","url":"https://api.github.com/users/yeunuthongminh","html_url":"https://github.com/yeunuthongminh","followers_url":"https://api.github.com/users/yeunuthongminh/followers","following_url":"https://api.github.com/users/yeunuthongminh/following{/other_user}","gists_url":"https://api.github.com/users/yeunuthongminh/gists{/gist_id}","starred_url":"https://api.github.com/users/yeunuthongminh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeunuthongminh/subscriptions","organizations_url":"https://api.github.com/users/yeunuthongminh/orgs","repos_url":"https://api.github.com/users/yeunuthongminh/repos","events_url":"https://api.github.com/users/yeunuthongminh/events{/privacy}","received_events_url":"https://api.github.com/users/yeunuthongminh/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-26T09:49:52Z","updated_at":"2016-12-29T02:14:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8e528984af1d19118948f1840ccb6b4e1ea12552","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/ftms/pulls/953/commits","review_comments_url":"https://api.github.com/repos/framgia/ftms/pulls/953/comments","review_comment_url":"https://api.github.com/repos/framgia/ftms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/ftms/issues/953/comments","statuses_url":"https://api.github.com/repos/framgia/ftms/statuses/4bdc2b521969f7c7044ebaacaf8df910fc173113","head":{"label":"yeunuthongminh:fix-training-management","ref":"fix-training-management","sha":"4bdc2b521969f7c7044ebaacaf8df910fc173113","user":{"login":"yeunuthongminh","id":20291773,"avatar_url":"https://avatars.githubusercontent.com/u/20291773?v=3","gravatar_id":"","url":"https://api.github.com/users/yeunuthongminh","html_url":"https://github.com/yeunuthongminh","followers_url":"https://api.github.com/users/yeunuthongminh/followers","following_url":"https://api.github.com/users/yeunuthongminh/following{/other_user}","gists_url":"https://api.github.com/users/yeunuthongminh/gists{/gist_id}","starred_url":"https://api.github.com/users/yeunuthongminh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeunuthongminh/subscriptions","organizations_url":"https://api.github.com/users/yeunuthongminh/orgs","repos_url":"https://api.github.com/users/yeunuthongminh/repos","events_url":"https://api.github.com/users/yeunuthongminh/events{/privacy}","received_events_url":"https://api.github.com/users/yeunuthongminh/received_events","type":"User","site_admin":false},"repo":{"id":70044781,"name":"ftms","full_name":"yeunuthongminh/ftms","owner":{"login":"yeunuthongminh","id":20291773,"avatar_url":"https://avatars.githubusercontent.com/u/20291773?v=3","gravatar_id":"","url":"https://api.github.com/users/yeunuthongminh","html_url":"https://github.com/yeunuthongminh","followers_url":"https://api.github.com/users/yeunuthongminh/followers","following_url":"https://api.github.com/users/yeunuthongminh/following{/other_user}","gists_url":"https://api.github.com/users/yeunuthongminh/gists{/gist_id}","starred_url":"https://api.github.com/users/yeunuthongminh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeunuthongminh/subscriptions","organizations_url":"https://api.github.com/users/yeunuthongminh/orgs","repos_url":"https://api.github.com/users/yeunuthongminh/repos","events_url":"https://api.github.com/users/yeunuthongminh/events{/privacy}","received_events_url":"https://api.github.com/users/yeunuthongminh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yeunuthongminh/ftms","description":"Framgia Training Management System","fork":true,"url":"https://api.github.com/repos/yeunuthongminh/ftms","forks_url":"https://api.github.com/repos/yeunuthongminh/ftms/forks","keys_url":"https://api.github.com/repos/yeunuthongminh/ftms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yeunuthongminh/ftms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yeunuthongminh/ftms/teams","hooks_url":"https://api.github.com/repos/yeunuthongminh/ftms/hooks","issue_events_url":"https://api.github.com/repos/yeunuthongminh/ftms/issues/events{/number}","events_url":"https://api.github.com/repos/yeunuthongminh/ftms/events","assignees_url":"https://api.github.com/repos/yeunuthongminh/ftms/assignees{/user}","branches_url":"https://api.github.com/repos/yeunuthongminh/ftms/branches{/branch}","tags_url":"https://api.github.com/repos/yeunuthongminh/ftms/tags","blobs_url":"https://api.github.com/repos/yeunuthongminh/ftms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yeunuthongminh/ftms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yeunuthongminh/ftms/git/refs{/sha}","trees_url":"https://api.github.com/repos/yeunuthongminh/ftms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yeunuthongminh/ftms/statuses/{sha}","languages_url":"https://api.github.com/repos/yeunuthongminh/ftms/languages","stargazers_url":"https://api.github.com/repos/yeunuthongminh/ftms/stargazers","contributors_url":"https://api.github.com/repos/yeunuthongminh/ftms/contributors","subscribers_url":"https://api.github.com/repos/yeunuthongminh/ftms/subscribers","subscription_url":"https://api.github.com/repos/yeunuthongminh/ftms/subscription","commits_url":"https://api.github.com/repos/yeunuthongminh/ftms/commits{/sha}","git_commits_url":"https://api.github.com/repos/yeunuthongminh/ftms/git/commits{/sha}","comments_url":"https://api.github.com/repos/yeunuthongminh/ftms/comments{/number}","issue_comment_url":"https://api.github.com/repos/yeunuthongminh/ftms/issues/comments{/number}","contents_url":"https://api.github.com/repos/yeunuthongminh/ftms/contents/{+path}","compare_url":"https://api.github.com/repos/yeunuthongminh/ftms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yeunuthongminh/ftms/merges","archive_url":"https://api.github.com/repos/yeunuthongminh/ftms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yeunuthongminh/ftms/downloads","issues_url":"https://api.github.com/repos/yeunuthongminh/ftms/issues{/number}","pulls_url":"https://api.github.com/repos/yeunuthongminh/ftms/pulls{/number}","milestones_url":"https://api.github.com/repos/yeunuthongminh/ftms/milestones{/number}","notifications_url":"https://api.github.com/repos/yeunuthongminh/ftms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yeunuthongminh/ftms/labels{/name}","releases_url":"https://api.github.com/repos/yeunuthongminh/ftms/releases{/id}","deployments_url":"https://api.github.com/repos/yeunuthongminh/ftms/deployments","created_at":"2016-10-05T09:04:16Z","updated_at":"2015-09-10T03:49:19Z","pushed_at":"2016-12-29T02:13:53Z","git_url":"git://github.com/yeunuthongminh/ftms.git","ssh_url":"git@github.com:yeunuthongminh/ftms.git","clone_url":"https://github.com/yeunuthongminh/ftms.git","svn_url":"https://github.com/yeunuthongminh/ftms","homepage":null,"size":7755,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"framgia:1.2.1","ref":"1.2.1","sha":"1b562bcab07e6f959080bbba77565cb02ca15fb6","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":42220671,"name":"ftms","full_name":"framgia/ftms","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/ftms","description":"Framgia Training Management System","fork":false,"url":"https://api.github.com/repos/framgia/ftms","forks_url":"https://api.github.com/repos/framgia/ftms/forks","keys_url":"https://api.github.com/repos/framgia/ftms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/ftms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/ftms/teams","hooks_url":"https://api.github.com/repos/framgia/ftms/hooks","issue_events_url":"https://api.github.com/repos/framgia/ftms/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/ftms/events","assignees_url":"https://api.github.com/repos/framgia/ftms/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/ftms/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/ftms/tags","blobs_url":"https://api.github.com/repos/framgia/ftms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/ftms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/ftms/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/ftms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/ftms/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/ftms/languages","stargazers_url":"https://api.github.com/repos/framgia/ftms/stargazers","contributors_url":"https://api.github.com/repos/framgia/ftms/contributors","subscribers_url":"https://api.github.com/repos/framgia/ftms/subscribers","subscription_url":"https://api.github.com/repos/framgia/ftms/subscription","commits_url":"https://api.github.com/repos/framgia/ftms/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/ftms/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/ftms/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/ftms/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/ftms/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/ftms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/ftms/merges","archive_url":"https://api.github.com/repos/framgia/ftms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/ftms/downloads","issues_url":"https://api.github.com/repos/framgia/ftms/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/ftms/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/ftms/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/ftms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/ftms/labels{/name}","releases_url":"https://api.github.com/repos/framgia/ftms/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/ftms/deployments","created_at":"2015-09-10T03:49:19Z","updated_at":"2016-12-23T07:11:46Z","pushed_at":"2016-12-29T02:13:54Z","git_url":"git://github.com/framgia/ftms.git","ssh_url":"git@github.com:framgia/ftms.git","clone_url":"https://github.com/framgia/ftms.git","svn_url":"https://github.com/framgia/ftms","homepage":null,"size":7734,"stargazers_count":2,"watchers_count":2,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":40,"mirror_url":null,"open_issues_count":7,"forks":40,"open_issues":7,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/ftms/pulls/953"},"html":{"href":"https://github.com/framgia/ftms/pull/953"},"issue":{"href":"https://api.github.com/repos/framgia/ftms/issues/953"},"comments":{"href":"https://api.github.com/repos/framgia/ftms/issues/953/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/ftms/pulls/953/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/ftms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/ftms/pulls/953/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/ftms/statuses/4bdc2b521969f7c7044ebaacaf8df910fc173113"}}}}
{"actor":{"display_login":"yeunuthongminh"}}