{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_239/pulls/comments/171473969","pull_request_review_id":100329164,"id":171473969,"diff_hunk":"@@ -0,0 +1,78 @@\n+<div class=\"row\">\n+  <div class=\"col-md-6\">\n+    <div class=\"panel panel-default\">\n+      <div class=\"panel-heading\"><%= t \"category.create\" %></div>\n+      <div class=\"panel-body\">\n+\n+      </div>\n+    </div>\n+  </div>\n+  <div class=\"col-md-6\">\n+    <div class=\"panel panel-default\">\n+      <div class=\"panel-heading\">\n+        <h3><%= t \"category.all\" %> (<%= t \"category.total\" %> :\n+          <%= @categories.size %>)</h3>\n+        <form class=\"navbar-form\" role=\"search\">\n+          <div class=\"input-group\">\n+            <input type=\"text\" class=\"form-control\"\n+            placeholder=\"<%= t \"search\" %>\" name=\"search\">\n+            <div class=\"input-group-btn\">\n+              <button class=\"btn btn-default\" type=\"submit\">\n+                <i class=\"glyphicon glyphicon-search\"></i>\n+              </button>\n+            </div>\n+          </div>\n+        </form>\n+      </div>\n+      <div class=\"panel-body\">\n+        <table class=\"table table-bordered table-hover\n+          table-condensed table-striped\">\n+          <thead>\n+            <tr>\n+              <th><%= t \"category.index\" %></th>\n+              <th><%= t \"category.name\" %></th>\n+              <th><%= t \"word.words\" %></th>\n+              <th class=\"center\"><%= t \"category.action\" %></th>\n+            </tr>\n+          </thead>\n+          <tbody>\n+            <% if @categories.size < 1 %>\n+              <%= t \"category.nil\" %>\n+            <% else %>\n+              <% i = page_index %>\n+              <% @categories.each do |category| %>\n+                <tr>\n+                  <td><%= i %></td>\n+                  <td><%= category.name %></td>\n+                  <td><%= category.words.size %></td>\n+                  <td class=\"col-md-3 center\">\n+                    <span data-placement=\"top\" data-toggle=\"tooltip\"\n+                      title=\"<%= t \"category.edit\" %>\">\n+                      <button class=\"btn btn-primary btn-xs\"\n+                        data-title=\"<%= t \"category.edit\" %>\"\n+                        data-toggle=\"modal\" data-target=\"#edit\" >\n+                        <span class=\"glyphicon glyphicon-pencil\"></span>\n+                      </button>\n+                    </span>\n+                    <span data-placement=\"top\" data-toggle=\"tooltip\"\n+                      title=\"<%= t \"category.delete\" %>\">\n+                      <button class=\"btn btn-danger btn-xs\"\n+                        data-title=\"<%= t \"category.delete\" %>\"\n+                        data-toggle=\"modal\" data-target=\"#delete\" >\n+                        <span class=\"glyphicon glyphicon-trash\"></span>\n+                      </button>\n+                    </span>\n+                  </td>\n+                </tr>\n+                <% i = i + 1 %>\n+              <% end %>\n+            <% end %>\n+          </tbody>\n+        </table>\n+        <div class=\"center\">\n+          <%= will_paginate @categories %>","path":"app/views/admin/categories/index.html.erb","position":73,"original_position":73,"commit_id":"e6a3717a56530081a29c5cb7dc97e5335c6c148c","original_commit_id":"e6a3717a56530081a29c5cb7dc97e5335c6c148c","user":{"login":"Hungnv950","id":15699031,"avatar_url":"https://avatars0.githubusercontent.com/u/15699031?v=4","gravatar_id":"","url":"https://api.github.com/users/Hungnv950","html_url":"https://github.com/Hungnv950","followers_url":"https://api.github.com/users/Hungnv950/followers","following_url":"https://api.github.com/users/Hungnv950/following{/other_user}","gists_url":"https://api.github.com/users/Hungnv950/gists{/gist_id}","starred_url":"https://api.github.com/users/Hungnv950/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hungnv950/subscriptions","organizations_url":"https://api.github.com/users/Hungnv950/orgs","repos_url":"https://api.github.com/users/Hungnv950/repos","events_url":"https://api.github.com/users/Hungnv950/events{/privacy}","received_events_url":"https://api.github.com/users/Hungnv950/received_events","type":"User","site_admin":false},"body":"Vâng Anh","created_at":"2018-03-01T06:41:23Z","updated_at":"2018-03-01T06:41:23Z","html_url":"https://github.com/framgia/fels_239/pull/11#discussion_r171473969","pull_request_url":"https://api.github.com/repos/framgia/fels_239/pulls/11","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_239/pulls/comments/171473969"},"html":{"href":"https://github.com/framgia/fels_239/pull/11#discussion_r171473969"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_239/pulls/11"}},"in_reply_to_id":171473096},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_239/pulls/11","id":172128747,"html_url":"https://github.com/framgia/fels_239/pull/11","diff_url":"https://github.com/framgia/fels_239/pull/11.diff","patch_url":"https://github.com/framgia/fels_239/pull/11.patch","issue_url":"https://api.github.com/repos/framgia/fels_239/issues/11","number":11,"state":"open","locked":false,"title":"[admin][Categories] - Show categories","user":{"login":"Hungnv950","id":15699031,"avatar_url":"https://avatars0.githubusercontent.com/u/15699031?v=4","gravatar_id":"","url":"https://api.github.com/users/Hungnv950","html_url":"https://github.com/Hungnv950","followers_url":"https://api.github.com/users/Hungnv950/followers","following_url":"https://api.github.com/users/Hungnv950/following{/other_user}","gists_url":"https://api.github.com/users/Hungnv950/gists{/gist_id}","starred_url":"https://api.github.com/users/Hungnv950/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hungnv950/subscriptions","organizations_url":"https://api.github.com/users/Hungnv950/orgs","repos_url":"https://api.github.com/users/Hungnv950/repos","events_url":"https://api.github.com/users/Hungnv950/events{/privacy}","received_events_url":"https://api.github.com/users/Hungnv950/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-01T02:35:25Z","updated_at":"2018-03-01T06:41:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"457225d1751bcc71748521c43dfc76ad41d0a283","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_239/pulls/11/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_239/pulls/11/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_239/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_239/issues/11/comments","statuses_url":"https://api.github.com/repos/framgia/fels_239/statuses/e6a3717a56530081a29c5cb7dc97e5335c6c148c","head":{"label":"Hungnv950:admin-show-categories","ref":"admin-show-categories","sha":"e6a3717a56530081a29c5cb7dc97e5335c6c148c","user":{"login":"Hungnv950","id":15699031,"avatar_url":"https://avatars0.githubusercontent.com/u/15699031?v=4","gravatar_id":"","url":"https://api.github.com/users/Hungnv950","html_url":"https://github.com/Hungnv950","followers_url":"https://api.github.com/users/Hungnv950/followers","following_url":"https://api.github.com/users/Hungnv950/following{/other_user}","gists_url":"https://api.github.com/users/Hungnv950/gists{/gist_id}","starred_url":"https://api.github.com/users/Hungnv950/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hungnv950/subscriptions","organizations_url":"https://api.github.com/users/Hungnv950/orgs","repos_url":"https://api.github.com/users/Hungnv950/repos","events_url":"https://api.github.com/users/Hungnv950/events{/privacy}","received_events_url":"https://api.github.com/users/Hungnv950/received_events","type":"User","site_admin":false},"repo":{"id":123053700,"name":"fels_239","full_name":"Hungnv950/fels_239","owner":{"login":"Hungnv950","id":15699031,"avatar_url":"https://avatars0.githubusercontent.com/u/15699031?v=4","gravatar_id":"","url":"https://api.github.com/users/Hungnv950","html_url":"https://github.com/Hungnv950","followers_url":"https://api.github.com/users/Hungnv950/followers","following_url":"https://api.github.com/users/Hungnv950/following{/other_user}","gists_url":"https://api.github.com/users/Hungnv950/gists{/gist_id}","starred_url":"https://api.github.com/users/Hungnv950/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hungnv950/subscriptions","organizations_url":"https://api.github.com/users/Hungnv950/orgs","repos_url":"https://api.github.com/users/Hungnv950/repos","events_url":"https://api.github.com/users/Hungnv950/events{/privacy}","received_events_url":"https://api.github.com/users/Hungnv950/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Hungnv950/fels_239","description":"Framgia E-Learning System","fork":true,"url":"https://api.github.com/repos/Hungnv950/fels_239","forks_url":"https://api.github.com/repos/Hungnv950/fels_239/forks","keys_url":"https://api.github.com/repos/Hungnv950/fels_239/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Hungnv950/fels_239/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Hungnv950/fels_239/teams","hooks_url":"https://api.github.com/repos/Hungnv950/fels_239/hooks","issue_events_url":"https://api.github.com/repos/Hungnv950/fels_239/issues/events{/number}","events_url":"https://api.github.com/repos/Hungnv950/fels_239/events","assignees_url":"https://api.github.com/repos/Hungnv950/fels_239/assignees{/user}","branches_url":"https://api.github.com/repos/Hungnv950/fels_239/branches{/branch}","tags_url":"https://api.github.com/repos/Hungnv950/fels_239/tags","blobs_url":"https://api.github.com/repos/Hungnv950/fels_239/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Hungnv950/fels_239/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Hungnv950/fels_239/git/refs{/sha}","trees_url":"https://api.github.com/repos/Hungnv950/fels_239/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Hungnv950/fels_239/statuses/{sha}","languages_url":"https://api.github.com/repos/Hungnv950/fels_239/languages","stargazers_url":"https://api.github.com/repos/Hungnv950/fels_239/stargazers","contributors_url":"https://api.github.com/repos/Hungnv950/fels_239/contributors","subscribers_url":"https://api.github.com/repos/Hungnv950/fels_239/subscribers","subscription_url":"https://api.github.com/repos/Hungnv950/fels_239/subscription","commits_url":"https://api.github.com/repos/Hungnv950/fels_239/commits{/sha}","git_commits_url":"https://api.github.com/repos/Hungnv950/fels_239/git/commits{/sha}","comments_url":"https://api.github.com/repos/Hungnv950/fels_239/comments{/number}","issue_comment_url":"https://api.github.com/repos/Hungnv950/fels_239/issues/comments{/number}","contents_url":"https://api.github.com/repos/Hungnv950/fels_239/contents/{+path}","compare_url":"https://api.github.com/repos/Hungnv950/fels_239/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Hungnv950/fels_239/merges","archive_url":"https://api.github.com/repos/Hungnv950/fels_239/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Hungnv950/fels_239/downloads","issues_url":"https://api.github.com/repos/Hungnv950/fels_239/issues{/number}","pulls_url":"https://api.github.com/repos/Hungnv950/fels_239/pulls{/number}","milestones_url":"https://api.github.com/repos/Hungnv950/fels_239/milestones{/number}","notifications_url":"https://api.github.com/repos/Hungnv950/fels_239/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Hungnv950/fels_239/labels{/name}","releases_url":"https://api.github.com/repos/Hungnv950/fels_239/releases{/id}","deployments_url":"https://api.github.com/repos/Hungnv950/fels_239/deployments","created_at":"2018-02-27T01:20:00Z","updated_at":"2018-02-27T01:39:32Z","pushed_at":"2018-03-01T06:30:22Z","git_url":"git://github.com/Hungnv950/fels_239.git","ssh_url":"git@github.com:Hungnv950/fels_239.git","clone_url":"https://github.com/Hungnv950/fels_239.git","svn_url":"https://github.com/Hungnv950/fels_239","homepage":null,"size":70,"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":"framgia:develop","ref":"develop","sha":"2f79c728f2627333c3eccdaa92ea841cbdd92042","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars3.githubusercontent.com/u/2322183?v=4","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":122900173,"name":"fels_239","full_name":"framgia/fels_239","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars3.githubusercontent.com/u/2322183?v=4","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/fels_239","description":"Framgia E-Learning System","fork":false,"url":"https://api.github.com/repos/framgia/fels_239","forks_url":"https://api.github.com/repos/framgia/fels_239/forks","keys_url":"https://api.github.com/repos/framgia/fels_239/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_239/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_239/teams","hooks_url":"https://api.github.com/repos/framgia/fels_239/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_239/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_239/events","assignees_url":"https://api.github.com/repos/framgia/fels_239/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_239/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_239/tags","blobs_url":"https://api.github.com/repos/framgia/fels_239/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_239/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_239/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_239/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_239/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_239/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_239/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_239/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_239/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_239/subscription","commits_url":"https://api.github.com/repos/framgia/fels_239/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_239/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_239/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_239/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_239/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_239/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_239/merges","archive_url":"https://api.github.com/repos/framgia/fels_239/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_239/downloads","issues_url":"https://api.github.com/repos/framgia/fels_239/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_239/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_239/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_239/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_239/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_239/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fels_239/deployments","created_at":"2018-02-26T02:17:25Z","updated_at":"2018-02-27T08:09:49Z","pushed_at":"2018-03-01T06:30:23Z","git_url":"git://github.com/framgia/fels_239.git","ssh_url":"git@github.com:framgia/fels_239.git","clone_url":"https://github.com/framgia/fels_239.git","svn_url":"https://github.com/framgia/fels_239","homepage":null,"size":62,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_239/pulls/11"},"html":{"href":"https://github.com/framgia/fels_239/pull/11"},"issue":{"href":"https://api.github.com/repos/framgia/fels_239/issues/11"},"comments":{"href":"https://api.github.com/repos/framgia/fels_239/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_239/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_239/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_239/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_239/statuses/e6a3717a56530081a29c5cb7dc97e5335c6c148c"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Hungnv950"}}