{"action":"created","comment":{"url":"https://api.github.com/repos/ohidetoshi/Roomclip/pulls/comments/199772635","pull_request_review_id":133951540,"id":199772635,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5OTc3MjYzNQ==","diff_hunk":"@@ -37,12 +41,20 @@\n \n   <nav>\n     <figure class=\"prev\">\n-      <a href=\"/photo/cuyz\">\n-        <span></span>\n-        <img src=\"https://s3-ap-northeast-1.amazonaws.com/roomclip-bucket/img_180/d4c8d0a1c66835947e9ffbd6857e39892559fa58.jpg\" alt=\"前の部屋写真\">\n-      </a>\n+      <% if @clip.previous.present? %>","path":"app/views/clips/show.html.erb","position":31,"original_position":31,"commit_id":"cd362b6fe43e488529adaf4c2b53f97caa71bfc0","original_commit_id":"cd362b6fe43e488529adaf4c2b53f97caa71bfc0","user":{"login":"MrUrakou","id":18899359,"node_id":"MDQ6VXNlcjE4ODk5MzU5","avatar_url":"https://avatars1.githubusercontent.com/u/18899359?v=4","gravatar_id":"","url":"https://api.github.com/users/MrUrakou","html_url":"https://github.com/MrUrakou","followers_url":"https://api.github.com/users/MrUrakou/followers","following_url":"https://api.github.com/users/MrUrakou/following{/other_user}","gists_url":"https://api.github.com/users/MrUrakou/gists{/gist_id}","starred_url":"https://api.github.com/users/MrUrakou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrUrakou/subscriptions","organizations_url":"https://api.github.com/users/MrUrakou/orgs","repos_url":"https://api.github.com/users/MrUrakou/repos","events_url":"https://api.github.com/users/MrUrakou/events{/privacy}","received_events_url":"https://api.github.com/users/MrUrakou/received_events","type":"User","site_admin":false},"body":"この辺のロジックをhelperに切り出してみても良いかもです。\r\n参考url\r\nhttps://techracho.bpsinc.jp/hachi8833/2018_02_19/51668","created_at":"2018-07-03T11:29:02Z","updated_at":"2018-07-03T11:29:12Z","html_url":"https://github.com/ohidetoshi/Roomclip/pull/10#discussion_r199772635","pull_request_url":"https://api.github.com/repos/ohidetoshi/Roomclip/pulls/10","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/ohidetoshi/Roomclip/pulls/comments/199772635"},"html":{"href":"https://github.com/ohidetoshi/Roomclip/pull/10#discussion_r199772635"},"pull_request":{"href":"https://api.github.com/repos/ohidetoshi/Roomclip/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/ohidetoshi/Roomclip/pulls/10","id":198924390,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4OTI0Mzkw","html_url":"https://github.com/ohidetoshi/Roomclip/pull/10","diff_url":"https://github.com/ohidetoshi/Roomclip/pull/10.diff","patch_url":"https://github.com/ohidetoshi/Roomclip/pull/10.patch","issue_url":"https://api.github.com/repos/ohidetoshi/Roomclip/issues/10","number":10,"state":"open","locked":false,"title":"投稿詳細画面の実装　/詳細表示/削除機能/前・次投稿遷移/","user":{"login":"ohidetoshi","id":39324145,"node_id":"MDQ6VXNlcjM5MzI0MTQ1","avatar_url":"https://avatars0.githubusercontent.com/u/39324145?v=4","gravatar_id":"","url":"https://api.github.com/users/ohidetoshi","html_url":"https://github.com/ohidetoshi","followers_url":"https://api.github.com/users/ohidetoshi/followers","following_url":"https://api.github.com/users/ohidetoshi/following{/other_user}","gists_url":"https://api.github.com/users/ohidetoshi/gists{/gist_id}","starred_url":"https://api.github.com/users/ohidetoshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohidetoshi/subscriptions","organizations_url":"https://api.github.com/users/ohidetoshi/orgs","repos_url":"https://api.github.com/users/ohidetoshi/repos","events_url":"https://api.github.com/users/ohidetoshi/events{/privacy}","received_events_url":"https://api.github.com/users/ohidetoshi/received_events","type":"User","site_admin":false},"body":"# WHAT\r\n投稿詳細画面の実装　/詳細表示/削除機能/前・次投稿遷移/\r\n\r\n# WHY\r\n必須機能\r\n\r\n前ページ次ページのキャプチャー\r\nhttps://gyazo.com/15225223e965718a564c595735635698\r\n\r\n削除した時のキャプチャー\r\nhttps://gyazo.com/0a71e711e905334961a3588554fefc70\r\n※本物サイトでは削除確認をJSで行ってますが、その作業は別チケットになってます。","created_at":"2018-07-03T10:53:27Z","updated_at":"2018-07-03T11:29:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"418d8781d6e8e345d2f4956cc1ec98bff3618b43","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ohidetoshi/Roomclip/pulls/10/commits","review_comments_url":"https://api.github.com/repos/ohidetoshi/Roomclip/pulls/10/comments","review_comment_url":"https://api.github.com/repos/ohidetoshi/Roomclip/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ohidetoshi/Roomclip/issues/10/comments","statuses_url":"https://api.github.com/repos/ohidetoshi/Roomclip/statuses/cd362b6fe43e488529adaf4c2b53f97caa71bfc0","head":{"label":"ohidetoshi:showclip_edit","ref":"showclip_edit","sha":"cd362b6fe43e488529adaf4c2b53f97caa71bfc0","user":{"login":"ohidetoshi","id":39324145,"node_id":"MDQ6VXNlcjM5MzI0MTQ1","avatar_url":"https://avatars0.githubusercontent.com/u/39324145?v=4","gravatar_id":"","url":"https://api.github.com/users/ohidetoshi","html_url":"https://github.com/ohidetoshi","followers_url":"https://api.github.com/users/ohidetoshi/followers","following_url":"https://api.github.com/users/ohidetoshi/following{/other_user}","gists_url":"https://api.github.com/users/ohidetoshi/gists{/gist_id}","starred_url":"https://api.github.com/users/ohidetoshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohidetoshi/subscriptions","organizations_url":"https://api.github.com/users/ohidetoshi/orgs","repos_url":"https://api.github.com/users/ohidetoshi/repos","events_url":"https://api.github.com/users/ohidetoshi/events{/privacy}","received_events_url":"https://api.github.com/users/ohidetoshi/received_events","type":"User","site_admin":false},"repo":{"id":137713293,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc3MTMyOTM=","name":"Roomclip","full_name":"ohidetoshi/Roomclip","owner":{"login":"ohidetoshi","id":39324145,"node_id":"MDQ6VXNlcjM5MzI0MTQ1","avatar_url":"https://avatars0.githubusercontent.com/u/39324145?v=4","gravatar_id":"","url":"https://api.github.com/users/ohidetoshi","html_url":"https://github.com/ohidetoshi","followers_url":"https://api.github.com/users/ohidetoshi/followers","following_url":"https://api.github.com/users/ohidetoshi/following{/other_user}","gists_url":"https://api.github.com/users/ohidetoshi/gists{/gist_id}","starred_url":"https://api.github.com/users/ohidetoshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohidetoshi/subscriptions","organizations_url":"https://api.github.com/users/ohidetoshi/orgs","repos_url":"https://api.github.com/users/ohidetoshi/repos","events_url":"https://api.github.com/users/ohidetoshi/events{/privacy}","received_events_url":"https://api.github.com/users/ohidetoshi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ohidetoshi/Roomclip","description":"素敵なインテリアの写真を集めた投稿サイト","fork":true,"url":"https://api.github.com/repos/ohidetoshi/Roomclip","forks_url":"https://api.github.com/repos/ohidetoshi/Roomclip/forks","keys_url":"https://api.github.com/repos/ohidetoshi/Roomclip/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ohidetoshi/Roomclip/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ohidetoshi/Roomclip/teams","hooks_url":"https://api.github.com/repos/ohidetoshi/Roomclip/hooks","issue_events_url":"https://api.github.com/repos/ohidetoshi/Roomclip/issues/events{/number}","events_url":"https://api.github.com/repos/ohidetoshi/Roomclip/events","assignees_url":"https://api.github.com/repos/ohidetoshi/Roomclip/assignees{/user}","branches_url":"https://api.github.com/repos/ohidetoshi/Roomclip/branches{/branch}","tags_url":"https://api.github.com/repos/ohidetoshi/Roomclip/tags","blobs_url":"https://api.github.com/repos/ohidetoshi/Roomclip/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ohidetoshi/Roomclip/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ohidetoshi/Roomclip/git/refs{/sha}","trees_url":"https://api.github.com/repos/ohidetoshi/Roomclip/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ohidetoshi/Roomclip/statuses/{sha}","languages_url":"https://api.github.com/repos/ohidetoshi/Roomclip/languages","stargazers_url":"https://api.github.com/repos/ohidetoshi/Roomclip/stargazers","contributors_url":"https://api.github.com/repos/ohidetoshi/Roomclip/contributors","subscribers_url":"https://api.github.com/repos/ohidetoshi/Roomclip/subscribers","subscription_url":"https://api.github.com/repos/ohidetoshi/Roomclip/subscription","commits_url":"https://api.github.com/repos/ohidetoshi/Roomclip/commits{/sha}","git_commits_url":"https://api.github.com/repos/ohidetoshi/Roomclip/git/commits{/sha}","comments_url":"https://api.github.com/repos/ohidetoshi/Roomclip/comments{/number}","issue_comment_url":"https://api.github.com/repos/ohidetoshi/Roomclip/issues/comments{/number}","contents_url":"https://api.github.com/repos/ohidetoshi/Roomclip/contents/{+path}","compare_url":"https://api.github.com/repos/ohidetoshi/Roomclip/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ohidetoshi/Roomclip/merges","archive_url":"https://api.github.com/repos/ohidetoshi/Roomclip/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ohidetoshi/Roomclip/downloads","issues_url":"https://api.github.com/repos/ohidetoshi/Roomclip/issues{/number}","pulls_url":"https://api.github.com/repos/ohidetoshi/Roomclip/pulls{/number}","milestones_url":"https://api.github.com/repos/ohidetoshi/Roomclip/milestones{/number}","notifications_url":"https://api.github.com/repos/ohidetoshi/Roomclip/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ohidetoshi/Roomclip/labels{/name}","releases_url":"https://api.github.com/repos/ohidetoshi/Roomclip/releases{/id}","deployments_url":"https://api.github.com/repos/ohidetoshi/Roomclip/deployments","created_at":"2018-06-18T05:28:07Z","updated_at":"2018-07-03T10:18:41Z","pushed_at":"2018-07-03T10:53:27Z","git_url":"git://github.com/ohidetoshi/Roomclip.git","ssh_url":"git@github.com:ohidetoshi/Roomclip.git","clone_url":"https://github.com/ohidetoshi/Roomclip.git","svn_url":"https://github.com/ohidetoshi/Roomclip","homepage":null,"size":323,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ohidetoshi:master","ref":"master","sha":"d7060be04a61f10ada3c5b729296e4ce59a0dc0c","user":{"login":"ohidetoshi","id":39324145,"node_id":"MDQ6VXNlcjM5MzI0MTQ1","avatar_url":"https://avatars0.githubusercontent.com/u/39324145?v=4","gravatar_id":"","url":"https://api.github.com/users/ohidetoshi","html_url":"https://github.com/ohidetoshi","followers_url":"https://api.github.com/users/ohidetoshi/followers","following_url":"https://api.github.com/users/ohidetoshi/following{/other_user}","gists_url":"https://api.github.com/users/ohidetoshi/gists{/gist_id}","starred_url":"https://api.github.com/users/ohidetoshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohidetoshi/subscriptions","organizations_url":"https://api.github.com/users/ohidetoshi/orgs","repos_url":"https://api.github.com/users/ohidetoshi/repos","events_url":"https://api.github.com/users/ohidetoshi/events{/privacy}","received_events_url":"https://api.github.com/users/ohidetoshi/received_events","type":"User","site_admin":false},"repo":{"id":137713293,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc3MTMyOTM=","name":"Roomclip","full_name":"ohidetoshi/Roomclip","owner":{"login":"ohidetoshi","id":39324145,"node_id":"MDQ6VXNlcjM5MzI0MTQ1","avatar_url":"https://avatars0.githubusercontent.com/u/39324145?v=4","gravatar_id":"","url":"https://api.github.com/users/ohidetoshi","html_url":"https://github.com/ohidetoshi","followers_url":"https://api.github.com/users/ohidetoshi/followers","following_url":"https://api.github.com/users/ohidetoshi/following{/other_user}","gists_url":"https://api.github.com/users/ohidetoshi/gists{/gist_id}","starred_url":"https://api.github.com/users/ohidetoshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohidetoshi/subscriptions","organizations_url":"https://api.github.com/users/ohidetoshi/orgs","repos_url":"https://api.github.com/users/ohidetoshi/repos","events_url":"https://api.github.com/users/ohidetoshi/events{/privacy}","received_events_url":"https://api.github.com/users/ohidetoshi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ohidetoshi/Roomclip","description":"素敵なインテリアの写真を集めた投稿サイト","fork":true,"url":"https://api.github.com/repos/ohidetoshi/Roomclip","forks_url":"https://api.github.com/repos/ohidetoshi/Roomclip/forks","keys_url":"https://api.github.com/repos/ohidetoshi/Roomclip/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ohidetoshi/Roomclip/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ohidetoshi/Roomclip/teams","hooks_url":"https://api.github.com/repos/ohidetoshi/Roomclip/hooks","issue_events_url":"https://api.github.com/repos/ohidetoshi/Roomclip/issues/events{/number}","events_url":"https://api.github.com/repos/ohidetoshi/Roomclip/events","assignees_url":"https://api.github.com/repos/ohidetoshi/Roomclip/assignees{/user}","branches_url":"https://api.github.com/repos/ohidetoshi/Roomclip/branches{/branch}","tags_url":"https://api.github.com/repos/ohidetoshi/Roomclip/tags","blobs_url":"https://api.github.com/repos/ohidetoshi/Roomclip/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ohidetoshi/Roomclip/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ohidetoshi/Roomclip/git/refs{/sha}","trees_url":"https://api.github.com/repos/ohidetoshi/Roomclip/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ohidetoshi/Roomclip/statuses/{sha}","languages_url":"https://api.github.com/repos/ohidetoshi/Roomclip/languages","stargazers_url":"https://api.github.com/repos/ohidetoshi/Roomclip/stargazers","contributors_url":"https://api.github.com/repos/ohidetoshi/Roomclip/contributors","subscribers_url":"https://api.github.com/repos/ohidetoshi/Roomclip/subscribers","subscription_url":"https://api.github.com/repos/ohidetoshi/Roomclip/subscription","commits_url":"https://api.github.com/repos/ohidetoshi/Roomclip/commits{/sha}","git_commits_url":"https://api.github.com/repos/ohidetoshi/Roomclip/git/commits{/sha}","comments_url":"https://api.github.com/repos/ohidetoshi/Roomclip/comments{/number}","issue_comment_url":"https://api.github.com/repos/ohidetoshi/Roomclip/issues/comments{/number}","contents_url":"https://api.github.com/repos/ohidetoshi/Roomclip/contents/{+path}","compare_url":"https://api.github.com/repos/ohidetoshi/Roomclip/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ohidetoshi/Roomclip/merges","archive_url":"https://api.github.com/repos/ohidetoshi/Roomclip/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ohidetoshi/Roomclip/downloads","issues_url":"https://api.github.com/repos/ohidetoshi/Roomclip/issues{/number}","pulls_url":"https://api.github.com/repos/ohidetoshi/Roomclip/pulls{/number}","milestones_url":"https://api.github.com/repos/ohidetoshi/Roomclip/milestones{/number}","notifications_url":"https://api.github.com/repos/ohidetoshi/Roomclip/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ohidetoshi/Roomclip/labels{/name}","releases_url":"https://api.github.com/repos/ohidetoshi/Roomclip/releases{/id}","deployments_url":"https://api.github.com/repos/ohidetoshi/Roomclip/deployments","created_at":"2018-06-18T05:28:07Z","updated_at":"2018-07-03T10:18:41Z","pushed_at":"2018-07-03T10:53:27Z","git_url":"git://github.com/ohidetoshi/Roomclip.git","ssh_url":"git@github.com:ohidetoshi/Roomclip.git","clone_url":"https://github.com/ohidetoshi/Roomclip.git","svn_url":"https://github.com/ohidetoshi/Roomclip","homepage":null,"size":323,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ohidetoshi/Roomclip/pulls/10"},"html":{"href":"https://github.com/ohidetoshi/Roomclip/pull/10"},"issue":{"href":"https://api.github.com/repos/ohidetoshi/Roomclip/issues/10"},"comments":{"href":"https://api.github.com/repos/ohidetoshi/Roomclip/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/ohidetoshi/Roomclip/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/ohidetoshi/Roomclip/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ohidetoshi/Roomclip/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/ohidetoshi/Roomclip/statuses/cd362b6fe43e488529adaf4c2b53f97caa71bfc0"}},"author_association":"OWNER"}}
{"actor":{"display_login":"MrUrakou"}}