{"action":"created","comment":{"url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/pulls/comments/44762953","id":44762953,"diff_hunk":"@@ -36,6 +36,43 @@\n   </div>\n   </div>\n </div>\n+\n+<!-- Modal -->\n+<div class=\"modal fade\" id=\"invalidateAllModal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"invalidateAll\">\n+  <div class=\"modal-dialog\" role=\"document\">\n+    <div class=\"modal-content\">\n+      <div class=\"modal-header\">\n+        <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">&times;</span></button>\n+        <h4 class=\"modal-title\" id=\"myModalLabel\">${_('Invalidate All')}</h4>\n+      </div>\n+      <div class=\"modal-body\">\n+        <p>\n+          ${_(\"This will mark all tasks currently marked as 'done' as invalid. Please use this only if you are sure of what you are doing.\")}\n+        </p>\n+        <div class=\"text-center\">\n+          <div class=\"form-group\">\n+            <textarea id=\"project_invalidate_comment\" name=\"invalidate_all_comment\" class=\"form-control\" placeholder=\"${_('Leave a comment')}\" rows=\"2\"></textarea>\n+\n+          </div>\n+          <div class=\"form-group\">\n+            Please enter the number ${project.id} in the box:\n+            <input id=\"project_invalidate_challenge_id\" />\n+          </div>\n+          <p class=\"errors\">\n+\n+          </p>\n+          <a class=\"btn btn-danger btn-lg btn-invalidate-all\">\n+             <span class=\"glyphicon glyphicon-share-alt\"></span>&nbsp;\n+             ${_('Invalidate all done tasks')}\n+          </a>\n+        </div>\n+      </div>\n+      <div class=\"modal-footer\">\n+        <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Close</button>","path":"osmtm/templates/project.edit.mako","position":36,"original_position":36,"commit_id":"79ba65ab5a953131950d03300ebe54e945bfd274","original_commit_id":"79ba65ab5a953131950d03300ebe54e945bfd274","user":{"login":"pgiraud","id":319774,"avatar_url":"https://avatars.githubusercontent.com/u/319774?v=3","gravatar_id":"","url":"https://api.github.com/users/pgiraud","html_url":"https://github.com/pgiraud","followers_url":"https://api.github.com/users/pgiraud/followers","following_url":"https://api.github.com/users/pgiraud/following{/other_user}","gists_url":"https://api.github.com/users/pgiraud/gists{/gist_id}","starred_url":"https://api.github.com/users/pgiraud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgiraud/subscriptions","organizations_url":"https://api.github.com/users/pgiraud/orgs","repos_url":"https://api.github.com/users/pgiraud/repos","events_url":"https://api.github.com/users/pgiraud/events{/privacy}","received_events_url":"https://api.github.com/users/pgiraud/received_events","type":"User","site_admin":false},"body":"I think that \"Cancel\" is better than \"Close\" here.","created_at":"2015-11-13T09:20:52Z","updated_at":"2015-11-13T09:20:52Z","html_url":"https://github.com/hotosm/osm-tasking-manager2/pull/696#discussion_r44762953","pull_request_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/pulls/696","_links":{"self":{"href":"https://api.github.com/repos/hotosm/osm-tasking-manager2/pulls/comments/44762953"},"html":{"href":"https://github.com/hotosm/osm-tasking-manager2/pull/696#discussion_r44762953"},"pull_request":{"href":"https://api.github.com/repos/hotosm/osm-tasking-manager2/pulls/696"}}},"pull_request":{"url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/pulls/696","id":49674292,"html_url":"https://github.com/hotosm/osm-tasking-manager2/pull/696","diff_url":"https://github.com/hotosm/osm-tasking-manager2/pull/696.diff","patch_url":"https://github.com/hotosm/osm-tasking-manager2/pull/696.patch","issue_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/issues/696","number":696,"state":"open","locked":false,"title":"Invalidate all feature, refs #690","user":{"login":"batpad","id":72280,"avatar_url":"https://avatars.githubusercontent.com/u/72280?v=3","gravatar_id":"","url":"https://api.github.com/users/batpad","html_url":"https://github.com/batpad","followers_url":"https://api.github.com/users/batpad/followers","following_url":"https://api.github.com/users/batpad/following{/other_user}","gists_url":"https://api.github.com/users/batpad/gists{/gist_id}","starred_url":"https://api.github.com/users/batpad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/batpad/subscriptions","organizations_url":"https://api.github.com/users/batpad/orgs","repos_url":"https://api.github.com/users/batpad/repos","events_url":"https://api.github.com/users/batpad/events{/privacy}","received_events_url":"https://api.github.com/users/batpad/received_events","type":"User","site_admin":false},"body":"This adds a button in Project Edit / Misc for admins to mark all \"done\" tasks on the project as invalid.\r\n\r\nSee #690 for discussions on the issue.\r\n\r\nPlease let me know if something can be improved. Thank you.","created_at":"2015-11-04T10:58:48Z","updated_at":"2015-11-13T09:20:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"55b7e59fcec5ada6f875c4804ef0af6150d35800","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/pulls/696/commits","review_comments_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/pulls/696/comments","review_comment_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/issues/696/comments","statuses_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/statuses/79ba65ab5a953131950d03300ebe54e945bfd274","head":{"label":"osm-in:invalidate-all","ref":"invalidate-all","sha":"79ba65ab5a953131950d03300ebe54e945bfd274","user":{"login":"osm-in","id":14997582,"avatar_url":"https://avatars.githubusercontent.com/u/14997582?v=3","gravatar_id":"","url":"https://api.github.com/users/osm-in","html_url":"https://github.com/osm-in","followers_url":"https://api.github.com/users/osm-in/followers","following_url":"https://api.github.com/users/osm-in/following{/other_user}","gists_url":"https://api.github.com/users/osm-in/gists{/gist_id}","starred_url":"https://api.github.com/users/osm-in/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osm-in/subscriptions","organizations_url":"https://api.github.com/users/osm-in/orgs","repos_url":"https://api.github.com/users/osm-in/repos","events_url":"https://api.github.com/users/osm-in/events{/privacy}","received_events_url":"https://api.github.com/users/osm-in/received_events","type":"Organization","site_admin":false},"repo":{"id":43865682,"name":"osm-tasking-manager2","full_name":"osm-in/osm-tasking-manager2","owner":{"login":"osm-in","id":14997582,"avatar_url":"https://avatars.githubusercontent.com/u/14997582?v=3","gravatar_id":"","url":"https://api.github.com/users/osm-in","html_url":"https://github.com/osm-in","followers_url":"https://api.github.com/users/osm-in/followers","following_url":"https://api.github.com/users/osm-in/following{/other_user}","gists_url":"https://api.github.com/users/osm-in/gists{/gist_id}","starred_url":"https://api.github.com/users/osm-in/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osm-in/subscriptions","organizations_url":"https://api.github.com/users/osm-in/orgs","repos_url":"https://api.github.com/users/osm-in/repos","events_url":"https://api.github.com/users/osm-in/events{/privacy}","received_events_url":"https://api.github.com/users/osm-in/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/osm-in/osm-tasking-manager2","description":"2.0 version of the Tasking Manager","fork":true,"url":"https://api.github.com/repos/osm-in/osm-tasking-manager2","forks_url":"https://api.github.com/repos/osm-in/osm-tasking-manager2/forks","keys_url":"https://api.github.com/repos/osm-in/osm-tasking-manager2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/osm-in/osm-tasking-manager2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/osm-in/osm-tasking-manager2/teams","hooks_url":"https://api.github.com/repos/osm-in/osm-tasking-manager2/hooks","issue_events_url":"https://api.github.com/repos/osm-in/osm-tasking-manager2/issues/events{/number}","events_url":"https://api.github.com/repos/osm-in/osm-tasking-manager2/events","assignees_url":"https://api.github.com/repos/osm-in/osm-tasking-manager2/assignees{/user}","branches_url":"https://api.github.com/repos/osm-in/osm-tasking-manager2/branches{/branch}","tags_url":"https://api.github.com/repos/osm-in/osm-tasking-manager2/tags","blobs_url":"https://api.github.com/repos/osm-in/osm-tasking-manager2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/osm-in/osm-tasking-manager2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/osm-in/osm-tasking-manager2/git/refs{/sha}","trees_url":"https://api.github.com/repos/osm-in/osm-tasking-manager2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/osm-in/osm-tasking-manager2/statuses/{sha}","languages_url":"https://api.github.com/repos/osm-in/osm-tasking-manager2/languages","stargazers_url":"https://api.github.com/repos/osm-in/osm-tasking-manager2/stargazers","contributors_url":"https://api.github.com/repos/osm-in/osm-tasking-manager2/contributors","subscribers_url":"https://api.github.com/repos/osm-in/osm-tasking-manager2/subscribers","subscription_url":"https://api.github.com/repos/osm-in/osm-tasking-manager2/subscription","commits_url":"https://api.github.com/repos/osm-in/osm-tasking-manager2/commits{/sha}","git_commits_url":"https://api.github.com/repos/osm-in/osm-tasking-manager2/git/commits{/sha}","comments_url":"https://api.github.com/repos/osm-in/osm-tasking-manager2/comments{/number}","issue_comment_url":"https://api.github.com/repos/osm-in/osm-tasking-manager2/issues/comments{/number}","contents_url":"https://api.github.com/repos/osm-in/osm-tasking-manager2/contents/{+path}","compare_url":"https://api.github.com/repos/osm-in/osm-tasking-manager2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/osm-in/osm-tasking-manager2/merges","archive_url":"https://api.github.com/repos/osm-in/osm-tasking-manager2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/osm-in/osm-tasking-manager2/downloads","issues_url":"https://api.github.com/repos/osm-in/osm-tasking-manager2/issues{/number}","pulls_url":"https://api.github.com/repos/osm-in/osm-tasking-manager2/pulls{/number}","milestones_url":"https://api.github.com/repos/osm-in/osm-tasking-manager2/milestones{/number}","notifications_url":"https://api.github.com/repos/osm-in/osm-tasking-manager2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/osm-in/osm-tasking-manager2/labels{/name}","releases_url":"https://api.github.com/repos/osm-in/osm-tasking-manager2/releases{/id}","created_at":"2015-10-08T05:51:08Z","updated_at":"2015-10-14T10:55:18Z","pushed_at":"2015-11-13T04:35:20Z","git_url":"git://github.com/osm-in/osm-tasking-manager2.git","ssh_url":"git@github.com:osm-in/osm-tasking-manager2.git","clone_url":"https://github.com/osm-in/osm-tasking-manager2.git","svn_url":"https://github.com/osm-in/osm-tasking-manager2","homepage":"","size":3030,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"hotosm:master","ref":"master","sha":"9f1dfbdc41db3b2028f82aacb4c494d1a9edeb56","user":{"login":"hotosm","id":458752,"avatar_url":"https://avatars.githubusercontent.com/u/458752?v=3","gravatar_id":"","url":"https://api.github.com/users/hotosm","html_url":"https://github.com/hotosm","followers_url":"https://api.github.com/users/hotosm/followers","following_url":"https://api.github.com/users/hotosm/following{/other_user}","gists_url":"https://api.github.com/users/hotosm/gists{/gist_id}","starred_url":"https://api.github.com/users/hotosm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hotosm/subscriptions","organizations_url":"https://api.github.com/users/hotosm/orgs","repos_url":"https://api.github.com/users/hotosm/repos","events_url":"https://api.github.com/users/hotosm/events{/privacy}","received_events_url":"https://api.github.com/users/hotosm/received_events","type":"Organization","site_admin":false},"repo":{"id":7973671,"name":"osm-tasking-manager2","full_name":"hotosm/osm-tasking-manager2","owner":{"login":"hotosm","id":458752,"avatar_url":"https://avatars.githubusercontent.com/u/458752?v=3","gravatar_id":"","url":"https://api.github.com/users/hotosm","html_url":"https://github.com/hotosm","followers_url":"https://api.github.com/users/hotosm/followers","following_url":"https://api.github.com/users/hotosm/following{/other_user}","gists_url":"https://api.github.com/users/hotosm/gists{/gist_id}","starred_url":"https://api.github.com/users/hotosm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hotosm/subscriptions","organizations_url":"https://api.github.com/users/hotosm/orgs","repos_url":"https://api.github.com/users/hotosm/repos","events_url":"https://api.github.com/users/hotosm/events{/privacy}","received_events_url":"https://api.github.com/users/hotosm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hotosm/osm-tasking-manager2","description":"2.0 version of the Tasking Manager","fork":false,"url":"https://api.github.com/repos/hotosm/osm-tasking-manager2","forks_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/forks","keys_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/teams","hooks_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/hooks","issue_events_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/issues/events{/number}","events_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/events","assignees_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/assignees{/user}","branches_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/branches{/branch}","tags_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/tags","blobs_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/git/refs{/sha}","trees_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/statuses/{sha}","languages_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/languages","stargazers_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/stargazers","contributors_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/contributors","subscribers_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/subscribers","subscription_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/subscription","commits_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/commits{/sha}","git_commits_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/git/commits{/sha}","comments_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/comments{/number}","issue_comment_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/issues/comments{/number}","contents_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/contents/{+path}","compare_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/merges","archive_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/downloads","issues_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/issues{/number}","pulls_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/pulls{/number}","milestones_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/milestones{/number}","notifications_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/labels{/name}","releases_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/releases{/id}","created_at":"2013-02-02T08:46:10Z","updated_at":"2015-11-02T23:37:03Z","pushed_at":"2015-11-13T04:35:20Z","git_url":"git://github.com/hotosm/osm-tasking-manager2.git","ssh_url":"git@github.com:hotosm/osm-tasking-manager2.git","clone_url":"https://github.com/hotosm/osm-tasking-manager2.git","svn_url":"https://github.com/hotosm/osm-tasking-manager2","homepage":"","size":8311,"stargazers_count":85,"watchers_count":85,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":64,"mirror_url":null,"open_issues_count":191,"forks":64,"open_issues":191,"watchers":85,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hotosm/osm-tasking-manager2/pulls/696"},"html":{"href":"https://github.com/hotosm/osm-tasking-manager2/pull/696"},"issue":{"href":"https://api.github.com/repos/hotosm/osm-tasking-manager2/issues/696"},"comments":{"href":"https://api.github.com/repos/hotosm/osm-tasking-manager2/issues/696/comments"},"review_comments":{"href":"https://api.github.com/repos/hotosm/osm-tasking-manager2/pulls/696/comments"},"review_comment":{"href":"https://api.github.com/repos/hotosm/osm-tasking-manager2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hotosm/osm-tasking-manager2/pulls/696/commits"},"statuses":{"href":"https://api.github.com/repos/hotosm/osm-tasking-manager2/statuses/79ba65ab5a953131950d03300ebe54e945bfd274"}}}}