{"action":"created","comment":{"url":"https://api.github.com/repos/jacentyg/squash_app/pulls/comments/66823381","id":66823381,"diff_hunk":"@@ -66,4 +66,51 @@\n \n     </ul>\n \n+    <div class=\"text-center\">\n+        <%= link_to \"Edit training\", edit_training_path(@training), \n+        :class => 'btn btn-primary' %>\n+    </div>\n+\n+    <p class=\"lead text-center\">\n+        <br>\n+        List of Players\n+    </p>\n+\n+    <table class=\"table table-striped\">\n+        <thead>\n+            <tr>\n+                <th>No.</th>\n+                <th>Player</th>\n+                <th>All Trainings</th>\n+                <th>Didn't show up</th>\n+                <th>Participation status</th>\n+                <th>Actions</th>\n+            </tr>\n+        </thead>\n+        <tbody>\n+            <% User.includes(:participations).where( :participations => \n+               { :training_id => @training.id } ).each do |user| %>\n+\n+                <tr>\n+                    <th scope=\"row\">...</th>\n+                    <td><%= truncate(full_name_for(user), length: 30, ","path":"app/views/trainings/show.html.erb","position":40,"original_position":40,"commit_id":"c696b5a151121844c739554165f13dfc2c9ed2a6","original_commit_id":"c696b5a151121844c739554165f13dfc2c9ed2a6","user":{"login":"grzegorzhauska","id":2961693,"avatar_url":"https://avatars.githubusercontent.com/u/2961693?v=3","gravatar_id":"","url":"https://api.github.com/users/grzegorzhauska","html_url":"https://github.com/grzegorzhauska","followers_url":"https://api.github.com/users/grzegorzhauska/followers","following_url":"https://api.github.com/users/grzegorzhauska/following{/other_user}","gists_url":"https://api.github.com/users/grzegorzhauska/gists{/gist_id}","starred_url":"https://api.github.com/users/grzegorzhauska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grzegorzhauska/subscriptions","organizations_url":"https://api.github.com/users/grzegorzhauska/orgs","repos_url":"https://api.github.com/users/grzegorzhauska/repos","events_url":"https://api.github.com/users/grzegorzhauska/events{/privacy}","received_events_url":"https://api.github.com/users/grzegorzhauska/received_events","type":"User","site_admin":false},"body":"w modelu `user.rb` stworz metode `full_name` przenies ta logike stad do tej metody. a w tym miejscu uzyj `user.full_name`. ","created_at":"2016-06-13T16:27:23Z","updated_at":"2016-06-13T16:27:23Z","html_url":"https://github.com/jacentyg/squash_app/pull/1#discussion_r66823381","pull_request_url":"https://api.github.com/repos/jacentyg/squash_app/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/jacentyg/squash_app/pulls/comments/66823381"},"html":{"href":"https://github.com/jacentyg/squash_app/pull/1#discussion_r66823381"},"pull_request":{"href":"https://api.github.com/repos/jacentyg/squash_app/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/jacentyg/squash_app/pulls/1","id":73281765,"html_url":"https://github.com/jacentyg/squash_app/pull/1","diff_url":"https://github.com/jacentyg/squash_app/pull/1.diff","patch_url":"https://github.com/jacentyg/squash_app/pull/1.patch","issue_url":"https://api.github.com/repos/jacentyg/squash_app/issues/1","number":1,"state":"open","locked":false,"title":"Add edit training option (not finished)","user":{"login":"jacentyg","id":18396021,"avatar_url":"https://avatars.githubusercontent.com/u/18396021?v=3","gravatar_id":"","url":"https://api.github.com/users/jacentyg","html_url":"https://github.com/jacentyg","followers_url":"https://api.github.com/users/jacentyg/followers","following_url":"https://api.github.com/users/jacentyg/following{/other_user}","gists_url":"https://api.github.com/users/jacentyg/gists{/gist_id}","starred_url":"https://api.github.com/users/jacentyg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacentyg/subscriptions","organizations_url":"https://api.github.com/users/jacentyg/orgs","repos_url":"https://api.github.com/users/jacentyg/repos","events_url":"https://api.github.com/users/jacentyg/events{/privacy}","received_events_url":"https://api.github.com/users/jacentyg/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-09T20:39:28Z","updated_at":"2016-06-13T16:27:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"94f1b9d2ffa46d5f940dd6489c7df472f938cba1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jacentyg/squash_app/pulls/1/commits","review_comments_url":"https://api.github.com/repos/jacentyg/squash_app/pulls/1/comments","review_comment_url":"https://api.github.com/repos/jacentyg/squash_app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jacentyg/squash_app/issues/1/comments","statuses_url":"https://api.github.com/repos/jacentyg/squash_app/statuses/c696b5a151121844c739554165f13dfc2c9ed2a6","head":{"label":"jacentyg:trainings","ref":"trainings","sha":"c696b5a151121844c739554165f13dfc2c9ed2a6","user":{"login":"jacentyg","id":18396021,"avatar_url":"https://avatars.githubusercontent.com/u/18396021?v=3","gravatar_id":"","url":"https://api.github.com/users/jacentyg","html_url":"https://github.com/jacentyg","followers_url":"https://api.github.com/users/jacentyg/followers","following_url":"https://api.github.com/users/jacentyg/following{/other_user}","gists_url":"https://api.github.com/users/jacentyg/gists{/gist_id}","starred_url":"https://api.github.com/users/jacentyg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacentyg/subscriptions","organizations_url":"https://api.github.com/users/jacentyg/orgs","repos_url":"https://api.github.com/users/jacentyg/repos","events_url":"https://api.github.com/users/jacentyg/events{/privacy}","received_events_url":"https://api.github.com/users/jacentyg/received_events","type":"User","site_admin":false},"repo":{"id":56597008,"name":"squash_app","full_name":"jacentyg/squash_app","owner":{"login":"jacentyg","id":18396021,"avatar_url":"https://avatars.githubusercontent.com/u/18396021?v=3","gravatar_id":"","url":"https://api.github.com/users/jacentyg","html_url":"https://github.com/jacentyg","followers_url":"https://api.github.com/users/jacentyg/followers","following_url":"https://api.github.com/users/jacentyg/following{/other_user}","gists_url":"https://api.github.com/users/jacentyg/gists{/gist_id}","starred_url":"https://api.github.com/users/jacentyg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacentyg/subscriptions","organizations_url":"https://api.github.com/users/jacentyg/orgs","repos_url":"https://api.github.com/users/jacentyg/repos","events_url":"https://api.github.com/users/jacentyg/events{/privacy}","received_events_url":"https://api.github.com/users/jacentyg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jacentyg/squash_app","description":"","fork":false,"url":"https://api.github.com/repos/jacentyg/squash_app","forks_url":"https://api.github.com/repos/jacentyg/squash_app/forks","keys_url":"https://api.github.com/repos/jacentyg/squash_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jacentyg/squash_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jacentyg/squash_app/teams","hooks_url":"https://api.github.com/repos/jacentyg/squash_app/hooks","issue_events_url":"https://api.github.com/repos/jacentyg/squash_app/issues/events{/number}","events_url":"https://api.github.com/repos/jacentyg/squash_app/events","assignees_url":"https://api.github.com/repos/jacentyg/squash_app/assignees{/user}","branches_url":"https://api.github.com/repos/jacentyg/squash_app/branches{/branch}","tags_url":"https://api.github.com/repos/jacentyg/squash_app/tags","blobs_url":"https://api.github.com/repos/jacentyg/squash_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jacentyg/squash_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jacentyg/squash_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/jacentyg/squash_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jacentyg/squash_app/statuses/{sha}","languages_url":"https://api.github.com/repos/jacentyg/squash_app/languages","stargazers_url":"https://api.github.com/repos/jacentyg/squash_app/stargazers","contributors_url":"https://api.github.com/repos/jacentyg/squash_app/contributors","subscribers_url":"https://api.github.com/repos/jacentyg/squash_app/subscribers","subscription_url":"https://api.github.com/repos/jacentyg/squash_app/subscription","commits_url":"https://api.github.com/repos/jacentyg/squash_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/jacentyg/squash_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/jacentyg/squash_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/jacentyg/squash_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/jacentyg/squash_app/contents/{+path}","compare_url":"https://api.github.com/repos/jacentyg/squash_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jacentyg/squash_app/merges","archive_url":"https://api.github.com/repos/jacentyg/squash_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jacentyg/squash_app/downloads","issues_url":"https://api.github.com/repos/jacentyg/squash_app/issues{/number}","pulls_url":"https://api.github.com/repos/jacentyg/squash_app/pulls{/number}","milestones_url":"https://api.github.com/repos/jacentyg/squash_app/milestones{/number}","notifications_url":"https://api.github.com/repos/jacentyg/squash_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jacentyg/squash_app/labels{/name}","releases_url":"https://api.github.com/repos/jacentyg/squash_app/releases{/id}","deployments_url":"https://api.github.com/repos/jacentyg/squash_app/deployments","created_at":"2016-04-19T13:00:34Z","updated_at":"2016-04-20T11:32:16Z","pushed_at":"2016-06-10T13:35:19Z","git_url":"git://github.com/jacentyg/squash_app.git","ssh_url":"git@github.com:jacentyg/squash_app.git","clone_url":"https://github.com/jacentyg/squash_app.git","svn_url":"https://github.com/jacentyg/squash_app","homepage":null,"size":259,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"jacentyg:master","ref":"master","sha":"54c03058f46aa6933e03647e9957ae245c5878b0","user":{"login":"jacentyg","id":18396021,"avatar_url":"https://avatars.githubusercontent.com/u/18396021?v=3","gravatar_id":"","url":"https://api.github.com/users/jacentyg","html_url":"https://github.com/jacentyg","followers_url":"https://api.github.com/users/jacentyg/followers","following_url":"https://api.github.com/users/jacentyg/following{/other_user}","gists_url":"https://api.github.com/users/jacentyg/gists{/gist_id}","starred_url":"https://api.github.com/users/jacentyg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacentyg/subscriptions","organizations_url":"https://api.github.com/users/jacentyg/orgs","repos_url":"https://api.github.com/users/jacentyg/repos","events_url":"https://api.github.com/users/jacentyg/events{/privacy}","received_events_url":"https://api.github.com/users/jacentyg/received_events","type":"User","site_admin":false},"repo":{"id":56597008,"name":"squash_app","full_name":"jacentyg/squash_app","owner":{"login":"jacentyg","id":18396021,"avatar_url":"https://avatars.githubusercontent.com/u/18396021?v=3","gravatar_id":"","url":"https://api.github.com/users/jacentyg","html_url":"https://github.com/jacentyg","followers_url":"https://api.github.com/users/jacentyg/followers","following_url":"https://api.github.com/users/jacentyg/following{/other_user}","gists_url":"https://api.github.com/users/jacentyg/gists{/gist_id}","starred_url":"https://api.github.com/users/jacentyg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacentyg/subscriptions","organizations_url":"https://api.github.com/users/jacentyg/orgs","repos_url":"https://api.github.com/users/jacentyg/repos","events_url":"https://api.github.com/users/jacentyg/events{/privacy}","received_events_url":"https://api.github.com/users/jacentyg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jacentyg/squash_app","description":"","fork":false,"url":"https://api.github.com/repos/jacentyg/squash_app","forks_url":"https://api.github.com/repos/jacentyg/squash_app/forks","keys_url":"https://api.github.com/repos/jacentyg/squash_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jacentyg/squash_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jacentyg/squash_app/teams","hooks_url":"https://api.github.com/repos/jacentyg/squash_app/hooks","issue_events_url":"https://api.github.com/repos/jacentyg/squash_app/issues/events{/number}","events_url":"https://api.github.com/repos/jacentyg/squash_app/events","assignees_url":"https://api.github.com/repos/jacentyg/squash_app/assignees{/user}","branches_url":"https://api.github.com/repos/jacentyg/squash_app/branches{/branch}","tags_url":"https://api.github.com/repos/jacentyg/squash_app/tags","blobs_url":"https://api.github.com/repos/jacentyg/squash_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jacentyg/squash_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jacentyg/squash_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/jacentyg/squash_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jacentyg/squash_app/statuses/{sha}","languages_url":"https://api.github.com/repos/jacentyg/squash_app/languages","stargazers_url":"https://api.github.com/repos/jacentyg/squash_app/stargazers","contributors_url":"https://api.github.com/repos/jacentyg/squash_app/contributors","subscribers_url":"https://api.github.com/repos/jacentyg/squash_app/subscribers","subscription_url":"https://api.github.com/repos/jacentyg/squash_app/subscription","commits_url":"https://api.github.com/repos/jacentyg/squash_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/jacentyg/squash_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/jacentyg/squash_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/jacentyg/squash_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/jacentyg/squash_app/contents/{+path}","compare_url":"https://api.github.com/repos/jacentyg/squash_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jacentyg/squash_app/merges","archive_url":"https://api.github.com/repos/jacentyg/squash_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jacentyg/squash_app/downloads","issues_url":"https://api.github.com/repos/jacentyg/squash_app/issues{/number}","pulls_url":"https://api.github.com/repos/jacentyg/squash_app/pulls{/number}","milestones_url":"https://api.github.com/repos/jacentyg/squash_app/milestones{/number}","notifications_url":"https://api.github.com/repos/jacentyg/squash_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jacentyg/squash_app/labels{/name}","releases_url":"https://api.github.com/repos/jacentyg/squash_app/releases{/id}","deployments_url":"https://api.github.com/repos/jacentyg/squash_app/deployments","created_at":"2016-04-19T13:00:34Z","updated_at":"2016-04-20T11:32:16Z","pushed_at":"2016-06-10T13:35:19Z","git_url":"git://github.com/jacentyg/squash_app.git","ssh_url":"git@github.com:jacentyg/squash_app.git","clone_url":"https://github.com/jacentyg/squash_app.git","svn_url":"https://github.com/jacentyg/squash_app","homepage":null,"size":259,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jacentyg/squash_app/pulls/1"},"html":{"href":"https://github.com/jacentyg/squash_app/pull/1"},"issue":{"href":"https://api.github.com/repos/jacentyg/squash_app/issues/1"},"comments":{"href":"https://api.github.com/repos/jacentyg/squash_app/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/jacentyg/squash_app/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/jacentyg/squash_app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jacentyg/squash_app/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/jacentyg/squash_app/statuses/c696b5a151121844c739554165f13dfc2c9ed2a6"}}}}
{"actor":{"display_login":"grzegorzhauska"}}