{"action":"created","comment":{"url":"https://api.github.com/repos/awesome-academy/bookstore/pulls/comments/228398836","pull_request_review_id":168663557,"id":228398836,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyODM5ODgzNg==","diff_hunk":"@@ -0,0 +1,14 @@\n+<% provide(:title, (t \".blog_title\"))%>\n+<div class=\"kenh14-border\" id=\"blog-title\" >\n+  <h1><%=(t \".blog_name\")%></h1>\n+</div>\n+<% @blogs.each do |blog| %>\n+  <div class=\"post\">\n+    <div><h2 class=\"title\"><%= blog.title %></h2></div>\n+    <p class=\"meta\"><span class=\"date\"><%= blog.date %></span><span class=\"posted\">Posted by <%= link_to blog.author , blog.auth_link %></span></p>","path":"app/views/blogs/index.html.erb","position":8,"original_position":8,"commit_id":"548fd52e30514f6587ea832b25e2e0859580e656","original_commit_id":"548fd52e30514f6587ea832b25e2e0859580e656","user":{"login":"chuanhtuan","id":5590771,"node_id":"MDQ6VXNlcjU1OTA3NzE=","avatar_url":"https://avatars0.githubusercontent.com/u/5590771?v=4","gravatar_id":"","url":"https://api.github.com/users/chuanhtuan","html_url":"https://github.com/chuanhtuan","followers_url":"https://api.github.com/users/chuanhtuan/followers","following_url":"https://api.github.com/users/chuanhtuan/following{/other_user}","gists_url":"https://api.github.com/users/chuanhtuan/gists{/gist_id}","starred_url":"https://api.github.com/users/chuanhtuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chuanhtuan/subscriptions","organizations_url":"https://api.github.com/users/chuanhtuan/orgs","repos_url":"https://api.github.com/users/chuanhtuan/repos","events_url":"https://api.github.com/users/chuanhtuan/events{/privacy}","received_events_url":"https://api.github.com/users/chuanhtuan/received_events","type":"User","site_admin":false},"body":"i18n","created_at":"2018-10-26T03:51:07Z","updated_at":"2018-10-26T03:51:07Z","html_url":"https://github.com/awesome-academy/bookstore/pull/4#discussion_r228398836","pull_request_url":"https://api.github.com/repos/awesome-academy/bookstore/pulls/4","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/awesome-academy/bookstore/pulls/comments/228398836"},"html":{"href":"https://github.com/awesome-academy/bookstore/pull/4#discussion_r228398836"},"pull_request":{"href":"https://api.github.com/repos/awesome-academy/bookstore/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/awesome-academy/bookstore/pulls/4","id":224518230,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0NTE4MjMw","html_url":"https://github.com/awesome-academy/bookstore/pull/4","diff_url":"https://github.com/awesome-academy/bookstore/pull/4.diff","patch_url":"https://github.com/awesome-academy/bookstore/pull/4.patch","issue_url":"https://api.github.com/repos/awesome-academy/bookstore/issues/4","number":4,"state":"open","locked":false,"title":"refs Task #2787 Show \"book's news\" (Blog page).","user":{"login":"hoangtronghieu1812","id":43598873,"node_id":"MDQ6VXNlcjQzNTk4ODcz","avatar_url":"https://avatars3.githubusercontent.com/u/43598873?v=4","gravatar_id":"","url":"https://api.github.com/users/hoangtronghieu1812","html_url":"https://github.com/hoangtronghieu1812","followers_url":"https://api.github.com/users/hoangtronghieu1812/followers","following_url":"https://api.github.com/users/hoangtronghieu1812/following{/other_user}","gists_url":"https://api.github.com/users/hoangtronghieu1812/gists{/gist_id}","starred_url":"https://api.github.com/users/hoangtronghieu1812/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoangtronghieu1812/subscriptions","organizations_url":"https://api.github.com/users/hoangtronghieu1812/orgs","repos_url":"https://api.github.com/users/hoangtronghieu1812/repos","events_url":"https://api.github.com/users/hoangtronghieu1812/events{/privacy}","received_events_url":"https://api.github.com/users/hoangtronghieu1812/received_events","type":"User","site_admin":false},"body":"1, Tạo thêm Blogs controller. Blog Model để quản lý và hiển thị các book's post. Cụ thể biểu hiện ở 2 action: show và index:\r\n  - Action index sẽ show ra toàn bộ các bài viết.\r\n  - Action show( ấn vào button Read More) sẽ show ra nội dung hoàn chỉnh của bài viết.\r\n2, Bảng blogs gồm các cột :title, :author, :date, :description, :auth_link tương ứng với các nội dung cần truyền vào các bài post.\r\n3, Ý tưởng của em giống với 1 trang báo điện tử, đơn giản là để hiển thị các bài viết về sách do Admin tạo. Hiện tại em chỉ tạo các bài viết này bằng tay(tương ứng với các file html :post1, post2,......), chưa liên kết thành 1 chức năng để cho các admin thực sự có thể đăng nhập và tạo bài viết. Việc có phát triển chức năng này hay không còn tùy vào thời gian của em. Nhưng em nghĩ tạo file html bằng tay cũng đủ dùng rồi. :)  ","created_at":"2018-10-21T04:52:54Z","updated_at":"2018-10-26T03:51:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"232d03825e3aad17f375c5d3ee3c7c08af3248d8","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/awesome-academy/bookstore/pulls/4/commits","review_comments_url":"https://api.github.com/repos/awesome-academy/bookstore/pulls/4/comments","review_comment_url":"https://api.github.com/repos/awesome-academy/bookstore/pulls/comments{/number}","comments_url":"https://api.github.com/repos/awesome-academy/bookstore/issues/4/comments","statuses_url":"https://api.github.com/repos/awesome-academy/bookstore/statuses/548fd52e30514f6587ea832b25e2e0859580e656","head":{"label":"hoangtronghieu1812:blog-page","ref":"blog-page","sha":"548fd52e30514f6587ea832b25e2e0859580e656","user":{"login":"hoangtronghieu1812","id":43598873,"node_id":"MDQ6VXNlcjQzNTk4ODcz","avatar_url":"https://avatars3.githubusercontent.com/u/43598873?v=4","gravatar_id":"","url":"https://api.github.com/users/hoangtronghieu1812","html_url":"https://github.com/hoangtronghieu1812","followers_url":"https://api.github.com/users/hoangtronghieu1812/followers","following_url":"https://api.github.com/users/hoangtronghieu1812/following{/other_user}","gists_url":"https://api.github.com/users/hoangtronghieu1812/gists{/gist_id}","starred_url":"https://api.github.com/users/hoangtronghieu1812/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoangtronghieu1812/subscriptions","organizations_url":"https://api.github.com/users/hoangtronghieu1812/orgs","repos_url":"https://api.github.com/users/hoangtronghieu1812/repos","events_url":"https://api.github.com/users/hoangtronghieu1812/events{/privacy}","received_events_url":"https://api.github.com/users/hoangtronghieu1812/received_events","type":"User","site_admin":false},"repo":{"id":153570669,"node_id":"MDEwOlJlcG9zaXRvcnkxNTM1NzA2Njk=","name":"bookstore","full_name":"hoangtronghieu1812/bookstore","private":false,"owner":{"login":"hoangtronghieu1812","id":43598873,"node_id":"MDQ6VXNlcjQzNTk4ODcz","avatar_url":"https://avatars3.githubusercontent.com/u/43598873?v=4","gravatar_id":"","url":"https://api.github.com/users/hoangtronghieu1812","html_url":"https://github.com/hoangtronghieu1812","followers_url":"https://api.github.com/users/hoangtronghieu1812/followers","following_url":"https://api.github.com/users/hoangtronghieu1812/following{/other_user}","gists_url":"https://api.github.com/users/hoangtronghieu1812/gists{/gist_id}","starred_url":"https://api.github.com/users/hoangtronghieu1812/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoangtronghieu1812/subscriptions","organizations_url":"https://api.github.com/users/hoangtronghieu1812/orgs","repos_url":"https://api.github.com/users/hoangtronghieu1812/repos","events_url":"https://api.github.com/users/hoangtronghieu1812/events{/privacy}","received_events_url":"https://api.github.com/users/hoangtronghieu1812/received_events","type":"User","site_admin":false},"html_url":"https://github.com/hoangtronghieu1812/bookstore","description":null,"fork":true,"url":"https://api.github.com/repos/hoangtronghieu1812/bookstore","forks_url":"https://api.github.com/repos/hoangtronghieu1812/bookstore/forks","keys_url":"https://api.github.com/repos/hoangtronghieu1812/bookstore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hoangtronghieu1812/bookstore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hoangtronghieu1812/bookstore/teams","hooks_url":"https://api.github.com/repos/hoangtronghieu1812/bookstore/hooks","issue_events_url":"https://api.github.com/repos/hoangtronghieu1812/bookstore/issues/events{/number}","events_url":"https://api.github.com/repos/hoangtronghieu1812/bookstore/events","assignees_url":"https://api.github.com/repos/hoangtronghieu1812/bookstore/assignees{/user}","branches_url":"https://api.github.com/repos/hoangtronghieu1812/bookstore/branches{/branch}","tags_url":"https://api.github.com/repos/hoangtronghieu1812/bookstore/tags","blobs_url":"https://api.github.com/repos/hoangtronghieu1812/bookstore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hoangtronghieu1812/bookstore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hoangtronghieu1812/bookstore/git/refs{/sha}","trees_url":"https://api.github.com/repos/hoangtronghieu1812/bookstore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hoangtronghieu1812/bookstore/statuses/{sha}","languages_url":"https://api.github.com/repos/hoangtronghieu1812/bookstore/languages","stargazers_url":"https://api.github.com/repos/hoangtronghieu1812/bookstore/stargazers","contributors_url":"https://api.github.com/repos/hoangtronghieu1812/bookstore/contributors","subscribers_url":"https://api.github.com/repos/hoangtronghieu1812/bookstore/subscribers","subscription_url":"https://api.github.com/repos/hoangtronghieu1812/bookstore/subscription","commits_url":"https://api.github.com/repos/hoangtronghieu1812/bookstore/commits{/sha}","git_commits_url":"https://api.github.com/repos/hoangtronghieu1812/bookstore/git/commits{/sha}","comments_url":"https://api.github.com/repos/hoangtronghieu1812/bookstore/comments{/number}","issue_comment_url":"https://api.github.com/repos/hoangtronghieu1812/bookstore/issues/comments{/number}","contents_url":"https://api.github.com/repos/hoangtronghieu1812/bookstore/contents/{+path}","compare_url":"https://api.github.com/repos/hoangtronghieu1812/bookstore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hoangtronghieu1812/bookstore/merges","archive_url":"https://api.github.com/repos/hoangtronghieu1812/bookstore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hoangtronghieu1812/bookstore/downloads","issues_url":"https://api.github.com/repos/hoangtronghieu1812/bookstore/issues{/number}","pulls_url":"https://api.github.com/repos/hoangtronghieu1812/bookstore/pulls{/number}","milestones_url":"https://api.github.com/repos/hoangtronghieu1812/bookstore/milestones{/number}","notifications_url":"https://api.github.com/repos/hoangtronghieu1812/bookstore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hoangtronghieu1812/bookstore/labels{/name}","releases_url":"https://api.github.com/repos/hoangtronghieu1812/bookstore/releases{/id}","deployments_url":"https://api.github.com/repos/hoangtronghieu1812/bookstore/deployments","created_at":"2018-10-18T05:56:39Z","updated_at":"2018-10-18T05:56:41Z","pushed_at":"2018-10-26T03:50:02Z","git_url":"git://github.com/hoangtronghieu1812/bookstore.git","ssh_url":"git@github.com:hoangtronghieu1812/bookstore.git","clone_url":"https://github.com/hoangtronghieu1812/bookstore.git","svn_url":"https://github.com/hoangtronghieu1812/bookstore","homepage":null,"size":6966,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"awesome-academy:master","ref":"master","sha":"a6f4216dfdba0339f90bca23d9c3057e5a916aa4","user":{"login":"awesome-academy","id":33895223,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzODk1MjIz","avatar_url":"https://avatars0.githubusercontent.com/u/33895223?v=4","gravatar_id":"","url":"https://api.github.com/users/awesome-academy","html_url":"https://github.com/awesome-academy","followers_url":"https://api.github.com/users/awesome-academy/followers","following_url":"https://api.github.com/users/awesome-academy/following{/other_user}","gists_url":"https://api.github.com/users/awesome-academy/gists{/gist_id}","starred_url":"https://api.github.com/users/awesome-academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awesome-academy/subscriptions","organizations_url":"https://api.github.com/users/awesome-academy/orgs","repos_url":"https://api.github.com/users/awesome-academy/repos","events_url":"https://api.github.com/users/awesome-academy/events{/privacy}","received_events_url":"https://api.github.com/users/awesome-academy/received_events","type":"Organization","site_admin":false},"repo":{"id":153256156,"node_id":"MDEwOlJlcG9zaXRvcnkxNTMyNTYxNTY=","name":"bookstore","full_name":"awesome-academy/bookstore","private":false,"owner":{"login":"awesome-academy","id":33895223,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzODk1MjIz","avatar_url":"https://avatars0.githubusercontent.com/u/33895223?v=4","gravatar_id":"","url":"https://api.github.com/users/awesome-academy","html_url":"https://github.com/awesome-academy","followers_url":"https://api.github.com/users/awesome-academy/followers","following_url":"https://api.github.com/users/awesome-academy/following{/other_user}","gists_url":"https://api.github.com/users/awesome-academy/gists{/gist_id}","starred_url":"https://api.github.com/users/awesome-academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awesome-academy/subscriptions","organizations_url":"https://api.github.com/users/awesome-academy/orgs","repos_url":"https://api.github.com/users/awesome-academy/repos","events_url":"https://api.github.com/users/awesome-academy/events{/privacy}","received_events_url":"https://api.github.com/users/awesome-academy/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/awesome-academy/bookstore","description":null,"fork":false,"url":"https://api.github.com/repos/awesome-academy/bookstore","forks_url":"https://api.github.com/repos/awesome-academy/bookstore/forks","keys_url":"https://api.github.com/repos/awesome-academy/bookstore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/awesome-academy/bookstore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/awesome-academy/bookstore/teams","hooks_url":"https://api.github.com/repos/awesome-academy/bookstore/hooks","issue_events_url":"https://api.github.com/repos/awesome-academy/bookstore/issues/events{/number}","events_url":"https://api.github.com/repos/awesome-academy/bookstore/events","assignees_url":"https://api.github.com/repos/awesome-academy/bookstore/assignees{/user}","branches_url":"https://api.github.com/repos/awesome-academy/bookstore/branches{/branch}","tags_url":"https://api.github.com/repos/awesome-academy/bookstore/tags","blobs_url":"https://api.github.com/repos/awesome-academy/bookstore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/awesome-academy/bookstore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/awesome-academy/bookstore/git/refs{/sha}","trees_url":"https://api.github.com/repos/awesome-academy/bookstore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/awesome-academy/bookstore/statuses/{sha}","languages_url":"https://api.github.com/repos/awesome-academy/bookstore/languages","stargazers_url":"https://api.github.com/repos/awesome-academy/bookstore/stargazers","contributors_url":"https://api.github.com/repos/awesome-academy/bookstore/contributors","subscribers_url":"https://api.github.com/repos/awesome-academy/bookstore/subscribers","subscription_url":"https://api.github.com/repos/awesome-academy/bookstore/subscription","commits_url":"https://api.github.com/repos/awesome-academy/bookstore/commits{/sha}","git_commits_url":"https://api.github.com/repos/awesome-academy/bookstore/git/commits{/sha}","comments_url":"https://api.github.com/repos/awesome-academy/bookstore/comments{/number}","issue_comment_url":"https://api.github.com/repos/awesome-academy/bookstore/issues/comments{/number}","contents_url":"https://api.github.com/repos/awesome-academy/bookstore/contents/{+path}","compare_url":"https://api.github.com/repos/awesome-academy/bookstore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/awesome-academy/bookstore/merges","archive_url":"https://api.github.com/repos/awesome-academy/bookstore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/awesome-academy/bookstore/downloads","issues_url":"https://api.github.com/repos/awesome-academy/bookstore/issues{/number}","pulls_url":"https://api.github.com/repos/awesome-academy/bookstore/pulls{/number}","milestones_url":"https://api.github.com/repos/awesome-academy/bookstore/milestones{/number}","notifications_url":"https://api.github.com/repos/awesome-academy/bookstore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/awesome-academy/bookstore/labels{/name}","releases_url":"https://api.github.com/repos/awesome-academy/bookstore/releases{/id}","deployments_url":"https://api.github.com/repos/awesome-academy/bookstore/deployments","created_at":"2018-10-16T09:08:14Z","updated_at":"2018-10-25T03:20:24Z","pushed_at":"2018-10-26T03:50:03Z","git_url":"git://github.com/awesome-academy/bookstore.git","ssh_url":"git@github.com:awesome-academy/bookstore.git","clone_url":"https://github.com/awesome-academy/bookstore.git","svn_url":"https://github.com/awesome-academy/bookstore","homepage":null,"size":5637,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/awesome-academy/bookstore/pulls/4"},"html":{"href":"https://github.com/awesome-academy/bookstore/pull/4"},"issue":{"href":"https://api.github.com/repos/awesome-academy/bookstore/issues/4"},"comments":{"href":"https://api.github.com/repos/awesome-academy/bookstore/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/awesome-academy/bookstore/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/awesome-academy/bookstore/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/awesome-academy/bookstore/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/awesome-academy/bookstore/statuses/548fd52e30514f6587ea832b25e2e0859580e656"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"chuanhtuan"}}