{"action":"created","comment":{"url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/comments/38819235","id":38819235,"diff_hunk":"@@ -23,72 +23,87 @@ <h1 translate>Agenda</h1>\n   </a>\n </div>\n \n-<div class=\"row form-group\">\n+\n+<div class=\"row\">\n   <div class=\"col-sm-8\">\n-    <!-- project agenda -->\n-    <a os-perms=\"core.can_manage_projector\" class=\"btn btn-default btn-sm\"\n-        ng-click=\"projectAgenda()\"\n-        ng-class=\"{ 'btn-primary': isAgendaProjected() }\">\n-      <i class=\"fa fa-video-camera\"></i>\n-      <translate>Project agenda</translate>\n-    </a>\n+    <form class=\"form-inline\">\n+      <!-- delete mode -->\n+      <div os-perms-lite=\"agenda.can_manage\" class=\"form-group\">\n+        <label for=\"deleteSwitcher\" translate>Delete mode</label>\n+        <switch id=\"deleteSwitcher\" ng-model=\"isDeleteMode\" ng-change=\"uncheckAll()\"\n+            on=\"{{'On'|translate}}\" off=\"{{'Off'|translate}}\"\n+            class=\"green wide form-control\">\n+        </switch>\n+      </div>\n+      <!-- project agenda -->\n+      <div class=\"form-group\">\n+        <a ng-if=\"!isDeleteMode\" os-perms-lite=\"core.can_manage_projector\" class=\"btn btn-default btn-sm form-control\"\n+            ng-click=\"projectAgenda()\"\n+            ng-class=\"{ 'btn-primary': isAgendaProjected() }\">\n+          <i class=\"fa fa-video-camera\"></i>\n+          <translate>Project agenda</translate>\n+        </a>\n+        <a ng-if=\"isDeleteMode && selection.length > 0\" os-perms-lite=\"agenda.can_manage\"\n+            class=\"btn btn-primary btn-sm form-control\" ng-click=\"delete()\">\n+          <i class=\"fa fa-trash fa-lg\"></i>\n+          <translate>Delete selected items</translate>\n+        </a>\n+      </div>\n+    </form>\n   </div>\n   <div class=\"col-sm-4\">\n+    <div class=\"input-group\">\n+    <div class=\"input-group-addon\"><i class=\"fa fa-filter\"></i></div>\n     <input type=\"text\" os-focus-me ng-model=\"filter.search\" class=\"form-control\"\n         placeholder=\"{{ 'Filter' | translate}}\">\n+    </div>\n   </div>\n </div>\n \n <i>{{ items.length }} {{ \"items\" | translate }}</i>\n+<i ng-if=\"selection.length > 0\">, {{ selection.length }} {{ \"selected\" | translate }}</i>\n <table class=\"table table-striped table-bordered table-hover\">\n   <thead>\n     <tr>\n-      <th class=\"minimum\">\n-        <translate>Closed</translate>\n+      <!-- projector column -->\n+      <th ng-if=\"!isDeleteMode\" os-perms-lite=\"core.can_manage_projector\" class=\"firstColumn\">\n+      <!-- delete selection column -->\n+      <th ng-show=\"isDeleteMode\" os-perms-lite=\"agenda.can_manage\" class=\"firstColumn deleteColumn\">\n+        <input type=\"checkbox\" ng-model=\"selectedAll\" ng-click=\"checkAll(); $event.stopPropagation();\">\n+      <!-- agenda item column -->\n       <th>\n         <translate>Agenda item</translate>\n       <th os-perms=\"agenda.can_manage\">\n         <translate>Duration</translate>\n-      <th os-perms=\"agenda.can_manage core.can_manage_projector\" class=\"minimum\">\n-        <translate>Actions</translate>\n+      <th class=\"minimum\">\n+        <translate>Done</translate>\n   <tbody>\n     <tr ng-repeat=\"node in flattenedTree | filter: filter.search\"\n-        ng-class=\"{ 'activeline': (items | filter: {id: node.id})[0].isProjected() }\">\n-      <td><input type=\"checkbox\" ng-model=\"(items | filter: {id: node.id})[0].closed\" ng-click=\"save(node.id)\">\n+        ng-click=\"openDetail(node.id)\"\n+        ng-class=\"{ 'activeline': (items | filter: {id: node.id})[0].isProjected() }\"\n+        class=\"pointer\">\n+      <!-- projector column -->\n+      <td ng-if=\"!isDeleteMode\" os-perms-lite=\"core.can_manage_projector\">","path":"openslides/agenda/static/templates/agenda/item-list.html","position":78,"original_position":78,"commit_id":"e2bd2402decc8426974156f24933652195cdd524","original_commit_id":"e2bd2402decc8426974156f24933652195cdd524","user":{"login":"ostcar","id":977937,"avatar_url":"https://avatars.githubusercontent.com/u/977937?v=3","gravatar_id":"","url":"https://api.github.com/users/ostcar","html_url":"https://github.com/ostcar","followers_url":"https://api.github.com/users/ostcar/followers","following_url":"https://api.github.com/users/ostcar/following{/other_user}","gists_url":"https://api.github.com/users/ostcar/gists{/gist_id}","starred_url":"https://api.github.com/users/ostcar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ostcar/subscriptions","organizations_url":"https://api.github.com/users/ostcar/orgs","repos_url":"https://api.github.com/users/ostcar/repos","events_url":"https://api.github.com/users/ostcar/events{/privacy}","received_events_url":"https://api.github.com/users/ostcar/received_events","type":"User","site_admin":false},"body":"Please use ng-show and os-perms","created_at":"2015-09-06T08:53:44Z","updated_at":"2015-09-06T08:53:44Z","html_url":"https://github.com/OpenSlides/OpenSlides/pull/1619#discussion_r38819235","pull_request_url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1619","_links":{"self":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/comments/38819235"},"html":{"href":"https://github.com/OpenSlides/OpenSlides/pull/1619#discussion_r38819235"},"pull_request":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1619"}}},"pull_request":{"url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1619","id":44290327,"html_url":"https://github.com/OpenSlides/OpenSlides/pull/1619","diff_url":"https://github.com/OpenSlides/OpenSlides/pull/1619.diff","patch_url":"https://github.com/OpenSlides/OpenSlides/pull/1619.patch","issue_url":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/1619","number":1619,"state":"open","locked":false,"title":"Agenda item list: new multiselect delete mode","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":"Remove action column.","created_at":"2015-09-05T21:12:25Z","updated_at":"2015-09-06T08:53:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"735853112e4afdbfa1704ec41624b037c9c835f3","assignee":{"login":"ostcar","id":977937,"avatar_url":"https://avatars.githubusercontent.com/u/977937?v=3","gravatar_id":"","url":"https://api.github.com/users/ostcar","html_url":"https://github.com/ostcar","followers_url":"https://api.github.com/users/ostcar/followers","following_url":"https://api.github.com/users/ostcar/following{/other_user}","gists_url":"https://api.github.com/users/ostcar/gists{/gist_id}","starred_url":"https://api.github.com/users/ostcar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ostcar/subscriptions","organizations_url":"https://api.github.com/users/ostcar/orgs","repos_url":"https://api.github.com/users/ostcar/repos","events_url":"https://api.github.com/users/ostcar/events{/privacy}","received_events_url":"https://api.github.com/users/ostcar/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":43,"closed_issues":208,"state":"open","created_at":"2014-07-14T20:36:14Z","updated_at":"2015-09-06T08:33:14Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1619/commits","review_comments_url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1619/comments","review_comment_url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/1619/comments","statuses_url":"https://api.github.com/repos/OpenSlides/OpenSlides/statuses/e2bd2402decc8426974156f24933652195cdd524","head":{"label":"emanuelschuetze:agenda-template","ref":"agenda-template","sha":"e2bd2402decc8426974156f24933652195cdd524","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-09-05T21:11:42Z","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":37188,"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":"973d3fa653c81af2566fd00a110849bced918a2e","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-07-19T11:09:18Z","pushed_at":"2015-09-06T08:33:15Z","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":40119,"stargazers_count":68,"watchers_count":68,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":31,"mirror_url":null,"open_issues_count":100,"forks":31,"open_issues":100,"watchers":68,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1619"},"html":{"href":"https://github.com/OpenSlides/OpenSlides/pull/1619"},"issue":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/1619"},"comments":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/1619/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1619/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1619/commits"},"statuses":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/statuses/e2bd2402decc8426974156f24933652195cdd524"}}}}