{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/brs_56/pulls/comments/106367409","pull_request_review_id":27284035,"id":106367409,"diff_hunk":"@@ -0,0 +1,35 @@\n+<% provide :title, t(\"add_book\") %>\n+<h1><%= t \"add_book\" %></h1>\n+<div class=\"row\">\n+  <div class=\"col-md-6 col-md-offset-3\">\n+    <%= form_for [:admin, @book] do |f| %>\n+\n+      <%= f.label :code %>\n+      <%= f.text_field :code, class: \"form-control\" %>\n+\n+      <%= f.label :title %>\n+      <%= f.text_field :title, class: \"form-control\" %>\n+\n+      <%= f.label :author %>\n+      <%= f.text_field :author, class: \"form-control\" %>\n+\n+      <%= f.label :category %>\n+      <%= f.text_field :category, class: \"form-control\" %>\n+\n+      <%= f.label :price %>\n+      <%= f.text_field :price, class: \"form-control\" %>\n+\n+      <%= f.label :rate %>\n+      <%= f.text_field :rate, class: \"form-control\" %>\n+\n+      <%= f.label :favorite %>\n+      <%= f.text_field :favorite, class: \"form-control\" %>\n+\n+      <%= f.label :image %>\n+      <%= f.file_field :image, accept: \"image/jpeg,image/gif,image/png\" %>\n+\n+      <%= f.submit t(\"add_book\"), class: \"btn btn-primary update\" %>\n+    <% end %>\n+  </div>\n+</div>\n+","path":"app/views/admin/books/new.html.erb","position":35,"original_position":35,"commit_id":"be1b99025089ce3a770d3a5c286f429009564bbe","original_commit_id":"be1b99025089ce3a770d3a5c286f429009564bbe","user":{"login":"tranducquoc","id":17246945,"avatar_url":"https://avatars0.githubusercontent.com/u/17246945?v=3","gravatar_id":"","url":"https://api.github.com/users/tranducquoc","html_url":"https://github.com/tranducquoc","followers_url":"https://api.github.com/users/tranducquoc/followers","following_url":"https://api.github.com/users/tranducquoc/following{/other_user}","gists_url":"https://api.github.com/users/tranducquoc/gists{/gist_id}","starred_url":"https://api.github.com/users/tranducquoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tranducquoc/subscriptions","organizations_url":"https://api.github.com/users/tranducquoc/orgs","repos_url":"https://api.github.com/users/tranducquoc/repos","events_url":"https://api.github.com/users/tranducquoc/events{/privacy}","received_events_url":"https://api.github.com/users/tranducquoc/received_events","type":"User","site_admin":false},"body":"remove dòng này đi","created_at":"2017-03-16T09:10:35Z","updated_at":"2017-03-16T09:11:01Z","html_url":"https://github.com/framgia/brs_56/pull/7#discussion_r106367409","pull_request_url":"https://api.github.com/repos/framgia/brs_56/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/framgia/brs_56/pulls/comments/106367409"},"html":{"href":"https://github.com/framgia/brs_56/pull/7#discussion_r106367409"},"pull_request":{"href":"https://api.github.com/repos/framgia/brs_56/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/brs_56/pulls/7","id":111014934,"html_url":"https://github.com/framgia/brs_56/pull/7","diff_url":"https://github.com/framgia/brs_56/pull/7.diff","patch_url":"https://github.com/framgia/brs_56/pull/7.patch","issue_url":"https://api.github.com/repos/framgia/brs_56/issues/7","number":7,"state":"open","locked":false,"title":"Add, edit, delete books with admin","user":{"login":"nguyenhongcuong221192","id":25576095,"avatar_url":"https://avatars0.githubusercontent.com/u/25576095?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenhongcuong221192","html_url":"https://github.com/nguyenhongcuong221192","followers_url":"https://api.github.com/users/nguyenhongcuong221192/followers","following_url":"https://api.github.com/users/nguyenhongcuong221192/following{/other_user}","gists_url":"https://api.github.com/users/nguyenhongcuong221192/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenhongcuong221192/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenhongcuong221192/subscriptions","organizations_url":"https://api.github.com/users/nguyenhongcuong221192/orgs","repos_url":"https://api.github.com/users/nguyenhongcuong221192/repos","events_url":"https://api.github.com/users/nguyenhongcuong221192/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenhongcuong221192/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-03-16T08:29:10Z","updated_at":"2017-03-16T09:11:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7c3e7cf41ce29bfa2b8fe31ba14511fe6d87fca7","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/brs_56/pulls/7/commits","review_comments_url":"https://api.github.com/repos/framgia/brs_56/pulls/7/comments","review_comment_url":"https://api.github.com/repos/framgia/brs_56/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/brs_56/issues/7/comments","statuses_url":"https://api.github.com/repos/framgia/brs_56/statuses/be1b99025089ce3a770d3a5c286f429009564bbe","head":{"label":"nguyenhongcuong221192:add-edit-delete-admin","ref":"add-edit-delete-admin","sha":"be1b99025089ce3a770d3a5c286f429009564bbe","user":{"login":"nguyenhongcuong221192","id":25576095,"avatar_url":"https://avatars0.githubusercontent.com/u/25576095?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenhongcuong221192","html_url":"https://github.com/nguyenhongcuong221192","followers_url":"https://api.github.com/users/nguyenhongcuong221192/followers","following_url":"https://api.github.com/users/nguyenhongcuong221192/following{/other_user}","gists_url":"https://api.github.com/users/nguyenhongcuong221192/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenhongcuong221192/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenhongcuong221192/subscriptions","organizations_url":"https://api.github.com/users/nguyenhongcuong221192/orgs","repos_url":"https://api.github.com/users/nguyenhongcuong221192/repos","events_url":"https://api.github.com/users/nguyenhongcuong221192/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenhongcuong221192/received_events","type":"User","site_admin":false},"repo":{"id":83643304,"name":"brs_56","full_name":"nguyenhongcuong221192/brs_56","owner":{"login":"nguyenhongcuong221192","id":25576095,"avatar_url":"https://avatars0.githubusercontent.com/u/25576095?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenhongcuong221192","html_url":"https://github.com/nguyenhongcuong221192","followers_url":"https://api.github.com/users/nguyenhongcuong221192/followers","following_url":"https://api.github.com/users/nguyenhongcuong221192/following{/other_user}","gists_url":"https://api.github.com/users/nguyenhongcuong221192/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenhongcuong221192/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenhongcuong221192/subscriptions","organizations_url":"https://api.github.com/users/nguyenhongcuong221192/orgs","repos_url":"https://api.github.com/users/nguyenhongcuong221192/repos","events_url":"https://api.github.com/users/nguyenhongcuong221192/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenhongcuong221192/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nguyenhongcuong221192/brs_56","description":null,"fork":true,"url":"https://api.github.com/repos/nguyenhongcuong221192/brs_56","forks_url":"https://api.github.com/repos/nguyenhongcuong221192/brs_56/forks","keys_url":"https://api.github.com/repos/nguyenhongcuong221192/brs_56/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nguyenhongcuong221192/brs_56/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nguyenhongcuong221192/brs_56/teams","hooks_url":"https://api.github.com/repos/nguyenhongcuong221192/brs_56/hooks","issue_events_url":"https://api.github.com/repos/nguyenhongcuong221192/brs_56/issues/events{/number}","events_url":"https://api.github.com/repos/nguyenhongcuong221192/brs_56/events","assignees_url":"https://api.github.com/repos/nguyenhongcuong221192/brs_56/assignees{/user}","branches_url":"https://api.github.com/repos/nguyenhongcuong221192/brs_56/branches{/branch}","tags_url":"https://api.github.com/repos/nguyenhongcuong221192/brs_56/tags","blobs_url":"https://api.github.com/repos/nguyenhongcuong221192/brs_56/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nguyenhongcuong221192/brs_56/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nguyenhongcuong221192/brs_56/git/refs{/sha}","trees_url":"https://api.github.com/repos/nguyenhongcuong221192/brs_56/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nguyenhongcuong221192/brs_56/statuses/{sha}","languages_url":"https://api.github.com/repos/nguyenhongcuong221192/brs_56/languages","stargazers_url":"https://api.github.com/repos/nguyenhongcuong221192/brs_56/stargazers","contributors_url":"https://api.github.com/repos/nguyenhongcuong221192/brs_56/contributors","subscribers_url":"https://api.github.com/repos/nguyenhongcuong221192/brs_56/subscribers","subscription_url":"https://api.github.com/repos/nguyenhongcuong221192/brs_56/subscription","commits_url":"https://api.github.com/repos/nguyenhongcuong221192/brs_56/commits{/sha}","git_commits_url":"https://api.github.com/repos/nguyenhongcuong221192/brs_56/git/commits{/sha}","comments_url":"https://api.github.com/repos/nguyenhongcuong221192/brs_56/comments{/number}","issue_comment_url":"https://api.github.com/repos/nguyenhongcuong221192/brs_56/issues/comments{/number}","contents_url":"https://api.github.com/repos/nguyenhongcuong221192/brs_56/contents/{+path}","compare_url":"https://api.github.com/repos/nguyenhongcuong221192/brs_56/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nguyenhongcuong221192/brs_56/merges","archive_url":"https://api.github.com/repos/nguyenhongcuong221192/brs_56/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nguyenhongcuong221192/brs_56/downloads","issues_url":"https://api.github.com/repos/nguyenhongcuong221192/brs_56/issues{/number}","pulls_url":"https://api.github.com/repos/nguyenhongcuong221192/brs_56/pulls{/number}","milestones_url":"https://api.github.com/repos/nguyenhongcuong221192/brs_56/milestones{/number}","notifications_url":"https://api.github.com/repos/nguyenhongcuong221192/brs_56/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nguyenhongcuong221192/brs_56/labels{/name}","releases_url":"https://api.github.com/repos/nguyenhongcuong221192/brs_56/releases{/id}","deployments_url":"https://api.github.com/repos/nguyenhongcuong221192/brs_56/deployments","created_at":"2017-03-02T06:32:55Z","updated_at":"2017-03-02T09:02:41Z","pushed_at":"2017-03-16T08:28:22Z","git_url":"git://github.com/nguyenhongcuong221192/brs_56.git","ssh_url":"git@github.com:nguyenhongcuong221192/brs_56.git","clone_url":"https://github.com/nguyenhongcuong221192/brs_56.git","svn_url":"https://github.com/nguyenhongcuong221192/brs_56","homepage":null,"size":231,"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":"develop"}},"base":{"label":"framgia:develop","ref":"develop","sha":"fa9721acc96094ff94c9a1a692a9528bf8a1e046","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars0.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":83622989,"name":"brs_56","full_name":"framgia/brs_56","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars0.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/brs_56","description":null,"fork":false,"url":"https://api.github.com/repos/framgia/brs_56","forks_url":"https://api.github.com/repos/framgia/brs_56/forks","keys_url":"https://api.github.com/repos/framgia/brs_56/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/brs_56/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/brs_56/teams","hooks_url":"https://api.github.com/repos/framgia/brs_56/hooks","issue_events_url":"https://api.github.com/repos/framgia/brs_56/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/brs_56/events","assignees_url":"https://api.github.com/repos/framgia/brs_56/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/brs_56/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/brs_56/tags","blobs_url":"https://api.github.com/repos/framgia/brs_56/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/brs_56/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/brs_56/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/brs_56/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/brs_56/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/brs_56/languages","stargazers_url":"https://api.github.com/repos/framgia/brs_56/stargazers","contributors_url":"https://api.github.com/repos/framgia/brs_56/contributors","subscribers_url":"https://api.github.com/repos/framgia/brs_56/subscribers","subscription_url":"https://api.github.com/repos/framgia/brs_56/subscription","commits_url":"https://api.github.com/repos/framgia/brs_56/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/brs_56/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/brs_56/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/brs_56/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/brs_56/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/brs_56/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/brs_56/merges","archive_url":"https://api.github.com/repos/framgia/brs_56/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/brs_56/downloads","issues_url":"https://api.github.com/repos/framgia/brs_56/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/brs_56/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/brs_56/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/brs_56/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/brs_56/labels{/name}","releases_url":"https://api.github.com/repos/framgia/brs_56/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/brs_56/deployments","created_at":"2017-03-02T02:05:54Z","updated_at":"2017-03-06T05:37:55Z","pushed_at":"2017-03-16T08:29:11Z","git_url":"git://github.com/framgia/brs_56.git","ssh_url":"git@github.com:framgia/brs_56.git","clone_url":"https://github.com/framgia/brs_56.git","svn_url":"https://github.com/framgia/brs_56","homepage":null,"size":229,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/brs_56/pulls/7"},"html":{"href":"https://github.com/framgia/brs_56/pull/7"},"issue":{"href":"https://api.github.com/repos/framgia/brs_56/issues/7"},"comments":{"href":"https://api.github.com/repos/framgia/brs_56/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/brs_56/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/brs_56/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/brs_56/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/brs_56/statuses/be1b99025089ce3a770d3a5c286f429009564bbe"}}}}
{"actor":{"display_login":"tranducquoc"}}