{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/tms_30/pulls/comments/35503067","id":35503067,"diff_hunk":"@@ -0,0 +1,81 @@\n+<% provide :title, @course.name %>\n+<br>\n+<h1 class=\"text-center text-success\">\n+  <b><%= t(\"views.course\").capitalize %> : </b><%= @course.name %>\n+</h1>\n+\n+<h2 class=\"text-center\">\n+  <span class=\"label label-<%= @course.closed ? \"danger\" : \"success\" %>\">\n+    <%= t @course.closed ? \"views.messages.closed\" : \"views.messages.opening\" %>\n+  </span>\n+</h2>\n+<hr>\n+<div class=\"text-center\">\n+  <% @course.course_subjects.each do |course_subject| %>\n+    <a href=\"#\" class=\"btn btn-subject\n+      <%= course_subject.closed || !course_subject.subject.done_by?(current_user) ?\n+      \"btn-danger\" : \"btn-success\" %>\">\n+      <%= course_subject.subject.name %>\n+      <br>\n+      <%= pluralize course_subject.subject.date_duration, t(\"views.unit.day\") %>\n+    </a>\n+    <span class=\"glyphicon glyphicon-arrow-right\"></span>\n+  <% end %>\n+</div>\n+<br>\n+<div>\n+  <div class=\"container\">\n+    <table class=\"table\">\n+      <tr>\n+        <td class=\"text18px text-info col-md-2\">\n+          <b class=\"pull-right\"><%= t \"courses.description\" %> :</b>\n+        </td>\n+        <td>\n+          <%= @course.description %>\n+        </td>\n+      </tr>\n+      <tr>\n+        <td class=\"text18px text-info col-md-2\">\n+          <b class=\"pull-right\">\n+            <%= pluralize @course.subjects.count, t(\"courses.supervisor\") %>:</b>\n+        </td>\n+        <td>\n+          <% @course.supervisors.each do |supervisor| %>\n+            <span class=\"glyphicon glyphicon-user text-info\"></span>&nbsp;\n+            <%= link_to supervisor.name, \"#\" %>\n+            &nbsp; &nbsp; &nbsp; &nbsp;\n+          <% end %>\n+        </td>\n+      </tr>\n+      <tr>\n+        <td class=\"text18px text-info col-md-2\">\n+          <b class=\"pull-right\">\n+            <%= pluralize @course.users.count, t(\"trainee\").capitalize %>:</b>\n+        </td>\n+        <td>\n+          <% @course.users.each do |user| %>\n+            <span class=\"glyphicon glyphicon-user text-info\"></span>&nbsp;\n+            <%= link_to user.name, \"#\" %>","path":"app/views/courses/show.html.erb","position":58,"original_position":58,"commit_id":"b087c158d96cbe19c610f6076db47a00db85cb28","original_commit_id":"b087c158d96cbe19c610f6076db47a00db85cb28","user":{"login":"chuanhtuan","id":5590771,"avatar_url":"https://avatars.githubusercontent.com/u/5590771?v=3","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":"link đến view profile","created_at":"2015-07-27T02:54:31Z","updated_at":"2015-07-27T02:54:31Z","html_url":"https://github.com/framgia/tms_30/pull/23#discussion_r35503067","pull_request_url":"https://api.github.com/repos/framgia/tms_30/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/framgia/tms_30/pulls/comments/35503067"},"html":{"href":"https://github.com/framgia/tms_30/pull/23#discussion_r35503067"},"pull_request":{"href":"https://api.github.com/repos/framgia/tms_30/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/tms_30/pulls/23","id":40742402,"html_url":"https://github.com/framgia/tms_30/pull/23","diff_url":"https://github.com/framgia/tms_30/pull/23.diff","patch_url":"https://github.com/framgia/tms_30/pull/23.patch","issue_url":"https://api.github.com/repos/framgia/tms_30/issues/23","number":23,"state":"open","locked":false,"title":"Trainee can see his course","user":{"login":"nhs3108","id":10093701,"avatar_url":"https://avatars.githubusercontent.com/u/10093701?v=3","gravatar_id":"","url":"https://api.github.com/users/nhs3108","html_url":"https://github.com/nhs3108","followers_url":"https://api.github.com/users/nhs3108/followers","following_url":"https://api.github.com/users/nhs3108/following{/other_user}","gists_url":"https://api.github.com/users/nhs3108/gists{/gist_id}","starred_url":"https://api.github.com/users/nhs3108/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhs3108/subscriptions","organizations_url":"https://api.github.com/users/nhs3108/orgs","repos_url":"https://api.github.com/users/nhs3108/repos","events_url":"https://api.github.com/users/nhs3108/events{/privacy}","received_events_url":"https://api.github.com/users/nhs3108/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-24T04:44:26Z","updated_at":"2015-07-27T02:54:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d336e5be6522c285b652178d2e3ffee9419bb632","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/tms_30/pulls/23/commits","review_comments_url":"https://api.github.com/repos/framgia/tms_30/pulls/23/comments","review_comment_url":"https://api.github.com/repos/framgia/tms_30/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/tms_30/issues/23/comments","statuses_url":"https://api.github.com/repos/framgia/tms_30/statuses/b087c158d96cbe19c610f6076db47a00db85cb28","head":{"label":"nhs3108:_COURSE_CLIENT_show_the_user_course","ref":"_COURSE_CLIENT_show_the_user_course","sha":"b087c158d96cbe19c610f6076db47a00db85cb28","user":{"login":"nhs3108","id":10093701,"avatar_url":"https://avatars.githubusercontent.com/u/10093701?v=3","gravatar_id":"","url":"https://api.github.com/users/nhs3108","html_url":"https://github.com/nhs3108","followers_url":"https://api.github.com/users/nhs3108/followers","following_url":"https://api.github.com/users/nhs3108/following{/other_user}","gists_url":"https://api.github.com/users/nhs3108/gists{/gist_id}","starred_url":"https://api.github.com/users/nhs3108/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhs3108/subscriptions","organizations_url":"https://api.github.com/users/nhs3108/orgs","repos_url":"https://api.github.com/users/nhs3108/repos","events_url":"https://api.github.com/users/nhs3108/events{/privacy}","received_events_url":"https://api.github.com/users/nhs3108/received_events","type":"User","site_admin":false},"repo":{"id":39129699,"name":"tms_30","full_name":"nhs3108/tms_30","owner":{"login":"nhs3108","id":10093701,"avatar_url":"https://avatars.githubusercontent.com/u/10093701?v=3","gravatar_id":"","url":"https://api.github.com/users/nhs3108","html_url":"https://github.com/nhs3108","followers_url":"https://api.github.com/users/nhs3108/followers","following_url":"https://api.github.com/users/nhs3108/following{/other_user}","gists_url":"https://api.github.com/users/nhs3108/gists{/gist_id}","starred_url":"https://api.github.com/users/nhs3108/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhs3108/subscriptions","organizations_url":"https://api.github.com/users/nhs3108/orgs","repos_url":"https://api.github.com/users/nhs3108/repos","events_url":"https://api.github.com/users/nhs3108/events{/privacy}","received_events_url":"https://api.github.com/users/nhs3108/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nhs3108/tms_30","description":"Framgia Training Management System (training)","fork":true,"url":"https://api.github.com/repos/nhs3108/tms_30","forks_url":"https://api.github.com/repos/nhs3108/tms_30/forks","keys_url":"https://api.github.com/repos/nhs3108/tms_30/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nhs3108/tms_30/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nhs3108/tms_30/teams","hooks_url":"https://api.github.com/repos/nhs3108/tms_30/hooks","issue_events_url":"https://api.github.com/repos/nhs3108/tms_30/issues/events{/number}","events_url":"https://api.github.com/repos/nhs3108/tms_30/events","assignees_url":"https://api.github.com/repos/nhs3108/tms_30/assignees{/user}","branches_url":"https://api.github.com/repos/nhs3108/tms_30/branches{/branch}","tags_url":"https://api.github.com/repos/nhs3108/tms_30/tags","blobs_url":"https://api.github.com/repos/nhs3108/tms_30/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nhs3108/tms_30/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nhs3108/tms_30/git/refs{/sha}","trees_url":"https://api.github.com/repos/nhs3108/tms_30/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nhs3108/tms_30/statuses/{sha}","languages_url":"https://api.github.com/repos/nhs3108/tms_30/languages","stargazers_url":"https://api.github.com/repos/nhs3108/tms_30/stargazers","contributors_url":"https://api.github.com/repos/nhs3108/tms_30/contributors","subscribers_url":"https://api.github.com/repos/nhs3108/tms_30/subscribers","subscription_url":"https://api.github.com/repos/nhs3108/tms_30/subscription","commits_url":"https://api.github.com/repos/nhs3108/tms_30/commits{/sha}","git_commits_url":"https://api.github.com/repos/nhs3108/tms_30/git/commits{/sha}","comments_url":"https://api.github.com/repos/nhs3108/tms_30/comments{/number}","issue_comment_url":"https://api.github.com/repos/nhs3108/tms_30/issues/comments{/number}","contents_url":"https://api.github.com/repos/nhs3108/tms_30/contents/{+path}","compare_url":"https://api.github.com/repos/nhs3108/tms_30/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nhs3108/tms_30/merges","archive_url":"https://api.github.com/repos/nhs3108/tms_30/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nhs3108/tms_30/downloads","issues_url":"https://api.github.com/repos/nhs3108/tms_30/issues{/number}","pulls_url":"https://api.github.com/repos/nhs3108/tms_30/pulls{/number}","milestones_url":"https://api.github.com/repos/nhs3108/tms_30/milestones{/number}","notifications_url":"https://api.github.com/repos/nhs3108/tms_30/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nhs3108/tms_30/labels{/name}","releases_url":"https://api.github.com/repos/nhs3108/tms_30/releases{/id}","created_at":"2015-07-15T10:01:33Z","updated_at":"2015-07-15T06:24:15Z","pushed_at":"2015-07-27T01:38:40Z","git_url":"git://github.com/nhs3108/tms_30.git","ssh_url":"git@github.com:nhs3108/tms_30.git","clone_url":"https://github.com/nhs3108/tms_30.git","svn_url":"https://github.com/nhs3108/tms_30","homepage":null,"size":318,"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:develop","ref":"develop","sha":"8761b501226e9160a3a4f4c0354c41bf485e97e6","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":39120119,"name":"tms_30","full_name":"framgia/tms_30","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/tms_30","description":"Framgia Training Management System (training)","fork":false,"url":"https://api.github.com/repos/framgia/tms_30","forks_url":"https://api.github.com/repos/framgia/tms_30/forks","keys_url":"https://api.github.com/repos/framgia/tms_30/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/tms_30/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/tms_30/teams","hooks_url":"https://api.github.com/repos/framgia/tms_30/hooks","issue_events_url":"https://api.github.com/repos/framgia/tms_30/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/tms_30/events","assignees_url":"https://api.github.com/repos/framgia/tms_30/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/tms_30/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/tms_30/tags","blobs_url":"https://api.github.com/repos/framgia/tms_30/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/tms_30/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/tms_30/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/tms_30/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/tms_30/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/tms_30/languages","stargazers_url":"https://api.github.com/repos/framgia/tms_30/stargazers","contributors_url":"https://api.github.com/repos/framgia/tms_30/contributors","subscribers_url":"https://api.github.com/repos/framgia/tms_30/subscribers","subscription_url":"https://api.github.com/repos/framgia/tms_30/subscription","commits_url":"https://api.github.com/repos/framgia/tms_30/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/tms_30/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/tms_30/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/tms_30/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/tms_30/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/tms_30/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/tms_30/merges","archive_url":"https://api.github.com/repos/framgia/tms_30/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/tms_30/downloads","issues_url":"https://api.github.com/repos/framgia/tms_30/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/tms_30/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/tms_30/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/tms_30/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/tms_30/labels{/name}","releases_url":"https://api.github.com/repos/framgia/tms_30/releases{/id}","created_at":"2015-07-15T06:24:15Z","updated_at":"2015-07-15T06:24:15Z","pushed_at":"2015-07-26T02:50:58Z","git_url":"git://github.com/framgia/tms_30.git","ssh_url":"git@github.com:framgia/tms_30.git","clone_url":"https://github.com/framgia/tms_30.git","svn_url":"https://github.com/framgia/tms_30","homepage":null,"size":767,"stargazers_count":0,"watchers_count":0,"language":null,"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":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/tms_30/pulls/23"},"html":{"href":"https://github.com/framgia/tms_30/pull/23"},"issue":{"href":"https://api.github.com/repos/framgia/tms_30/issues/23"},"comments":{"href":"https://api.github.com/repos/framgia/tms_30/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/tms_30/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/tms_30/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/tms_30/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/tms_30/statuses/b087c158d96cbe19c610f6076db47a00db85cb28"}}}}