{"action":"created","comment":{"url":"https://api.github.com/repos/mysociety/fixmystreet/pulls/comments/79587429","id":79587429,"diff_hunk":"@@ -8,19 +8,25 @@\n <div class=\"problem-header clearfix\" problem-id=\"[% problem.id %]\">\n \n [% IF c.user.has_permission_to('planned_reports', problem.bodies_str) %]\n-<form method=\"post\" action=\"/my/planned/change\" id=\"planned_form\">\n+<form method=\"post\" action=\"/my/planned/change\" id=\"planned_form\" class=\"hidden-label-target\">\n     <input type=\"hidden\" name=\"id\" value=\"[% problem.id %]\">\n     <input type=\"hidden\" name=\"token\" value=\"[% csrf_token %]\">\n     <input type=\"hidden\" name=\"change\" value=\"[% IF c.user.is_planned_report(problem) %]remove[% ELSE %]add[% END %]\">\n-    <p><input type=\"submit\"\n-        data-remove=\"[% loc('Remove from planned reports') %]\" data-add=\"[% loc('Add to planned reports') %]\"\n-        value=\"\n+    <p><input\n+        type=\"submit\"\n+        id=\"shortlist-report\"\n+        data-label-remove=\"[% loc('Remove from shortlist') %]\"\n+        data-label-add=\"[% loc('Add to shortlist') %]\"\n+        data-value-remove=\"[% loc('Shortlisted') %]\"\n+        data-value-add=\"[% loc('Shortlist') %]\"\n     [%~ IF c.user.is_planned_report(problem) ~%]\n-        [% loc('Remove from planned reports') %]\n+        value=\"[% loc('Shortlisted') %]\"","path":"templates/web/base/report/_main.html","position":21,"original_position":21,"commit_id":"34699c5c827045422e21a73141c19f5604335676","original_commit_id":"34699c5c827045422e21a73141c19f5604335676","user":{"login":"zarino","id":739624,"avatar_url":"https://avatars.githubusercontent.com/u/739624?v=3","gravatar_id":"","url":"https://api.github.com/users/zarino","html_url":"https://github.com/zarino","followers_url":"https://api.github.com/users/zarino/followers","following_url":"https://api.github.com/users/zarino/following{/other_user}","gists_url":"https://api.github.com/users/zarino/gists{/gist_id}","starred_url":"https://api.github.com/users/zarino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zarino/subscriptions","organizations_url":"https://api.github.com/users/zarino/orgs","repos_url":"https://api.github.com/users/zarino/repos","events_url":"https://api.github.com/users/zarino/events{/privacy}","received_events_url":"https://api.github.com/users/zarino/received_events","type":"User","site_admin":false},"body":"> Should shortlisted look pushed in, like the radio segmented controls do, perhaps?\r\n  \r\nOoh that’s an interesting idea!\r\n\r\n> Then also Inspect could perhaps stay visible, also pushed in, when the inspect part is being shown, and clicking it could come out of inspect mode? Though might worry about losing info then I guess.\r\n\r\nWe already have a \"Cancel\" button in the Inspection form, that just links back to `/report/:id`, losing any changes you’ve made in the form. Maybe a pressed-in button labelled \"Inspect\" is a little more dangerous, because it isn't labelled with a danger word.","created_at":"2016-09-20T11:17:26Z","updated_at":"2016-09-20T11:17:26Z","html_url":"https://github.com/mysociety/fixmystreet/pull/1532#discussion_r79587429","pull_request_url":"https://api.github.com/repos/mysociety/fixmystreet/pulls/1532","_links":{"self":{"href":"https://api.github.com/repos/mysociety/fixmystreet/pulls/comments/79587429"},"html":{"href":"https://github.com/mysociety/fixmystreet/pull/1532#discussion_r79587429"},"pull_request":{"href":"https://api.github.com/repos/mysociety/fixmystreet/pulls/1532"}}},"pull_request":{"url":"https://api.github.com/repos/mysociety/fixmystreet/pulls/1532","id":85948821,"html_url":"https://github.com/mysociety/fixmystreet/pull/1532","diff_url":"https://github.com/mysociety/fixmystreet/pull/1532.diff","patch_url":"https://github.com/mysociety/fixmystreet/pull/1532.patch","issue_url":"https://api.github.com/repos/mysociety/fixmystreet/issues/1532","number":1532,"state":"open","locked":false,"title":"Organize report admin actions into single control","user":{"login":"zarino","id":739624,"avatar_url":"https://avatars.githubusercontent.com/u/739624?v=3","gravatar_id":"","url":"https://api.github.com/users/zarino","html_url":"https://github.com/zarino","followers_url":"https://api.github.com/users/zarino/followers","following_url":"https://api.github.com/users/zarino/following{/other_user}","gists_url":"https://api.github.com/users/zarino/gists{/gist_id}","starred_url":"https://api.github.com/users/zarino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zarino/subscriptions","organizations_url":"https://api.github.com/users/zarino/orgs","repos_url":"https://api.github.com/users/zarino/repos","events_url":"https://api.github.com/users/zarino/events{/privacy}","received_events_url":"https://api.github.com/users/zarino/received_events","type":"User","site_admin":false},"body":"Fixes #89.\r\n\r\nAdds a new segmented control, containing the admin actions the current user is permitted to perform (currently any number of the 3 actions: moderation, inspection, and shortlisting).\r\n\r\n![screen shot 2016-09-20 at 11 24 21](https://cloud.githubusercontent.com/assets/739624/18666650/dd0177aa-7f24-11e6-8dbc-700b6b129515.png)\r\n\r\nTested in IE8-10, and modern browsers. And screenreaders.","created_at":"2016-09-20T10:27:13Z","updated_at":"2016-09-20T11:17:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9ecc63508c0b4f444b0587f925a05b0d71d8c734","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mysociety/fixmystreet/pulls/1532/commits","review_comments_url":"https://api.github.com/repos/mysociety/fixmystreet/pulls/1532/comments","review_comment_url":"https://api.github.com/repos/mysociety/fixmystreet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mysociety/fixmystreet/issues/1532/comments","statuses_url":"https://api.github.com/repos/mysociety/fixmystreet/statuses/34699c5c827045422e21a73141c19f5604335676","head":{"label":"mysociety:issues/forcouncils/89-tidy-report-admin-actions","ref":"issues/forcouncils/89-tidy-report-admin-actions","sha":"34699c5c827045422e21a73141c19f5604335676","user":{"login":"mysociety","id":141338,"avatar_url":"https://avatars.githubusercontent.com/u/141338?v=3","gravatar_id":"","url":"https://api.github.com/users/mysociety","html_url":"https://github.com/mysociety","followers_url":"https://api.github.com/users/mysociety/followers","following_url":"https://api.github.com/users/mysociety/following{/other_user}","gists_url":"https://api.github.com/users/mysociety/gists{/gist_id}","starred_url":"https://api.github.com/users/mysociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysociety/subscriptions","organizations_url":"https://api.github.com/users/mysociety/orgs","repos_url":"https://api.github.com/users/mysociety/repos","events_url":"https://api.github.com/users/mysociety/events{/privacy}","received_events_url":"https://api.github.com/users/mysociety/received_events","type":"Organization","site_admin":false},"repo":{"id":487492,"name":"fixmystreet","full_name":"mysociety/fixmystreet","owner":{"login":"mysociety","id":141338,"avatar_url":"https://avatars.githubusercontent.com/u/141338?v=3","gravatar_id":"","url":"https://api.github.com/users/mysociety","html_url":"https://github.com/mysociety","followers_url":"https://api.github.com/users/mysociety/followers","following_url":"https://api.github.com/users/mysociety/following{/other_user}","gists_url":"https://api.github.com/users/mysociety/gists{/gist_id}","starred_url":"https://api.github.com/users/mysociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysociety/subscriptions","organizations_url":"https://api.github.com/users/mysociety/orgs","repos_url":"https://api.github.com/users/mysociety/repos","events_url":"https://api.github.com/users/mysociety/events{/privacy}","received_events_url":"https://api.github.com/users/mysociety/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mysociety/fixmystreet","description":"This is mySociety's popular map-based reporting platform: easy to install in new countries and regions","fork":false,"url":"https://api.github.com/repos/mysociety/fixmystreet","forks_url":"https://api.github.com/repos/mysociety/fixmystreet/forks","keys_url":"https://api.github.com/repos/mysociety/fixmystreet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mysociety/fixmystreet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mysociety/fixmystreet/teams","hooks_url":"https://api.github.com/repos/mysociety/fixmystreet/hooks","issue_events_url":"https://api.github.com/repos/mysociety/fixmystreet/issues/events{/number}","events_url":"https://api.github.com/repos/mysociety/fixmystreet/events","assignees_url":"https://api.github.com/repos/mysociety/fixmystreet/assignees{/user}","branches_url":"https://api.github.com/repos/mysociety/fixmystreet/branches{/branch}","tags_url":"https://api.github.com/repos/mysociety/fixmystreet/tags","blobs_url":"https://api.github.com/repos/mysociety/fixmystreet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mysociety/fixmystreet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mysociety/fixmystreet/git/refs{/sha}","trees_url":"https://api.github.com/repos/mysociety/fixmystreet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mysociety/fixmystreet/statuses/{sha}","languages_url":"https://api.github.com/repos/mysociety/fixmystreet/languages","stargazers_url":"https://api.github.com/repos/mysociety/fixmystreet/stargazers","contributors_url":"https://api.github.com/repos/mysociety/fixmystreet/contributors","subscribers_url":"https://api.github.com/repos/mysociety/fixmystreet/subscribers","subscription_url":"https://api.github.com/repos/mysociety/fixmystreet/subscription","commits_url":"https://api.github.com/repos/mysociety/fixmystreet/commits{/sha}","git_commits_url":"https://api.github.com/repos/mysociety/fixmystreet/git/commits{/sha}","comments_url":"https://api.github.com/repos/mysociety/fixmystreet/comments{/number}","issue_comment_url":"https://api.github.com/repos/mysociety/fixmystreet/issues/comments{/number}","contents_url":"https://api.github.com/repos/mysociety/fixmystreet/contents/{+path}","compare_url":"https://api.github.com/repos/mysociety/fixmystreet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mysociety/fixmystreet/merges","archive_url":"https://api.github.com/repos/mysociety/fixmystreet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mysociety/fixmystreet/downloads","issues_url":"https://api.github.com/repos/mysociety/fixmystreet/issues{/number}","pulls_url":"https://api.github.com/repos/mysociety/fixmystreet/pulls{/number}","milestones_url":"https://api.github.com/repos/mysociety/fixmystreet/milestones{/number}","notifications_url":"https://api.github.com/repos/mysociety/fixmystreet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mysociety/fixmystreet/labels{/name}","releases_url":"https://api.github.com/repos/mysociety/fixmystreet/releases{/id}","deployments_url":"https://api.github.com/repos/mysociety/fixmystreet/deployments","created_at":"2010-01-25T11:54:20Z","updated_at":"2016-09-14T20:06:06Z","pushed_at":"2016-09-20T10:56:50Z","git_url":"git://github.com/mysociety/fixmystreet.git","ssh_url":"git@github.com:mysociety/fixmystreet.git","clone_url":"https://github.com/mysociety/fixmystreet.git","svn_url":"https://github.com/mysociety/fixmystreet","homepage":"http://fixmystreet.org/","size":91182,"stargazers_count":279,"watchers_count":279,"language":"Perl","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":149,"mirror_url":null,"open_issues_count":232,"forks":149,"open_issues":232,"watchers":279,"default_branch":"master"}},"base":{"label":"mysociety:master","ref":"master","sha":"e9a5d2fb6e1985a0d946ad3574234784f4f659c4","user":{"login":"mysociety","id":141338,"avatar_url":"https://avatars.githubusercontent.com/u/141338?v=3","gravatar_id":"","url":"https://api.github.com/users/mysociety","html_url":"https://github.com/mysociety","followers_url":"https://api.github.com/users/mysociety/followers","following_url":"https://api.github.com/users/mysociety/following{/other_user}","gists_url":"https://api.github.com/users/mysociety/gists{/gist_id}","starred_url":"https://api.github.com/users/mysociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysociety/subscriptions","organizations_url":"https://api.github.com/users/mysociety/orgs","repos_url":"https://api.github.com/users/mysociety/repos","events_url":"https://api.github.com/users/mysociety/events{/privacy}","received_events_url":"https://api.github.com/users/mysociety/received_events","type":"Organization","site_admin":false},"repo":{"id":487492,"name":"fixmystreet","full_name":"mysociety/fixmystreet","owner":{"login":"mysociety","id":141338,"avatar_url":"https://avatars.githubusercontent.com/u/141338?v=3","gravatar_id":"","url":"https://api.github.com/users/mysociety","html_url":"https://github.com/mysociety","followers_url":"https://api.github.com/users/mysociety/followers","following_url":"https://api.github.com/users/mysociety/following{/other_user}","gists_url":"https://api.github.com/users/mysociety/gists{/gist_id}","starred_url":"https://api.github.com/users/mysociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysociety/subscriptions","organizations_url":"https://api.github.com/users/mysociety/orgs","repos_url":"https://api.github.com/users/mysociety/repos","events_url":"https://api.github.com/users/mysociety/events{/privacy}","received_events_url":"https://api.github.com/users/mysociety/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mysociety/fixmystreet","description":"This is mySociety's popular map-based reporting platform: easy to install in new countries and regions","fork":false,"url":"https://api.github.com/repos/mysociety/fixmystreet","forks_url":"https://api.github.com/repos/mysociety/fixmystreet/forks","keys_url":"https://api.github.com/repos/mysociety/fixmystreet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mysociety/fixmystreet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mysociety/fixmystreet/teams","hooks_url":"https://api.github.com/repos/mysociety/fixmystreet/hooks","issue_events_url":"https://api.github.com/repos/mysociety/fixmystreet/issues/events{/number}","events_url":"https://api.github.com/repos/mysociety/fixmystreet/events","assignees_url":"https://api.github.com/repos/mysociety/fixmystreet/assignees{/user}","branches_url":"https://api.github.com/repos/mysociety/fixmystreet/branches{/branch}","tags_url":"https://api.github.com/repos/mysociety/fixmystreet/tags","blobs_url":"https://api.github.com/repos/mysociety/fixmystreet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mysociety/fixmystreet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mysociety/fixmystreet/git/refs{/sha}","trees_url":"https://api.github.com/repos/mysociety/fixmystreet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mysociety/fixmystreet/statuses/{sha}","languages_url":"https://api.github.com/repos/mysociety/fixmystreet/languages","stargazers_url":"https://api.github.com/repos/mysociety/fixmystreet/stargazers","contributors_url":"https://api.github.com/repos/mysociety/fixmystreet/contributors","subscribers_url":"https://api.github.com/repos/mysociety/fixmystreet/subscribers","subscription_url":"https://api.github.com/repos/mysociety/fixmystreet/subscription","commits_url":"https://api.github.com/repos/mysociety/fixmystreet/commits{/sha}","git_commits_url":"https://api.github.com/repos/mysociety/fixmystreet/git/commits{/sha}","comments_url":"https://api.github.com/repos/mysociety/fixmystreet/comments{/number}","issue_comment_url":"https://api.github.com/repos/mysociety/fixmystreet/issues/comments{/number}","contents_url":"https://api.github.com/repos/mysociety/fixmystreet/contents/{+path}","compare_url":"https://api.github.com/repos/mysociety/fixmystreet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mysociety/fixmystreet/merges","archive_url":"https://api.github.com/repos/mysociety/fixmystreet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mysociety/fixmystreet/downloads","issues_url":"https://api.github.com/repos/mysociety/fixmystreet/issues{/number}","pulls_url":"https://api.github.com/repos/mysociety/fixmystreet/pulls{/number}","milestones_url":"https://api.github.com/repos/mysociety/fixmystreet/milestones{/number}","notifications_url":"https://api.github.com/repos/mysociety/fixmystreet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mysociety/fixmystreet/labels{/name}","releases_url":"https://api.github.com/repos/mysociety/fixmystreet/releases{/id}","deployments_url":"https://api.github.com/repos/mysociety/fixmystreet/deployments","created_at":"2010-01-25T11:54:20Z","updated_at":"2016-09-14T20:06:06Z","pushed_at":"2016-09-20T10:56:50Z","git_url":"git://github.com/mysociety/fixmystreet.git","ssh_url":"git@github.com:mysociety/fixmystreet.git","clone_url":"https://github.com/mysociety/fixmystreet.git","svn_url":"https://github.com/mysociety/fixmystreet","homepage":"http://fixmystreet.org/","size":91182,"stargazers_count":279,"watchers_count":279,"language":"Perl","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":149,"mirror_url":null,"open_issues_count":232,"forks":149,"open_issues":232,"watchers":279,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mysociety/fixmystreet/pulls/1532"},"html":{"href":"https://github.com/mysociety/fixmystreet/pull/1532"},"issue":{"href":"https://api.github.com/repos/mysociety/fixmystreet/issues/1532"},"comments":{"href":"https://api.github.com/repos/mysociety/fixmystreet/issues/1532/comments"},"review_comments":{"href":"https://api.github.com/repos/mysociety/fixmystreet/pulls/1532/comments"},"review_comment":{"href":"https://api.github.com/repos/mysociety/fixmystreet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mysociety/fixmystreet/pulls/1532/commits"},"statuses":{"href":"https://api.github.com/repos/mysociety/fixmystreet/statuses/34699c5c827045422e21a73141c19f5604335676"}}}}
{"actor":{"display_login":"zarino"}}