{"action":"created","comment":{"url":"https://api.github.com/repos/madarasz/always-be-running/pulls/comments/93819019","pull_request_review_id":14355284,"id":93819019,"diff_hunk":"@@ -256,6 +256,57 @@\n                     </div>\n                 </div>\n             @endif\n+            {{--Videos--}}\n+            <div class=\"bracket\">\n+            @if ($tournament->concluded)\n+                <h5>\n+                    <i class=\"fa fa-video-camera\" aria-hidden=\"true\"></i>\n+                    Videos\n+                </h5>\n+                {{--Add video--}}\n+                <button class=\"btn btn-primary btn-xs\" id=\"button-add-videos\"\n+                        onclick=\"toggleVideoAdd(true)\">\n+                    <i class=\"fa fa-video-camera\" aria-hidden=\"true\"></i> Add videos\n+                </button>\n+                <button class=\"btn btn-primary btn-xs hidden-xs-up\" id=\"button-done-videos\"\n+                        onclick=\"toggleVideoAdd(false)\">\n+                    <i class=\"fa fa-check\" aria-hidden=\"true\"></i> Done\n+                </button>\n+                <div id=\"section-add-videos\" class=\"hidden-xs-up small-text\">\n+                    <hr/>\n+                    <div class=\"p-b-1\">\n+                        Add a Youtube video\n+                    </div>\n+                    {!! Form::open(['method' => 'POST', 'url' => \"/videos\",\n+                        'class' => 'form-inline']) !!}\n+                        {!! Form::hidden('tournament_id', $tournament->id) !!}\n+                        <div class=\"form-group\">\n+                            {!! Form::label('video_id', 'Youtube Video ID') !!}","path":"resources/views/tournaments/view.blade.php","position":29,"original_position":29,"commit_id":"51c2f73d82ec41eaf63bb8e984e3ea7ca78ea586","original_commit_id":"51c2f73d82ec41eaf63bb8e984e3ea7ca78ea586","user":{"login":"madarasz","id":5849634,"avatar_url":"https://avatars.githubusercontent.com/u/5849634?v=3","gravatar_id":"","url":"https://api.github.com/users/madarasz","html_url":"https://github.com/madarasz","followers_url":"https://api.github.com/users/madarasz/followers","following_url":"https://api.github.com/users/madarasz/following{/other_user}","gists_url":"https://api.github.com/users/madarasz/gists{/gist_id}","starred_url":"https://api.github.com/users/madarasz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madarasz/subscriptions","organizations_url":"https://api.github.com/users/madarasz/orgs","repos_url":"https://api.github.com/users/madarasz/repos","events_url":"https://api.github.com/users/madarasz/events{/privacy}","received_events_url":"https://api.github.com/users/madarasz/received_events","type":"User","site_admin":false},"body":"It would be nicer if this field accepted Youtube URLs and Youtube video IDs as well. More easier from the user. You can decide if it's an URL or ID on the server side and extract the ID if necessary. Be sure to use the \"v\" GET parameter only for URLs.","created_at":"2016-12-24T16:42:12Z","updated_at":"2016-12-24T16:42:12Z","html_url":"https://github.com/madarasz/always-be-running/pull/32#discussion_r93819019","pull_request_url":"https://api.github.com/repos/madarasz/always-be-running/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/madarasz/always-be-running/pulls/comments/93819019"},"html":{"href":"https://github.com/madarasz/always-be-running/pull/32#discussion_r93819019"},"pull_request":{"href":"https://api.github.com/repos/madarasz/always-be-running/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/madarasz/always-be-running/pulls/32","id":99260660,"html_url":"https://github.com/madarasz/always-be-running/pull/32","diff_url":"https://github.com/madarasz/always-be-running/pull/32.diff","patch_url":"https://github.com/madarasz/always-be-running/pull/32.patch","issue_url":"https://api.github.com/repos/madarasz/always-be-running/issues/32","number":32,"state":"open","locked":false,"title":"Allow users to add videos to tournaments","user":{"login":"muyjohno","id":242952,"avatar_url":"https://avatars.githubusercontent.com/u/242952?v=3","gravatar_id":"","url":"https://api.github.com/users/muyjohno","html_url":"https://github.com/muyjohno","followers_url":"https://api.github.com/users/muyjohno/followers","following_url":"https://api.github.com/users/muyjohno/following{/other_user}","gists_url":"https://api.github.com/users/muyjohno/gists{/gist_id}","starred_url":"https://api.github.com/users/muyjohno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muyjohno/subscriptions","organizations_url":"https://api.github.com/users/muyjohno/orgs","repos_url":"https://api.github.com/users/muyjohno/repos","events_url":"https://api.github.com/users/muyjohno/events{/privacy}","received_events_url":"https://api.github.com/users/muyjohno/received_events","type":"User","site_admin":false},"body":"Any logged in user can add a video to a tournament. They must enter a Youtube video ID (Youtube is all that is supported for now) and the record is created, and title, thumbnail and channel name are populated from the Youtube API.\r\n\r\nThe video creator, the tournament organiser or any admin can delete the video record.\r\n\r\nWhen a user clicks the thumbnail or title on the tournament page, an embedded player is loaded. The player can also be closed.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/242952/21458187/6238c74c-c92c-11e6-810a-bac848c2ca71.png)\r\n![image](https://cloud.githubusercontent.com/assets/242952/21458196/746c2832-c92c-11e6-992b-e98cefdde8b6.png)\r\n![image](https://cloud.githubusercontent.com/assets/242952/21458205/7e252540-c92c-11e6-8a91-7aa46bcefc45.png)\r\n","created_at":"2016-12-23T16:31:05Z","updated_at":"2016-12-24T16:42:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0a298f1b272209b57d6b079e149ec4b34a01acff","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/madarasz/always-be-running/pulls/32/commits","review_comments_url":"https://api.github.com/repos/madarasz/always-be-running/pulls/32/comments","review_comment_url":"https://api.github.com/repos/madarasz/always-be-running/pulls/comments{/number}","comments_url":"https://api.github.com/repos/madarasz/always-be-running/issues/32/comments","statuses_url":"https://api.github.com/repos/madarasz/always-be-running/statuses/51c2f73d82ec41eaf63bb8e984e3ea7ca78ea586","head":{"label":"muyjohno:videos","ref":"videos","sha":"51c2f73d82ec41eaf63bb8e984e3ea7ca78ea586","user":{"login":"muyjohno","id":242952,"avatar_url":"https://avatars.githubusercontent.com/u/242952?v=3","gravatar_id":"","url":"https://api.github.com/users/muyjohno","html_url":"https://github.com/muyjohno","followers_url":"https://api.github.com/users/muyjohno/followers","following_url":"https://api.github.com/users/muyjohno/following{/other_user}","gists_url":"https://api.github.com/users/muyjohno/gists{/gist_id}","starred_url":"https://api.github.com/users/muyjohno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muyjohno/subscriptions","organizations_url":"https://api.github.com/users/muyjohno/orgs","repos_url":"https://api.github.com/users/muyjohno/repos","events_url":"https://api.github.com/users/muyjohno/events{/privacy}","received_events_url":"https://api.github.com/users/muyjohno/received_events","type":"User","site_admin":false},"repo":{"id":76587939,"name":"always-be-running","full_name":"muyjohno/always-be-running","owner":{"login":"muyjohno","id":242952,"avatar_url":"https://avatars.githubusercontent.com/u/242952?v=3","gravatar_id":"","url":"https://api.github.com/users/muyjohno","html_url":"https://github.com/muyjohno","followers_url":"https://api.github.com/users/muyjohno/followers","following_url":"https://api.github.com/users/muyjohno/following{/other_user}","gists_url":"https://api.github.com/users/muyjohno/gists{/gist_id}","starred_url":"https://api.github.com/users/muyjohno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muyjohno/subscriptions","organizations_url":"https://api.github.com/users/muyjohno/orgs","repos_url":"https://api.github.com/users/muyjohno/repos","events_url":"https://api.github.com/users/muyjohno/events{/privacy}","received_events_url":"https://api.github.com/users/muyjohno/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/muyjohno/always-be-running","description":null,"fork":true,"url":"https://api.github.com/repos/muyjohno/always-be-running","forks_url":"https://api.github.com/repos/muyjohno/always-be-running/forks","keys_url":"https://api.github.com/repos/muyjohno/always-be-running/keys{/key_id}","collaborators_url":"https://api.github.com/repos/muyjohno/always-be-running/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/muyjohno/always-be-running/teams","hooks_url":"https://api.github.com/repos/muyjohno/always-be-running/hooks","issue_events_url":"https://api.github.com/repos/muyjohno/always-be-running/issues/events{/number}","events_url":"https://api.github.com/repos/muyjohno/always-be-running/events","assignees_url":"https://api.github.com/repos/muyjohno/always-be-running/assignees{/user}","branches_url":"https://api.github.com/repos/muyjohno/always-be-running/branches{/branch}","tags_url":"https://api.github.com/repos/muyjohno/always-be-running/tags","blobs_url":"https://api.github.com/repos/muyjohno/always-be-running/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/muyjohno/always-be-running/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/muyjohno/always-be-running/git/refs{/sha}","trees_url":"https://api.github.com/repos/muyjohno/always-be-running/git/trees{/sha}","statuses_url":"https://api.github.com/repos/muyjohno/always-be-running/statuses/{sha}","languages_url":"https://api.github.com/repos/muyjohno/always-be-running/languages","stargazers_url":"https://api.github.com/repos/muyjohno/always-be-running/stargazers","contributors_url":"https://api.github.com/repos/muyjohno/always-be-running/contributors","subscribers_url":"https://api.github.com/repos/muyjohno/always-be-running/subscribers","subscription_url":"https://api.github.com/repos/muyjohno/always-be-running/subscription","commits_url":"https://api.github.com/repos/muyjohno/always-be-running/commits{/sha}","git_commits_url":"https://api.github.com/repos/muyjohno/always-be-running/git/commits{/sha}","comments_url":"https://api.github.com/repos/muyjohno/always-be-running/comments{/number}","issue_comment_url":"https://api.github.com/repos/muyjohno/always-be-running/issues/comments{/number}","contents_url":"https://api.github.com/repos/muyjohno/always-be-running/contents/{+path}","compare_url":"https://api.github.com/repos/muyjohno/always-be-running/compare/{base}...{head}","merges_url":"https://api.github.com/repos/muyjohno/always-be-running/merges","archive_url":"https://api.github.com/repos/muyjohno/always-be-running/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/muyjohno/always-be-running/downloads","issues_url":"https://api.github.com/repos/muyjohno/always-be-running/issues{/number}","pulls_url":"https://api.github.com/repos/muyjohno/always-be-running/pulls{/number}","milestones_url":"https://api.github.com/repos/muyjohno/always-be-running/milestones{/number}","notifications_url":"https://api.github.com/repos/muyjohno/always-be-running/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/muyjohno/always-be-running/labels{/name}","releases_url":"https://api.github.com/repos/muyjohno/always-be-running/releases{/id}","deployments_url":"https://api.github.com/repos/muyjohno/always-be-running/deployments","created_at":"2016-12-15T19:08:36Z","updated_at":"2016-12-15T19:08:38Z","pushed_at":"2016-12-23T16:24:30Z","git_url":"git://github.com/muyjohno/always-be-running.git","ssh_url":"git@github.com:muyjohno/always-be-running.git","clone_url":"https://github.com/muyjohno/always-be-running.git","svn_url":"https://github.com/muyjohno/always-be-running","homepage":null,"size":2789,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"madarasz:master","ref":"master","sha":"6595ce8c00be8517b6f74f3ebbe5c752f53ff274","user":{"login":"madarasz","id":5849634,"avatar_url":"https://avatars.githubusercontent.com/u/5849634?v=3","gravatar_id":"","url":"https://api.github.com/users/madarasz","html_url":"https://github.com/madarasz","followers_url":"https://api.github.com/users/madarasz/followers","following_url":"https://api.github.com/users/madarasz/following{/other_user}","gists_url":"https://api.github.com/users/madarasz/gists{/gist_id}","starred_url":"https://api.github.com/users/madarasz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madarasz/subscriptions","organizations_url":"https://api.github.com/users/madarasz/orgs","repos_url":"https://api.github.com/users/madarasz/repos","events_url":"https://api.github.com/users/madarasz/events{/privacy}","received_events_url":"https://api.github.com/users/madarasz/received_events","type":"User","site_admin":false},"repo":{"id":68610531,"name":"always-be-running","full_name":"madarasz/always-be-running","owner":{"login":"madarasz","id":5849634,"avatar_url":"https://avatars.githubusercontent.com/u/5849634?v=3","gravatar_id":"","url":"https://api.github.com/users/madarasz","html_url":"https://github.com/madarasz","followers_url":"https://api.github.com/users/madarasz/followers","following_url":"https://api.github.com/users/madarasz/following{/other_user}","gists_url":"https://api.github.com/users/madarasz/gists{/gist_id}","starred_url":"https://api.github.com/users/madarasz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madarasz/subscriptions","organizations_url":"https://api.github.com/users/madarasz/orgs","repos_url":"https://api.github.com/users/madarasz/repos","events_url":"https://api.github.com/users/madarasz/events{/privacy}","received_events_url":"https://api.github.com/users/madarasz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/madarasz/always-be-running","description":null,"fork":false,"url":"https://api.github.com/repos/madarasz/always-be-running","forks_url":"https://api.github.com/repos/madarasz/always-be-running/forks","keys_url":"https://api.github.com/repos/madarasz/always-be-running/keys{/key_id}","collaborators_url":"https://api.github.com/repos/madarasz/always-be-running/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/madarasz/always-be-running/teams","hooks_url":"https://api.github.com/repos/madarasz/always-be-running/hooks","issue_events_url":"https://api.github.com/repos/madarasz/always-be-running/issues/events{/number}","events_url":"https://api.github.com/repos/madarasz/always-be-running/events","assignees_url":"https://api.github.com/repos/madarasz/always-be-running/assignees{/user}","branches_url":"https://api.github.com/repos/madarasz/always-be-running/branches{/branch}","tags_url":"https://api.github.com/repos/madarasz/always-be-running/tags","blobs_url":"https://api.github.com/repos/madarasz/always-be-running/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/madarasz/always-be-running/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/madarasz/always-be-running/git/refs{/sha}","trees_url":"https://api.github.com/repos/madarasz/always-be-running/git/trees{/sha}","statuses_url":"https://api.github.com/repos/madarasz/always-be-running/statuses/{sha}","languages_url":"https://api.github.com/repos/madarasz/always-be-running/languages","stargazers_url":"https://api.github.com/repos/madarasz/always-be-running/stargazers","contributors_url":"https://api.github.com/repos/madarasz/always-be-running/contributors","subscribers_url":"https://api.github.com/repos/madarasz/always-be-running/subscribers","subscription_url":"https://api.github.com/repos/madarasz/always-be-running/subscription","commits_url":"https://api.github.com/repos/madarasz/always-be-running/commits{/sha}","git_commits_url":"https://api.github.com/repos/madarasz/always-be-running/git/commits{/sha}","comments_url":"https://api.github.com/repos/madarasz/always-be-running/comments{/number}","issue_comment_url":"https://api.github.com/repos/madarasz/always-be-running/issues/comments{/number}","contents_url":"https://api.github.com/repos/madarasz/always-be-running/contents/{+path}","compare_url":"https://api.github.com/repos/madarasz/always-be-running/compare/{base}...{head}","merges_url":"https://api.github.com/repos/madarasz/always-be-running/merges","archive_url":"https://api.github.com/repos/madarasz/always-be-running/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/madarasz/always-be-running/downloads","issues_url":"https://api.github.com/repos/madarasz/always-be-running/issues{/number}","pulls_url":"https://api.github.com/repos/madarasz/always-be-running/pulls{/number}","milestones_url":"https://api.github.com/repos/madarasz/always-be-running/milestones{/number}","notifications_url":"https://api.github.com/repos/madarasz/always-be-running/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/madarasz/always-be-running/labels{/name}","releases_url":"https://api.github.com/repos/madarasz/always-be-running/releases{/id}","deployments_url":"https://api.github.com/repos/madarasz/always-be-running/deployments","created_at":"2016-09-19T13:50:08Z","updated_at":"2016-12-24T11:27:52Z","pushed_at":"2016-12-23T16:31:06Z","git_url":"git://github.com/madarasz/always-be-running.git","ssh_url":"git@github.com:madarasz/always-be-running.git","clone_url":"https://github.com/madarasz/always-be-running.git","svn_url":"https://github.com/madarasz/always-be-running","homepage":null,"size":2750,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":15,"forks":1,"open_issues":15,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/madarasz/always-be-running/pulls/32"},"html":{"href":"https://github.com/madarasz/always-be-running/pull/32"},"issue":{"href":"https://api.github.com/repos/madarasz/always-be-running/issues/32"},"comments":{"href":"https://api.github.com/repos/madarasz/always-be-running/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/madarasz/always-be-running/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/madarasz/always-be-running/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/madarasz/always-be-running/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/madarasz/always-be-running/statuses/51c2f73d82ec41eaf63bb8e984e3ea7ca78ea586"}}}}
{"actor":{"display_login":"madarasz"}}