{"action":"created","comment":{"url":"https://api.github.com/repos/AquiTCD/protospace/pulls/comments/79976195","id":79976195,"diff_hunk":"@@ -19,10 +19,7 @@\n         %span.num 20\n   .row\n     .col-md-9\n-      - if @prototype.captured_images.find_by(status: 0).image?\n-        = image_tag(\"#{@prototype.captured_images.find_by(status: 'cover').image.url}\", class: 'img-responsive')\n-      - else\n-        = image_tag(\"/assets/sample-2ff15a397fd8eb432d13aea08dbdb47ec7973b9e588fbd05cde17cae2392da63.png\", class: 'img-responsive')\n+      = image_tag(\"#{@prototype.captured_images.find_by(status: 'cover').image.url}\", class: 'img-responsive')","path":"app/views/prototypes/show.html.haml","position":null,"original_position":8,"commit_id":"902424a21e991285c874488f933a5a40e8c3218b","original_commit_id":"902424a21e991285c874488f933a5a40e8c3218b","user":{"login":"naokishizuka","id":13926525,"avatar_url":"https://avatars.githubusercontent.com/u/13926525?v=3","gravatar_id":"","url":"https://api.github.com/users/naokishizuka","html_url":"https://github.com/naokishizuka","followers_url":"https://api.github.com/users/naokishizuka/followers","following_url":"https://api.github.com/users/naokishizuka/following{/other_user}","gists_url":"https://api.github.com/users/naokishizuka/gists{/gist_id}","starred_url":"https://api.github.com/users/naokishizuka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naokishizuka/subscriptions","organizations_url":"https://api.github.com/users/naokishizuka/orgs","repos_url":"https://api.github.com/users/naokishizuka/repos","events_url":"https://api.github.com/users/naokishizuka/events{/privacy}","received_events_url":"https://api.github.com/users/naokishizuka/received_events","type":"User","site_admin":false},"body":"image_tag @prototype.captured_images.cover.first.image.url, class: 'img-responsive'\r\nとした方が簡潔に記述できそうです。","created_at":"2016-09-22T04:59:10Z","updated_at":"2016-09-22T04:59:10Z","html_url":"https://github.com/AquiTCD/protospace/pull/13#discussion_r79976195","pull_request_url":"https://api.github.com/repos/AquiTCD/protospace/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/AquiTCD/protospace/pulls/comments/79976195"},"html":{"href":"https://github.com/AquiTCD/protospace/pull/13#discussion_r79976195"},"pull_request":{"href":"https://api.github.com/repos/AquiTCD/protospace/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/AquiTCD/protospace/pulls/13","id":85753239,"html_url":"https://github.com/AquiTCD/protospace/pull/13","diff_url":"https://github.com/AquiTCD/protospace/pull/13.diff","patch_url":"https://github.com/AquiTCD/protospace/pull/13.patch","issue_url":"https://api.github.com/repos/AquiTCD/protospace/issues/13","number":13,"state":"open","locked":false,"title":"Prototypeの編集機能","user":{"login":"AquiTCD","id":7114503,"avatar_url":"https://avatars.githubusercontent.com/u/7114503?v=3","gravatar_id":"","url":"https://api.github.com/users/AquiTCD","html_url":"https://github.com/AquiTCD","followers_url":"https://api.github.com/users/AquiTCD/followers","following_url":"https://api.github.com/users/AquiTCD/following{/other_user}","gists_url":"https://api.github.com/users/AquiTCD/gists{/gist_id}","starred_url":"https://api.github.com/users/AquiTCD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AquiTCD/subscriptions","organizations_url":"https://api.github.com/users/AquiTCD/orgs","repos_url":"https://api.github.com/users/AquiTCD/repos","events_url":"https://api.github.com/users/AquiTCD/events{/privacy}","received_events_url":"https://api.github.com/users/AquiTCD/received_events","type":"User","site_admin":false},"body":"What I want\r\n----------------------------------------\r\n- Prototypesの編集機能\r\n  - 編集\r\n  - 削除機能はここでは含めない\r\n\r\nWhy I need\r\n----------------------------------------\r\n- ユーザが自由にPrototypeを編集できるように\r\n\r\nWhat I did\r\n----------------------------------------\r\n- 各所で画像の表示\r\n- eachやifで必要な画像を表示、非表示をコントロール\r\n- prototype/editを作って上書き編集update機能を追加\r\n\r\nWhat I did NOT\r\n----------------------------------------\r\n- 削除機能はまだ\r\n\r\nAdditional image(s)\r\n----------------------------------------\r\nNA\r\n\r\nnotes\r\n----------------------------------------\r\n画像のところ for num 1..@sub_imagesでまわそうと思ったけど上手くいかず\r\n画像のあるなしの条件分岐をexsits?でやろうとしたけど上手くいかず\r\n\r\nTodo\r\n----------------------------------------\r\n- [x] gemのcarrierwaveの導入\r\n- [x] Prototypeモデル、テーブルの作成\r\n- [x] プロトタイプ投稿機能の追加\r\n- [ ] プロトタイプ投稿一覧機能の追加\r\n- [x] プロトタイプ詳細閲覧機能の追加\r\n- [x] 各ユーザーのプロトタイプ投稿一覧機能の追加\r\n- [x] プロトタイプの編集\r\n- [ ] プロトタイプの削除","created_at":"2016-09-19T08:23:39Z","updated_at":"2016-09-22T04:59:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"39a52a98b4fb1e6a6f623451195278a2d180c546","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/AquiTCD/protospace/pulls/13/commits","review_comments_url":"https://api.github.com/repos/AquiTCD/protospace/pulls/13/comments","review_comment_url":"https://api.github.com/repos/AquiTCD/protospace/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AquiTCD/protospace/issues/13/comments","statuses_url":"https://api.github.com/repos/AquiTCD/protospace/statuses/902424a21e991285c874488f933a5a40e8c3218b","head":{"label":"AquiTCD:feature/editing-prototype","ref":"feature/editing-prototype","sha":"902424a21e991285c874488f933a5a40e8c3218b","user":{"login":"AquiTCD","id":7114503,"avatar_url":"https://avatars.githubusercontent.com/u/7114503?v=3","gravatar_id":"","url":"https://api.github.com/users/AquiTCD","html_url":"https://github.com/AquiTCD","followers_url":"https://api.github.com/users/AquiTCD/followers","following_url":"https://api.github.com/users/AquiTCD/following{/other_user}","gists_url":"https://api.github.com/users/AquiTCD/gists{/gist_id}","starred_url":"https://api.github.com/users/AquiTCD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AquiTCD/subscriptions","organizations_url":"https://api.github.com/users/AquiTCD/orgs","repos_url":"https://api.github.com/users/AquiTCD/repos","events_url":"https://api.github.com/users/AquiTCD/events{/privacy}","received_events_url":"https://api.github.com/users/AquiTCD/received_events","type":"User","site_admin":false},"repo":{"id":68073318,"name":"protospace","full_name":"AquiTCD/protospace","owner":{"login":"AquiTCD","id":7114503,"avatar_url":"https://avatars.githubusercontent.com/u/7114503?v=3","gravatar_id":"","url":"https://api.github.com/users/AquiTCD","html_url":"https://github.com/AquiTCD","followers_url":"https://api.github.com/users/AquiTCD/followers","following_url":"https://api.github.com/users/AquiTCD/following{/other_user}","gists_url":"https://api.github.com/users/AquiTCD/gists{/gist_id}","starred_url":"https://api.github.com/users/AquiTCD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AquiTCD/subscriptions","organizations_url":"https://api.github.com/users/AquiTCD/orgs","repos_url":"https://api.github.com/users/AquiTCD/repos","events_url":"https://api.github.com/users/AquiTCD/events{/privacy}","received_events_url":"https://api.github.com/users/AquiTCD/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AquiTCD/protospace","description":"a web application from tech-camp carriculum","fork":false,"url":"https://api.github.com/repos/AquiTCD/protospace","forks_url":"https://api.github.com/repos/AquiTCD/protospace/forks","keys_url":"https://api.github.com/repos/AquiTCD/protospace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AquiTCD/protospace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AquiTCD/protospace/teams","hooks_url":"https://api.github.com/repos/AquiTCD/protospace/hooks","issue_events_url":"https://api.github.com/repos/AquiTCD/protospace/issues/events{/number}","events_url":"https://api.github.com/repos/AquiTCD/protospace/events","assignees_url":"https://api.github.com/repos/AquiTCD/protospace/assignees{/user}","branches_url":"https://api.github.com/repos/AquiTCD/protospace/branches{/branch}","tags_url":"https://api.github.com/repos/AquiTCD/protospace/tags","blobs_url":"https://api.github.com/repos/AquiTCD/protospace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AquiTCD/protospace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AquiTCD/protospace/git/refs{/sha}","trees_url":"https://api.github.com/repos/AquiTCD/protospace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AquiTCD/protospace/statuses/{sha}","languages_url":"https://api.github.com/repos/AquiTCD/protospace/languages","stargazers_url":"https://api.github.com/repos/AquiTCD/protospace/stargazers","contributors_url":"https://api.github.com/repos/AquiTCD/protospace/contributors","subscribers_url":"https://api.github.com/repos/AquiTCD/protospace/subscribers","subscription_url":"https://api.github.com/repos/AquiTCD/protospace/subscription","commits_url":"https://api.github.com/repos/AquiTCD/protospace/commits{/sha}","git_commits_url":"https://api.github.com/repos/AquiTCD/protospace/git/commits{/sha}","comments_url":"https://api.github.com/repos/AquiTCD/protospace/comments{/number}","issue_comment_url":"https://api.github.com/repos/AquiTCD/protospace/issues/comments{/number}","contents_url":"https://api.github.com/repos/AquiTCD/protospace/contents/{+path}","compare_url":"https://api.github.com/repos/AquiTCD/protospace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AquiTCD/protospace/merges","archive_url":"https://api.github.com/repos/AquiTCD/protospace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AquiTCD/protospace/downloads","issues_url":"https://api.github.com/repos/AquiTCD/protospace/issues{/number}","pulls_url":"https://api.github.com/repos/AquiTCD/protospace/pulls{/number}","milestones_url":"https://api.github.com/repos/AquiTCD/protospace/milestones{/number}","notifications_url":"https://api.github.com/repos/AquiTCD/protospace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AquiTCD/protospace/labels{/name}","releases_url":"https://api.github.com/repos/AquiTCD/protospace/releases{/id}","deployments_url":"https://api.github.com/repos/AquiTCD/protospace/deployments","created_at":"2016-09-13T04:10:08Z","updated_at":"2016-09-15T07:07:33Z","pushed_at":"2016-09-22T04:48:10Z","git_url":"git://github.com/AquiTCD/protospace.git","ssh_url":"git@github.com:AquiTCD/protospace.git","clone_url":"https://github.com/AquiTCD/protospace.git","svn_url":"https://github.com/AquiTCD/protospace","homepage":null,"size":616,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"AquiTCD:develop","ref":"develop","sha":"e909942811c39f2b763e176f74aefbbb04a93b27","user":{"login":"AquiTCD","id":7114503,"avatar_url":"https://avatars.githubusercontent.com/u/7114503?v=3","gravatar_id":"","url":"https://api.github.com/users/AquiTCD","html_url":"https://github.com/AquiTCD","followers_url":"https://api.github.com/users/AquiTCD/followers","following_url":"https://api.github.com/users/AquiTCD/following{/other_user}","gists_url":"https://api.github.com/users/AquiTCD/gists{/gist_id}","starred_url":"https://api.github.com/users/AquiTCD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AquiTCD/subscriptions","organizations_url":"https://api.github.com/users/AquiTCD/orgs","repos_url":"https://api.github.com/users/AquiTCD/repos","events_url":"https://api.github.com/users/AquiTCD/events{/privacy}","received_events_url":"https://api.github.com/users/AquiTCD/received_events","type":"User","site_admin":false},"repo":{"id":68073318,"name":"protospace","full_name":"AquiTCD/protospace","owner":{"login":"AquiTCD","id":7114503,"avatar_url":"https://avatars.githubusercontent.com/u/7114503?v=3","gravatar_id":"","url":"https://api.github.com/users/AquiTCD","html_url":"https://github.com/AquiTCD","followers_url":"https://api.github.com/users/AquiTCD/followers","following_url":"https://api.github.com/users/AquiTCD/following{/other_user}","gists_url":"https://api.github.com/users/AquiTCD/gists{/gist_id}","starred_url":"https://api.github.com/users/AquiTCD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AquiTCD/subscriptions","organizations_url":"https://api.github.com/users/AquiTCD/orgs","repos_url":"https://api.github.com/users/AquiTCD/repos","events_url":"https://api.github.com/users/AquiTCD/events{/privacy}","received_events_url":"https://api.github.com/users/AquiTCD/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AquiTCD/protospace","description":"a web application from tech-camp carriculum","fork":false,"url":"https://api.github.com/repos/AquiTCD/protospace","forks_url":"https://api.github.com/repos/AquiTCD/protospace/forks","keys_url":"https://api.github.com/repos/AquiTCD/protospace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AquiTCD/protospace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AquiTCD/protospace/teams","hooks_url":"https://api.github.com/repos/AquiTCD/protospace/hooks","issue_events_url":"https://api.github.com/repos/AquiTCD/protospace/issues/events{/number}","events_url":"https://api.github.com/repos/AquiTCD/protospace/events","assignees_url":"https://api.github.com/repos/AquiTCD/protospace/assignees{/user}","branches_url":"https://api.github.com/repos/AquiTCD/protospace/branches{/branch}","tags_url":"https://api.github.com/repos/AquiTCD/protospace/tags","blobs_url":"https://api.github.com/repos/AquiTCD/protospace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AquiTCD/protospace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AquiTCD/protospace/git/refs{/sha}","trees_url":"https://api.github.com/repos/AquiTCD/protospace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AquiTCD/protospace/statuses/{sha}","languages_url":"https://api.github.com/repos/AquiTCD/protospace/languages","stargazers_url":"https://api.github.com/repos/AquiTCD/protospace/stargazers","contributors_url":"https://api.github.com/repos/AquiTCD/protospace/contributors","subscribers_url":"https://api.github.com/repos/AquiTCD/protospace/subscribers","subscription_url":"https://api.github.com/repos/AquiTCD/protospace/subscription","commits_url":"https://api.github.com/repos/AquiTCD/protospace/commits{/sha}","git_commits_url":"https://api.github.com/repos/AquiTCD/protospace/git/commits{/sha}","comments_url":"https://api.github.com/repos/AquiTCD/protospace/comments{/number}","issue_comment_url":"https://api.github.com/repos/AquiTCD/protospace/issues/comments{/number}","contents_url":"https://api.github.com/repos/AquiTCD/protospace/contents/{+path}","compare_url":"https://api.github.com/repos/AquiTCD/protospace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AquiTCD/protospace/merges","archive_url":"https://api.github.com/repos/AquiTCD/protospace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AquiTCD/protospace/downloads","issues_url":"https://api.github.com/repos/AquiTCD/protospace/issues{/number}","pulls_url":"https://api.github.com/repos/AquiTCD/protospace/pulls{/number}","milestones_url":"https://api.github.com/repos/AquiTCD/protospace/milestones{/number}","notifications_url":"https://api.github.com/repos/AquiTCD/protospace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AquiTCD/protospace/labels{/name}","releases_url":"https://api.github.com/repos/AquiTCD/protospace/releases{/id}","deployments_url":"https://api.github.com/repos/AquiTCD/protospace/deployments","created_at":"2016-09-13T04:10:08Z","updated_at":"2016-09-15T07:07:33Z","pushed_at":"2016-09-22T04:48:10Z","git_url":"git://github.com/AquiTCD/protospace.git","ssh_url":"git@github.com:AquiTCD/protospace.git","clone_url":"https://github.com/AquiTCD/protospace.git","svn_url":"https://github.com/AquiTCD/protospace","homepage":null,"size":616,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AquiTCD/protospace/pulls/13"},"html":{"href":"https://github.com/AquiTCD/protospace/pull/13"},"issue":{"href":"https://api.github.com/repos/AquiTCD/protospace/issues/13"},"comments":{"href":"https://api.github.com/repos/AquiTCD/protospace/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/AquiTCD/protospace/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/AquiTCD/protospace/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AquiTCD/protospace/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/AquiTCD/protospace/statuses/902424a21e991285c874488f933a5a40e8c3218b"}}}}
{"actor":{"display_login":"naokishizuka"}}