{"action":"created","comment":{"url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/comments/32835786","id":32835786,"diff_hunk":"@@ -115,9 +115,32 @@ angular.module('OpenSlidesApp.agenda.site', ['OpenSlidesApp.agenda'])\n     };\n })\n \n-.controller('ItemDetailCtrl', function($scope, Agenda, User, item) {\n+.controller('ItemDetailCtrl', function($scope, $http, Agenda, User, item) {\n     Agenda.bindOne(item.id, $scope, 'item');\n     User.bindAll({}, $scope, 'users');\n+    $scope.speaker = {};\n+\n+    // close/open list of speakers\n+    $scope.closeList = function (item_id, bool) {\n+        item.speaker_list_closed = bool;\n+        Agenda.save(item);\n+    };\n+    // add user to list of speakers\n+    $scope.addSpeaker = function (item_id, user_id) {\n+        $http.post('/rest/agenda/item/'+item_id+'/manage_speaker/', {'user': user_id})\n+            .success(function(data){\n+                $scope.alert.show = false;\n+            })\n+            .error(function(data){\n+                $scope.alert = { type: 'danger', msg: data.detail, show: true };\n+            });\n+    };\n+    // delete speaker(!) from list of speakers\n+    $scope.removeSpeaker = function (item_id, speaker_id) {\n+        $http.delete('/rest/agenda/item/'+item_id+'/manage_speaker/',","path":"openslides/agenda/static/js/agenda/agenda.js","position":27,"original_position":27,"commit_id":"b3ee1ea082cf001a3cfadac93833d4fd4df0f034","original_commit_id":"b3ee1ea082cf001a3cfadac93833d4fd4df0f034","user":{"login":"emanuelschuetze","id":2075427,"avatar_url":"https://avatars.githubusercontent.com/u/2075427?v=3","gravatar_id":"","url":"https://api.github.com/users/emanuelschuetze","html_url":"https://github.com/emanuelschuetze","followers_url":"https://api.github.com/users/emanuelschuetze/followers","following_url":"https://api.github.com/users/emanuelschuetze/following{/other_user}","gists_url":"https://api.github.com/users/emanuelschuetze/gists{/gist_id}","starred_url":"https://api.github.com/users/emanuelschuetze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emanuelschuetze/subscriptions","organizations_url":"https://api.github.com/users/emanuelschuetze/orgs","repos_url":"https://api.github.com/users/emanuelschuetze/repos","events_url":"https://api.github.com/users/emanuelschuetze/events{/privacy}","received_events_url":"https://api.github.com/users/emanuelschuetze/received_events","type":"User","site_admin":false},"body":"done","created_at":"2015-06-19T14:48:03Z","updated_at":"2015-06-19T14:48:03Z","html_url":"https://github.com/OpenSlides/OpenSlides/pull/1555#discussion_r32835786","pull_request_url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1555","_links":{"self":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/comments/32835786"},"html":{"href":"https://github.com/OpenSlides/OpenSlides/pull/1555#discussion_r32835786"},"pull_request":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1555"}}},"pull_request":{"url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1555","id":38056547,"html_url":"https://github.com/OpenSlides/OpenSlides/pull/1555","diff_url":"https://github.com/OpenSlides/OpenSlides/pull/1555.diff","patch_url":"https://github.com/OpenSlides/OpenSlides/pull/1555.patch","issue_url":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/1555","number":1555,"state":"open","locked":false,"title":"List of speakers with angularjs","user":{"login":"emanuelschuetze","id":2075427,"avatar_url":"https://avatars.githubusercontent.com/u/2075427?v=3","gravatar_id":"","url":"https://api.github.com/users/emanuelschuetze","html_url":"https://github.com/emanuelschuetze","followers_url":"https://api.github.com/users/emanuelschuetze/followers","following_url":"https://api.github.com/users/emanuelschuetze/following{/other_user}","gists_url":"https://api.github.com/users/emanuelschuetze/gists{/gist_id}","starred_url":"https://api.github.com/users/emanuelschuetze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emanuelschuetze/subscriptions","organizations_url":"https://api.github.com/users/emanuelschuetze/orgs","repos_url":"https://api.github.com/users/emanuelschuetze/repos","events_url":"https://api.github.com/users/emanuelschuetze/events{/privacy}","received_events_url":"https://api.github.com/users/emanuelschuetze/received_events","type":"User","site_admin":false},"body":"- Add/remove user to/from list\r\n- Open/close list","created_at":"2015-06-18T21:44:24Z","updated_at":"2015-06-19T14:48:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4f1bfbc1c25490a9e156a993cfa649810ef4cec1","assignee":{"login":"emanuelschuetze","id":2075427,"avatar_url":"https://avatars.githubusercontent.com/u/2075427?v=3","gravatar_id":"","url":"https://api.github.com/users/emanuelschuetze","html_url":"https://github.com/emanuelschuetze","followers_url":"https://api.github.com/users/emanuelschuetze/followers","following_url":"https://api.github.com/users/emanuelschuetze/following{/other_user}","gists_url":"https://api.github.com/users/emanuelschuetze/gists{/gist_id}","starred_url":"https://api.github.com/users/emanuelschuetze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emanuelschuetze/subscriptions","organizations_url":"https://api.github.com/users/emanuelschuetze/orgs","repos_url":"https://api.github.com/users/emanuelschuetze/repos","events_url":"https://api.github.com/users/emanuelschuetze/events{/privacy}","received_events_url":"https://api.github.com/users/emanuelschuetze/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/OpenSlides/OpenSlides/milestones/17","html_url":"https://github.com/OpenSlides/OpenSlides/milestones/2.0","labels_url":"https://api.github.com/repos/OpenSlides/OpenSlides/milestones/17/labels","id":720870,"number":17,"title":"2.0","description":"We think we are ready not before May 2015.","creator":{"login":"normanjaeckel","id":2073844,"avatar_url":"https://avatars.githubusercontent.com/u/2073844?v=3","gravatar_id":"","url":"https://api.github.com/users/normanjaeckel","html_url":"https://github.com/normanjaeckel","followers_url":"https://api.github.com/users/normanjaeckel/followers","following_url":"https://api.github.com/users/normanjaeckel/following{/other_user}","gists_url":"https://api.github.com/users/normanjaeckel/gists{/gist_id}","starred_url":"https://api.github.com/users/normanjaeckel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/normanjaeckel/subscriptions","organizations_url":"https://api.github.com/users/normanjaeckel/orgs","repos_url":"https://api.github.com/users/normanjaeckel/repos","events_url":"https://api.github.com/users/normanjaeckel/events{/privacy}","received_events_url":"https://api.github.com/users/normanjaeckel/received_events","type":"User","site_admin":false},"open_issues":69,"closed_issues":126,"state":"open","created_at":"2014-07-14T20:36:14Z","updated_at":"2015-06-19T11:37:18Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1555/commits","review_comments_url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1555/comments","review_comment_url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/1555/comments","statuses_url":"https://api.github.com/repos/OpenSlides/OpenSlides/statuses/b3ee1ea082cf001a3cfadac93833d4fd4df0f034","head":{"label":"emanuelschuetze:speakers","ref":"speakers","sha":"b3ee1ea082cf001a3cfadac93833d4fd4df0f034","user":{"login":"emanuelschuetze","id":2075427,"avatar_url":"https://avatars.githubusercontent.com/u/2075427?v=3","gravatar_id":"","url":"https://api.github.com/users/emanuelschuetze","html_url":"https://github.com/emanuelschuetze","followers_url":"https://api.github.com/users/emanuelschuetze/followers","following_url":"https://api.github.com/users/emanuelschuetze/following{/other_user}","gists_url":"https://api.github.com/users/emanuelschuetze/gists{/gist_id}","starred_url":"https://api.github.com/users/emanuelschuetze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emanuelschuetze/subscriptions","organizations_url":"https://api.github.com/users/emanuelschuetze/orgs","repos_url":"https://api.github.com/users/emanuelschuetze/repos","events_url":"https://api.github.com/users/emanuelschuetze/events{/privacy}","received_events_url":"https://api.github.com/users/emanuelschuetze/received_events","type":"User","site_admin":false},"repo":{"id":5255375,"name":"OpenSlides","full_name":"emanuelschuetze/OpenSlides","owner":{"login":"emanuelschuetze","id":2075427,"avatar_url":"https://avatars.githubusercontent.com/u/2075427?v=3","gravatar_id":"","url":"https://api.github.com/users/emanuelschuetze","html_url":"https://github.com/emanuelschuetze","followers_url":"https://api.github.com/users/emanuelschuetze/followers","following_url":"https://api.github.com/users/emanuelschuetze/following{/other_user}","gists_url":"https://api.github.com/users/emanuelschuetze/gists{/gist_id}","starred_url":"https://api.github.com/users/emanuelschuetze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emanuelschuetze/subscriptions","organizations_url":"https://api.github.com/users/emanuelschuetze/orgs","repos_url":"https://api.github.com/users/emanuelschuetze/repos","events_url":"https://api.github.com/users/emanuelschuetze/events{/privacy}","received_events_url":"https://api.github.com/users/emanuelschuetze/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/emanuelschuetze/OpenSlides","description":"","fork":true,"url":"https://api.github.com/repos/emanuelschuetze/OpenSlides","forks_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/forks","keys_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/keys{/key_id}","collaborators_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/teams","hooks_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/hooks","issue_events_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/issues/events{/number}","events_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/events","assignees_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/assignees{/user}","branches_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/branches{/branch}","tags_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/tags","blobs_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/git/refs{/sha}","trees_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/git/trees{/sha}","statuses_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/statuses/{sha}","languages_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/languages","stargazers_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/stargazers","contributors_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/contributors","subscribers_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/subscribers","subscription_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/subscription","commits_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/commits{/sha}","git_commits_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/git/commits{/sha}","comments_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/comments{/number}","issue_comment_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/issues/comments{/number}","contents_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/contents/{+path}","compare_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/compare/{base}...{head}","merges_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/merges","archive_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/downloads","issues_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/issues{/number}","pulls_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/pulls{/number}","milestones_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/milestones{/number}","notifications_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/labels{/name}","releases_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/releases{/id}","created_at":"2012-08-01T05:33:01Z","updated_at":"2015-03-27T15:37:41Z","pushed_at":"2015-06-19T11:33:36Z","git_url":"git://github.com/emanuelschuetze/OpenSlides.git","ssh_url":"git@github.com:emanuelschuetze/OpenSlides.git","clone_url":"https://github.com/emanuelschuetze/OpenSlides.git","svn_url":"https://github.com/emanuelschuetze/OpenSlides","homepage":null,"size":36903,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"OpenSlides:master","ref":"master","sha":"a0f4506c352386c074366b9fe73d5643b5d59bd1","user":{"login":"OpenSlides","id":2055730,"avatar_url":"https://avatars.githubusercontent.com/u/2055730?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenSlides","html_url":"https://github.com/OpenSlides","followers_url":"https://api.github.com/users/OpenSlides/followers","following_url":"https://api.github.com/users/OpenSlides/following{/other_user}","gists_url":"https://api.github.com/users/OpenSlides/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenSlides/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenSlides/subscriptions","organizations_url":"https://api.github.com/users/OpenSlides/orgs","repos_url":"https://api.github.com/users/OpenSlides/repos","events_url":"https://api.github.com/users/OpenSlides/events{/privacy}","received_events_url":"https://api.github.com/users/OpenSlides/received_events","type":"Organization","site_admin":false},"repo":{"id":5250779,"name":"OpenSlides","full_name":"OpenSlides/OpenSlides","owner":{"login":"OpenSlides","id":2055730,"avatar_url":"https://avatars.githubusercontent.com/u/2055730?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenSlides","html_url":"https://github.com/OpenSlides","followers_url":"https://api.github.com/users/OpenSlides/followers","following_url":"https://api.github.com/users/OpenSlides/following{/other_user}","gists_url":"https://api.github.com/users/OpenSlides/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenSlides/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenSlides/subscriptions","organizations_url":"https://api.github.com/users/OpenSlides/orgs","repos_url":"https://api.github.com/users/OpenSlides/repos","events_url":"https://api.github.com/users/OpenSlides/events{/privacy}","received_events_url":"https://api.github.com/users/OpenSlides/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenSlides/OpenSlides","description":"Presentation and assembly system","fork":false,"url":"https://api.github.com/repos/OpenSlides/OpenSlides","forks_url":"https://api.github.com/repos/OpenSlides/OpenSlides/forks","keys_url":"https://api.github.com/repos/OpenSlides/OpenSlides/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenSlides/OpenSlides/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenSlides/OpenSlides/teams","hooks_url":"https://api.github.com/repos/OpenSlides/OpenSlides/hooks","issue_events_url":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/events{/number}","events_url":"https://api.github.com/repos/OpenSlides/OpenSlides/events","assignees_url":"https://api.github.com/repos/OpenSlides/OpenSlides/assignees{/user}","branches_url":"https://api.github.com/repos/OpenSlides/OpenSlides/branches{/branch}","tags_url":"https://api.github.com/repos/OpenSlides/OpenSlides/tags","blobs_url":"https://api.github.com/repos/OpenSlides/OpenSlides/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenSlides/OpenSlides/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenSlides/OpenSlides/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenSlides/OpenSlides/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenSlides/OpenSlides/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenSlides/OpenSlides/languages","stargazers_url":"https://api.github.com/repos/OpenSlides/OpenSlides/stargazers","contributors_url":"https://api.github.com/repos/OpenSlides/OpenSlides/contributors","subscribers_url":"https://api.github.com/repos/OpenSlides/OpenSlides/subscribers","subscription_url":"https://api.github.com/repos/OpenSlides/OpenSlides/subscription","commits_url":"https://api.github.com/repos/OpenSlides/OpenSlides/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenSlides/OpenSlides/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenSlides/OpenSlides/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenSlides/OpenSlides/contents/{+path}","compare_url":"https://api.github.com/repos/OpenSlides/OpenSlides/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenSlides/OpenSlides/merges","archive_url":"https://api.github.com/repos/OpenSlides/OpenSlides/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenSlides/OpenSlides/downloads","issues_url":"https://api.github.com/repos/OpenSlides/OpenSlides/issues{/number}","pulls_url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenSlides/OpenSlides/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenSlides/OpenSlides/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenSlides/OpenSlides/labels{/name}","releases_url":"https://api.github.com/repos/OpenSlides/OpenSlides/releases{/id}","created_at":"2012-07-31T20:04:39Z","updated_at":"2015-06-18T17:01:07Z","pushed_at":"2015-06-19T11:33:37Z","git_url":"git://github.com/OpenSlides/OpenSlides.git","ssh_url":"git@github.com:OpenSlides/OpenSlides.git","clone_url":"https://github.com/OpenSlides/OpenSlides.git","svn_url":"https://github.com/OpenSlides/OpenSlides","homepage":"http://openslides.org","size":39717,"stargazers_count":66,"watchers_count":66,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":31,"mirror_url":null,"open_issues_count":129,"forks":31,"open_issues":129,"watchers":66,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1555"},"html":{"href":"https://github.com/OpenSlides/OpenSlides/pull/1555"},"issue":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/1555"},"comments":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/1555/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1555/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1555/commits"},"statuses":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/statuses/b3ee1ea082cf001a3cfadac93833d4fd4df0f034"}}}}