{"action":"created","comment":{"url":"https://api.github.com/repos/testmycode/tmc-server/pulls/comments/34664889","id":34664889,"diff_hunk":"@@ -1,12 +1,23 @@\n <h1>Edit course</h1>\n \n+<%\n+   custom_points_url_help = %q{\n+     <small>\n+       %{user} = username<br/>\n+       %{course} = course id<br/>\n+       %{org} = organization id<br/>\n+     </small>\n+   }\n+%>\n+\n <%= form_for(@course, url: organization_course_path) do |f| %>\n   <%= render 'shared/error_messages', target: @course %>\n \n-  <%= labeled_field(\"Course title*\", f.text_field(:title)) %>\n-  <%= labeled_field(\"Course description\", f.text_area(:description)) %>\n-  <%= labeled_field(\"Material URL\", f.text_field(:material_url)) %>\n-  <%= labeled_field(\"Course name\", f.text_field(:name, disabled: true)) %>\n+  <%= bs_labeled_field(\"Course title*\", f.text_field(:title)) %>\n+  <%= bs_labeled_field(\"Course description\", f.text_area(:description)) %>\n+  <%= bs_labeled_field(\"Material URL\", f.text_field(:material_url)) %>\n+  <%= bs_labeled_field(\"External scoreboard URL\", custom_points_url_help + f.text_field(:custom_points_url)) %>","path":"app/views/courses/edit.html.erb","position":23,"original_position":23,"commit_id":"00b5ff07515de04dbc974c8e96a499e5d3e2d65f","original_commit_id":"00b5ff07515de04dbc974c8e96a499e5d3e2d65f","user":{"login":"jamox","id":1354151,"avatar_url":"https://avatars.githubusercontent.com/u/1354151?v=3","gravatar_id":"","url":"https://api.github.com/users/jamox","html_url":"https://github.com/jamox","followers_url":"https://api.github.com/users/jamox/followers","following_url":"https://api.github.com/users/jamox/following{/other_user}","gists_url":"https://api.github.com/users/jamox/gists{/gist_id}","starred_url":"https://api.github.com/users/jamox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamox/subscriptions","organizations_url":"https://api.github.com/users/jamox/orgs","repos_url":"https://api.github.com/users/jamox/repos","events_url":"https://api.github.com/users/jamox/events{/privacy}","received_events_url":"https://api.github.com/users/jamox/received_events","type":"User","site_admin":false},"body":"s/custom_points/external_scoreboard/","created_at":"2015-07-15T10:19:16Z","updated_at":"2015-07-15T10:19:16Z","html_url":"https://github.com/testmycode/tmc-server/pull/299#discussion_r34664889","pull_request_url":"https://api.github.com/repos/testmycode/tmc-server/pulls/299","_links":{"self":{"href":"https://api.github.com/repos/testmycode/tmc-server/pulls/comments/34664889"},"html":{"href":"https://github.com/testmycode/tmc-server/pull/299#discussion_r34664889"},"pull_request":{"href":"https://api.github.com/repos/testmycode/tmc-server/pulls/299"}}},"pull_request":{"url":"https://api.github.com/repos/testmycode/tmc-server/pulls/299","id":39115828,"html_url":"https://github.com/testmycode/tmc-server/pull/299","diff_url":"https://github.com/testmycode/tmc-server/pull/299.diff","patch_url":"https://github.com/testmycode/tmc-server/pull/299.patch","issue_url":"https://api.github.com/repos/testmycode/tmc-server/issues/299","number":299,"state":"open","locked":false,"title":"Course can have external custom points url","user":{"login":"jsopakar","id":5793995,"avatar_url":"https://avatars.githubusercontent.com/u/5793995?v=3","gravatar_id":"","url":"https://api.github.com/users/jsopakar","html_url":"https://github.com/jsopakar","followers_url":"https://api.github.com/users/jsopakar/followers","following_url":"https://api.github.com/users/jsopakar/following{/other_user}","gists_url":"https://api.github.com/users/jsopakar/gists{/gist_id}","starred_url":"https://api.github.com/users/jsopakar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsopakar/subscriptions","organizations_url":"https://api.github.com/users/jsopakar/orgs","repos_url":"https://api.github.com/users/jsopakar/repos","events_url":"https://api.github.com/users/jsopakar/events{/privacy}","received_events_url":"https://api.github.com/users/jsopakar/received_events","type":"User","site_admin":false},"body":"Support for having teacher's configured custom external points url. By default, show tmc own points page, but if custom url is set, show it instead.","created_at":"2015-07-02T19:09:37Z","updated_at":"2015-07-15T10:19:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0b6068259e51ae4e365a072375d7f381e7f021b9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/testmycode/tmc-server/pulls/299/commits","review_comments_url":"https://api.github.com/repos/testmycode/tmc-server/pulls/299/comments","review_comment_url":"https://api.github.com/repos/testmycode/tmc-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/testmycode/tmc-server/issues/299/comments","statuses_url":"https://api.github.com/repos/testmycode/tmc-server/statuses/00b5ff07515de04dbc974c8e96a499e5d3e2d65f","head":{"label":"TMC-teacher-tools:custom-course-points-url","ref":"custom-course-points-url","sha":"00b5ff07515de04dbc974c8e96a499e5d3e2d65f","user":{"login":"TMC-teacher-tools","id":12294621,"avatar_url":"https://avatars.githubusercontent.com/u/12294621?v=3","gravatar_id":"","url":"https://api.github.com/users/TMC-teacher-tools","html_url":"https://github.com/TMC-teacher-tools","followers_url":"https://api.github.com/users/TMC-teacher-tools/followers","following_url":"https://api.github.com/users/TMC-teacher-tools/following{/other_user}","gists_url":"https://api.github.com/users/TMC-teacher-tools/gists{/gist_id}","starred_url":"https://api.github.com/users/TMC-teacher-tools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TMC-teacher-tools/subscriptions","organizations_url":"https://api.github.com/users/TMC-teacher-tools/orgs","repos_url":"https://api.github.com/users/TMC-teacher-tools/repos","events_url":"https://api.github.com/users/TMC-teacher-tools/events{/privacy}","received_events_url":"https://api.github.com/users/TMC-teacher-tools/received_events","type":"Organization","site_admin":false},"repo":{"id":35215878,"name":"tmc-server","full_name":"TMC-teacher-tools/tmc-server","owner":{"login":"TMC-teacher-tools","id":12294621,"avatar_url":"https://avatars.githubusercontent.com/u/12294621?v=3","gravatar_id":"","url":"https://api.github.com/users/TMC-teacher-tools","html_url":"https://github.com/TMC-teacher-tools","followers_url":"https://api.github.com/users/TMC-teacher-tools/followers","following_url":"https://api.github.com/users/TMC-teacher-tools/following{/other_user}","gists_url":"https://api.github.com/users/TMC-teacher-tools/gists{/gist_id}","starred_url":"https://api.github.com/users/TMC-teacher-tools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TMC-teacher-tools/subscriptions","organizations_url":"https://api.github.com/users/TMC-teacher-tools/orgs","repos_url":"https://api.github.com/users/TMC-teacher-tools/repos","events_url":"https://api.github.com/users/TMC-teacher-tools/events{/privacy}","received_events_url":"https://api.github.com/users/TMC-teacher-tools/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TMC-teacher-tools/tmc-server","description":"Test My Code server","fork":true,"url":"https://api.github.com/repos/TMC-teacher-tools/tmc-server","forks_url":"https://api.github.com/repos/TMC-teacher-tools/tmc-server/forks","keys_url":"https://api.github.com/repos/TMC-teacher-tools/tmc-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TMC-teacher-tools/tmc-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TMC-teacher-tools/tmc-server/teams","hooks_url":"https://api.github.com/repos/TMC-teacher-tools/tmc-server/hooks","issue_events_url":"https://api.github.com/repos/TMC-teacher-tools/tmc-server/issues/events{/number}","events_url":"https://api.github.com/repos/TMC-teacher-tools/tmc-server/events","assignees_url":"https://api.github.com/repos/TMC-teacher-tools/tmc-server/assignees{/user}","branches_url":"https://api.github.com/repos/TMC-teacher-tools/tmc-server/branches{/branch}","tags_url":"https://api.github.com/repos/TMC-teacher-tools/tmc-server/tags","blobs_url":"https://api.github.com/repos/TMC-teacher-tools/tmc-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TMC-teacher-tools/tmc-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TMC-teacher-tools/tmc-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/TMC-teacher-tools/tmc-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TMC-teacher-tools/tmc-server/statuses/{sha}","languages_url":"https://api.github.com/repos/TMC-teacher-tools/tmc-server/languages","stargazers_url":"https://api.github.com/repos/TMC-teacher-tools/tmc-server/stargazers","contributors_url":"https://api.github.com/repos/TMC-teacher-tools/tmc-server/contributors","subscribers_url":"https://api.github.com/repos/TMC-teacher-tools/tmc-server/subscribers","subscription_url":"https://api.github.com/repos/TMC-teacher-tools/tmc-server/subscription","commits_url":"https://api.github.com/repos/TMC-teacher-tools/tmc-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/TMC-teacher-tools/tmc-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/TMC-teacher-tools/tmc-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/TMC-teacher-tools/tmc-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/TMC-teacher-tools/tmc-server/contents/{+path}","compare_url":"https://api.github.com/repos/TMC-teacher-tools/tmc-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TMC-teacher-tools/tmc-server/merges","archive_url":"https://api.github.com/repos/TMC-teacher-tools/tmc-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TMC-teacher-tools/tmc-server/downloads","issues_url":"https://api.github.com/repos/TMC-teacher-tools/tmc-server/issues{/number}","pulls_url":"https://api.github.com/repos/TMC-teacher-tools/tmc-server/pulls{/number}","milestones_url":"https://api.github.com/repos/TMC-teacher-tools/tmc-server/milestones{/number}","notifications_url":"https://api.github.com/repos/TMC-teacher-tools/tmc-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TMC-teacher-tools/tmc-server/labels{/name}","releases_url":"https://api.github.com/repos/TMC-teacher-tools/tmc-server/releases{/id}","created_at":"2015-05-07T11:19:15Z","updated_at":"2015-06-05T09:58:19Z","pushed_at":"2015-07-15T07:07:28Z","git_url":"git://github.com/TMC-teacher-tools/tmc-server.git","ssh_url":"git@github.com:TMC-teacher-tools/tmc-server.git","clone_url":"https://github.com/TMC-teacher-tools/tmc-server.git","svn_url":"https://github.com/TMC-teacher-tools/tmc-server","homepage":"","size":8197,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":39,"forks":3,"open_issues":39,"watchers":1,"default_branch":"master"}},"base":{"label":"testmycode:tmc-teacher-tools","ref":"tmc-teacher-tools","sha":"6ba3bb9a3893010b01a0131d9419f99a9d2044fe","user":{"login":"testmycode","id":893468,"avatar_url":"https://avatars.githubusercontent.com/u/893468?v=3","gravatar_id":"","url":"https://api.github.com/users/testmycode","html_url":"https://github.com/testmycode","followers_url":"https://api.github.com/users/testmycode/followers","following_url":"https://api.github.com/users/testmycode/following{/other_user}","gists_url":"https://api.github.com/users/testmycode/gists{/gist_id}","starred_url":"https://api.github.com/users/testmycode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/testmycode/subscriptions","organizations_url":"https://api.github.com/users/testmycode/orgs","repos_url":"https://api.github.com/users/testmycode/repos","events_url":"https://api.github.com/users/testmycode/events{/privacy}","received_events_url":"https://api.github.com/users/testmycode/received_events","type":"Organization","site_admin":false},"repo":{"id":1995270,"name":"tmc-server","full_name":"testmycode/tmc-server","owner":{"login":"testmycode","id":893468,"avatar_url":"https://avatars.githubusercontent.com/u/893468?v=3","gravatar_id":"","url":"https://api.github.com/users/testmycode","html_url":"https://github.com/testmycode","followers_url":"https://api.github.com/users/testmycode/followers","following_url":"https://api.github.com/users/testmycode/following{/other_user}","gists_url":"https://api.github.com/users/testmycode/gists{/gist_id}","starred_url":"https://api.github.com/users/testmycode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/testmycode/subscriptions","organizations_url":"https://api.github.com/users/testmycode/orgs","repos_url":"https://api.github.com/users/testmycode/repos","events_url":"https://api.github.com/users/testmycode/events{/privacy}","received_events_url":"https://api.github.com/users/testmycode/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/testmycode/tmc-server","description":"Test My Code server","fork":false,"url":"https://api.github.com/repos/testmycode/tmc-server","forks_url":"https://api.github.com/repos/testmycode/tmc-server/forks","keys_url":"https://api.github.com/repos/testmycode/tmc-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/testmycode/tmc-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/testmycode/tmc-server/teams","hooks_url":"https://api.github.com/repos/testmycode/tmc-server/hooks","issue_events_url":"https://api.github.com/repos/testmycode/tmc-server/issues/events{/number}","events_url":"https://api.github.com/repos/testmycode/tmc-server/events","assignees_url":"https://api.github.com/repos/testmycode/tmc-server/assignees{/user}","branches_url":"https://api.github.com/repos/testmycode/tmc-server/branches{/branch}","tags_url":"https://api.github.com/repos/testmycode/tmc-server/tags","blobs_url":"https://api.github.com/repos/testmycode/tmc-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/testmycode/tmc-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/testmycode/tmc-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/testmycode/tmc-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/testmycode/tmc-server/statuses/{sha}","languages_url":"https://api.github.com/repos/testmycode/tmc-server/languages","stargazers_url":"https://api.github.com/repos/testmycode/tmc-server/stargazers","contributors_url":"https://api.github.com/repos/testmycode/tmc-server/contributors","subscribers_url":"https://api.github.com/repos/testmycode/tmc-server/subscribers","subscription_url":"https://api.github.com/repos/testmycode/tmc-server/subscription","commits_url":"https://api.github.com/repos/testmycode/tmc-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/testmycode/tmc-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/testmycode/tmc-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/testmycode/tmc-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/testmycode/tmc-server/contents/{+path}","compare_url":"https://api.github.com/repos/testmycode/tmc-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/testmycode/tmc-server/merges","archive_url":"https://api.github.com/repos/testmycode/tmc-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/testmycode/tmc-server/downloads","issues_url":"https://api.github.com/repos/testmycode/tmc-server/issues{/number}","pulls_url":"https://api.github.com/repos/testmycode/tmc-server/pulls{/number}","milestones_url":"https://api.github.com/repos/testmycode/tmc-server/milestones{/number}","notifications_url":"https://api.github.com/repos/testmycode/tmc-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/testmycode/tmc-server/labels{/name}","releases_url":"https://api.github.com/repos/testmycode/tmc-server/releases{/id}","created_at":"2011-07-04T12:29:36Z","updated_at":"2015-07-13T11:18:45Z","pushed_at":"2015-07-15T10:13:43Z","git_url":"git://github.com/testmycode/tmc-server.git","ssh_url":"git@github.com:testmycode/tmc-server.git","clone_url":"https://github.com/testmycode/tmc-server.git","svn_url":"https://github.com/testmycode/tmc-server","homepage":"","size":9230,"stargazers_count":11,"watchers_count":11,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":95,"forks":14,"open_issues":95,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/testmycode/tmc-server/pulls/299"},"html":{"href":"https://github.com/testmycode/tmc-server/pull/299"},"issue":{"href":"https://api.github.com/repos/testmycode/tmc-server/issues/299"},"comments":{"href":"https://api.github.com/repos/testmycode/tmc-server/issues/299/comments"},"review_comments":{"href":"https://api.github.com/repos/testmycode/tmc-server/pulls/299/comments"},"review_comment":{"href":"https://api.github.com/repos/testmycode/tmc-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/testmycode/tmc-server/pulls/299/commits"},"statuses":{"href":"https://api.github.com/repos/testmycode/tmc-server/statuses/00b5ff07515de04dbc974c8e96a499e5d3e2d65f"}}}}