{"action":"created","comment":{"url":"https://api.github.com/repos/alphagov/e-petitions/pulls/comments/32506491","id":32506491,"diff_hunk":"@@ -12,69 +12,62 @@\n   </div>\n </details>\n \n-<%= content_tag :p, :class => 'flash-notice' do -%>\n-  This e-petition is now closed\n-<% end if @petition.closed? %>\n+<% if @petition.rejected? %>\n+  <%= render 'rejected_petition' %>\n+<% else %>\n \n-<h1>\n-  <span class=\"heading-secondary\">Petition</span>\n-  <%= @petition.title %>\n-</h1>\n+  <%= content_tag :p, :class => 'flash-notice' do -%>","path":"app/views/petitions/show.html.erb","position":15,"original_position":15,"commit_id":"0da710fe0dc2b4ae84c14b5ad6131600f951c3d4","original_commit_id":"0da710fe0dc2b4ae84c14b5ad6131600f951c3d4","user":{"login":"alexander-bobin","id":1836301,"avatar_url":"https://avatars.githubusercontent.com/u/1836301?v=3","gravatar_id":"","url":"https://api.github.com/users/alexander-bobin","html_url":"https://github.com/alexander-bobin","followers_url":"https://api.github.com/users/alexander-bobin/followers","following_url":"https://api.github.com/users/alexander-bobin/following{/other_user}","gists_url":"https://api.github.com/users/alexander-bobin/gists{/gist_id}","starred_url":"https://api.github.com/users/alexander-bobin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexander-bobin/subscriptions","organizations_url":"https://api.github.com/users/alexander-bobin/orgs","repos_url":"https://api.github.com/users/alexander-bobin/repos","events_url":"https://api.github.com/users/alexander-bobin/events{/privacy}","received_events_url":"https://api.github.com/users/alexander-bobin/received_events","type":"User","site_admin":false},"body":"Is it better to have this as another partial too? Maybe someone else has some reckons","created_at":"2015-06-16T09:59:44Z","updated_at":"2015-06-16T09:59:44Z","html_url":"https://github.com/alphagov/e-petitions/pull/144#discussion_r32506491","pull_request_url":"https://api.github.com/repos/alphagov/e-petitions/pulls/144","_links":{"self":{"href":"https://api.github.com/repos/alphagov/e-petitions/pulls/comments/32506491"},"html":{"href":"https://github.com/alphagov/e-petitions/pull/144#discussion_r32506491"},"pull_request":{"href":"https://api.github.com/repos/alphagov/e-petitions/pulls/144"}}},"pull_request":{"url":"https://api.github.com/repos/alphagov/e-petitions/pulls/144","id":37713651,"html_url":"https://github.com/alphagov/e-petitions/pull/144","diff_url":"https://github.com/alphagov/e-petitions/pull/144.diff","patch_url":"https://github.com/alphagov/e-petitions/pull/144.patch","issue_url":"https://api.github.com/repos/alphagov/e-petitions/issues/144","number":144,"state":"open","locked":false,"title":"Cleaning rejected petition view by removing redundant info and also add new styling","user":{"login":"mybits","id":5237879,"avatar_url":"https://avatars.githubusercontent.com/u/5237879?v=3","gravatar_id":"","url":"https://api.github.com/users/mybits","html_url":"https://github.com/mybits","followers_url":"https://api.github.com/users/mybits/followers","following_url":"https://api.github.com/users/mybits/following{/other_user}","gists_url":"https://api.github.com/users/mybits/gists{/gist_id}","starred_url":"https://api.github.com/users/mybits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mybits/subscriptions","organizations_url":"https://api.github.com/users/mybits/orgs","repos_url":"https://api.github.com/users/mybits/repos","events_url":"https://api.github.com/users/mybits/events{/privacy}","received_events_url":"https://api.github.com/users/mybits/received_events","type":"User","site_admin":false},"body":"- removed: the signature count, confirmation email section, references to 10k and 100k sections,\r\ncreated by section\r\n\r\nchanged: \r\n* Change the date from deadline to be the date created, and call it Date submitted.\r\n* add the styled 'flash' message\r\n* add a reason for rejection header\r\n\r\nPT: https://www.pivotaltracker.com/n/projects/307301/stories/96936096","created_at":"2015-06-15T17:07:40Z","updated_at":"2015-06-16T09:59:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3d88a6a2decff56861b11a9551fcaa1cab208920","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/e-petitions/pulls/144/commits","review_comments_url":"https://api.github.com/repos/alphagov/e-petitions/pulls/144/comments","review_comment_url":"https://api.github.com/repos/alphagov/e-petitions/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/e-petitions/issues/144/comments","statuses_url":"https://api.github.com/repos/alphagov/e-petitions/statuses/0da710fe0dc2b4ae84c14b5ad6131600f951c3d4","head":{"label":"alphagov:rejected-petition-page-cleaning","ref":"rejected-petition-page-cleaning","sha":"0da710fe0dc2b4ae84c14b5ad6131600f951c3d4","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":4434819,"name":"e-petitions","full_name":"alphagov/e-petitions","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/e-petitions","description":"This is the code base for the UK Government's e-petitions service (http://epetitions.direct.gov.uk)","fork":false,"url":"https://api.github.com/repos/alphagov/e-petitions","forks_url":"https://api.github.com/repos/alphagov/e-petitions/forks","keys_url":"https://api.github.com/repos/alphagov/e-petitions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/e-petitions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/e-petitions/teams","hooks_url":"https://api.github.com/repos/alphagov/e-petitions/hooks","issue_events_url":"https://api.github.com/repos/alphagov/e-petitions/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/e-petitions/events","assignees_url":"https://api.github.com/repos/alphagov/e-petitions/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/e-petitions/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/e-petitions/tags","blobs_url":"https://api.github.com/repos/alphagov/e-petitions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/e-petitions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/e-petitions/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/e-petitions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/e-petitions/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/e-petitions/languages","stargazers_url":"https://api.github.com/repos/alphagov/e-petitions/stargazers","contributors_url":"https://api.github.com/repos/alphagov/e-petitions/contributors","subscribers_url":"https://api.github.com/repos/alphagov/e-petitions/subscribers","subscription_url":"https://api.github.com/repos/alphagov/e-petitions/subscription","commits_url":"https://api.github.com/repos/alphagov/e-petitions/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/e-petitions/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/e-petitions/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/e-petitions/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/e-petitions/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/e-petitions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/e-petitions/merges","archive_url":"https://api.github.com/repos/alphagov/e-petitions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/e-petitions/downloads","issues_url":"https://api.github.com/repos/alphagov/e-petitions/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/e-petitions/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/e-petitions/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/e-petitions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/e-petitions/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/e-petitions/releases{/id}","created_at":"2012-05-24T16:04:02Z","updated_at":"2015-05-15T08:26:34Z","pushed_at":"2015-06-16T09:56:51Z","git_url":"git://github.com/alphagov/e-petitions.git","ssh_url":"git@github.com:alphagov/e-petitions.git","clone_url":"https://github.com/alphagov/e-petitions.git","svn_url":"https://github.com/alphagov/e-petitions","homepage":"http://epetitions.direct.gov.uk","size":4882,"stargazers_count":18,"watchers_count":18,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":6,"forks":9,"open_issues":6,"watchers":18,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"6a9a1d75954ad96c84f4f7c280b12540920cf142","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":4434819,"name":"e-petitions","full_name":"alphagov/e-petitions","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/e-petitions","description":"This is the code base for the UK Government's e-petitions service (http://epetitions.direct.gov.uk)","fork":false,"url":"https://api.github.com/repos/alphagov/e-petitions","forks_url":"https://api.github.com/repos/alphagov/e-petitions/forks","keys_url":"https://api.github.com/repos/alphagov/e-petitions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/e-petitions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/e-petitions/teams","hooks_url":"https://api.github.com/repos/alphagov/e-petitions/hooks","issue_events_url":"https://api.github.com/repos/alphagov/e-petitions/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/e-petitions/events","assignees_url":"https://api.github.com/repos/alphagov/e-petitions/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/e-petitions/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/e-petitions/tags","blobs_url":"https://api.github.com/repos/alphagov/e-petitions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/e-petitions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/e-petitions/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/e-petitions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/e-petitions/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/e-petitions/languages","stargazers_url":"https://api.github.com/repos/alphagov/e-petitions/stargazers","contributors_url":"https://api.github.com/repos/alphagov/e-petitions/contributors","subscribers_url":"https://api.github.com/repos/alphagov/e-petitions/subscribers","subscription_url":"https://api.github.com/repos/alphagov/e-petitions/subscription","commits_url":"https://api.github.com/repos/alphagov/e-petitions/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/e-petitions/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/e-petitions/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/e-petitions/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/e-petitions/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/e-petitions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/e-petitions/merges","archive_url":"https://api.github.com/repos/alphagov/e-petitions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/e-petitions/downloads","issues_url":"https://api.github.com/repos/alphagov/e-petitions/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/e-petitions/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/e-petitions/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/e-petitions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/e-petitions/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/e-petitions/releases{/id}","created_at":"2012-05-24T16:04:02Z","updated_at":"2015-05-15T08:26:34Z","pushed_at":"2015-06-16T09:56:51Z","git_url":"git://github.com/alphagov/e-petitions.git","ssh_url":"git@github.com:alphagov/e-petitions.git","clone_url":"https://github.com/alphagov/e-petitions.git","svn_url":"https://github.com/alphagov/e-petitions","homepage":"http://epetitions.direct.gov.uk","size":4882,"stargazers_count":18,"watchers_count":18,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":6,"forks":9,"open_issues":6,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/e-petitions/pulls/144"},"html":{"href":"https://github.com/alphagov/e-petitions/pull/144"},"issue":{"href":"https://api.github.com/repos/alphagov/e-petitions/issues/144"},"comments":{"href":"https://api.github.com/repos/alphagov/e-petitions/issues/144/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/e-petitions/pulls/144/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/e-petitions/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/e-petitions/pulls/144/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/e-petitions/statuses/0da710fe0dc2b4ae84c14b5ad6131600f951c3d4"}}}}