{"action":"created","comment":{"url":"https://api.github.com/repos/t-kusakabe/protospace/pulls/comments/54343515","id":54343515,"diff_hunk":"@@ -10,154 +10,30 @@\n           = link_to 'Popular PROTO', '#'\n         %li{role: 'presentation'}\n           = link_to 'Newest PROTO', '#'\n-      %button{type: 'button', class: 'btn btn-default col-lg-1'} View Tags\n+      = button_tag 'View Tags', class: 'btn btn-default col-lg-1'\n \n .container.proto-list\n   .row\n-    .col-sm-4.col-md-3.proto-content\n-      .thumbnail\n-        = link_to image_tag('sample.png'), ''\n-        .caption\n-          %h3 Salvation Army on iPad App Wireframe\n-          .proto-meta\n-            .proto-user\n-              = link_to 'by user', '#'\n-            .proto-posted\n-              Apr 26\n-          %ul.proto-tag-list.list-inline\n-            %li \n-              .btn.btn-default= link_to 'iPad', '#'\n-            %li \n-              .btn.btn-default= link_to 'wireframe', '#'\n-    .col-sm-4.col-md-3.proto-content\n-      .thumbnail\n-        = link_to image_tag('sample.png'), ''\n-        .caption\n-          %h3 Salvation Army on iPad App Wireframe\n-          .proto-meta\n-            .proto-user\n-              = link_to 'by user', '#'\n-            .proto-posted\n-              Apr 26\n-          %ul.proto-tag-list.list-inline\n-            %li \n-              .btn.btn-default= link_to 'iPad', '#'\n-            %li \n-              .btn.btn-default= link_to 'wireframe', '#'\n-\n-    .col-sm-4.col-md-3.proto-content\n-      .thumbnail\n-        = link_to image_tag('sample.png'), ''\n-        .caption\n-          %h3 Salvation Army on iPad App Wireframe\n-          .proto-meta\n-            .proto-user\n-              = link_to 'by user', '#'\n-            .proto-posted\n-              Apr 26\n-          %ul.proto-tag-list.list-inline\n-            %li\n-              .btn.btn-default= link_to 'iPad', '#'\n-            %li\n-              .btn.btn-default= link_to 'wireframe', '#'\n-\n-    .col-sm-4.col-md-3.proto-content\n-      .thumbnail\n-        = link_to image_tag('sample.png'), ''\n-        .caption\n-          %h3 Salvation Army on iPad App Wireframe\n-          .proto-meta\n-            .proto-user\n-              = link_to 'by user', '#'\n-            .proto-posted\n-              Apr 26\n-          %ul.proto-tag-list.list-inline\n-            %li \n-              .btn.btn-default= link_to 'iPad', ' #'\n-            %li \n-              .btn.btn-default= link_to 'wireframe', '#'\n-\n-    .col-sm-4.col-md-3.proto-content\n-      .thumbnail\n-        = link_to image_tag('sample.png'), ''\n-        .caption\n-          %h3 Salvation Army on iPad App Wireframe\n-          .proto-meta\n-            .proto-user\n-              = link_to 'by user', '#'\n-            .proto-posted\n-              Apr 26\n-          %ul.proto-tag-list.list-inline\n-            %li \n-              .btn.btn-default= link_to 'iPad', '#'\n-            %li \n-              .btn.btn-default= link_to 'wireframe', '#'\n-\n-    .col-sm-4.col-md-3.proto-content\n-      .thumbnail\n-        = link_to image_tag('sample.png'), ''\n-        .caption\n-          %h3 Salvation Army on iPad App Wireframe\n-          .proto-meta\n-            .proto-user\n-              = link_to 'by user', '#'\n-            .proto-posted\n-              Apr 26\n-          %ul.proto-tag-list.list-inline\n-            %li\n-              .btn.btn-default= link_to 'iPad', '#'\n-            %li\n-              .btn.btn-default= link_to 'wireframe', '#'\n-\n-    .col-sm-4.col-md-3.proto-content\n-      .thumbnail\n-        = link_to image_tag('sample.png'), ''\n-        .caption\n-          %h3 Salvation Army on iPad App Wireframe\n-          .proto-meta\n-            .proto-user\n-              = link_to 'by user', '#'\n-            .proto-posted\n-              Apr 26\n-          %ul.proto-tag-list.list-inline\n-            %li\n-              .btn.btn-default= link_to 'iPad', '#'\n-            %li\n-              .btn.btn-default= link_to 'wireframe', '#'\n-\n-    .col-sm-4.col-md-3.proto-content\n-      .thumbnail\n-        = link_to image_tag('sample.png'), ''\n-        .caption\n-          %h3 Salvation Army on iPad App Wireframe\n-          .proto-meta\n-            .proto-user\n-              = link_to 'by user', '#'\n-            .proto-posted\n-              Apr 26\n-          %ul.proto-tag-list.list-inline\n-            %li\n-              .btn.btn-default= link_to 'iPad', '#'\n-            %li\n-              .btn.btn-default= link_to 'wireframe', '#'\n-\n-.text-center\n-  %ul.pagination\n-    %li.disabled\n-      %a{\"aria-label\" => \"Previous\", :href => \"#\"}\n-        %span{\"aria-hidden\" => \"true\"} «\n-\n-    %li.active\n-      = link_to '1', '#'\n-    %li\n-      = link_to '2', '#'\n-    %li\n-      = link_to '3', '#'\n-    %li\n-      = link_to '4', '#'\n-    %li\n-      = link_to '5', '#'\n-    %li\n-      %a{\"aria-label\" => \"Next\", :href => \"#\"}\n-        %span{\"aria-hidden\" => \"true\"} »\n-\n+    - @prototypes.each do |prototype|\n+      .col-sm-4.col-md-3.proto-content\n+        .thumbnail\n+          - if current_user.id == prototype.user_id\n+            .user_operation\n+              %ul.operation_list\n+                %li\n+                  = link_to 'edit', \"proto/#{prototype.id}/edit\"\n+                %li","path":"app/views/top/index.html.haml","position":164,"original_position":164,"commit_id":"e44ccc518127f0f1d3949200fdf25575996d2012","original_commit_id":"e44ccc518127f0f1d3949200fdf25575996d2012","user":{"login":"yusukeyamane","id":9315114,"avatar_url":"https://avatars.githubusercontent.com/u/9315114?v=3","gravatar_id":"","url":"https://api.github.com/users/yusukeyamane","html_url":"https://github.com/yusukeyamane","followers_url":"https://api.github.com/users/yusukeyamane/followers","following_url":"https://api.github.com/users/yusukeyamane/following{/other_user}","gists_url":"https://api.github.com/users/yusukeyamane/gists{/gist_id}","starred_url":"https://api.github.com/users/yusukeyamane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yusukeyamane/subscriptions","organizations_url":"https://api.github.com/users/yusukeyamane/orgs","repos_url":"https://api.github.com/users/yusukeyamane/repos","events_url":"https://api.github.com/users/yusukeyamane/events{/privacy}","received_events_url":"https://api.github.com/users/yusukeyamane/received_events","type":"User","site_admin":false},"body":"せっかくresources使ってパス作ってるし、prefix使おか！！","created_at":"2016-02-28T03:13:00Z","updated_at":"2016-02-28T03:13:00Z","html_url":"https://github.com/t-kusakabe/protospace/pull/5#discussion_r54343515","pull_request_url":"https://api.github.com/repos/t-kusakabe/protospace/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/t-kusakabe/protospace/pulls/comments/54343515"},"html":{"href":"https://github.com/t-kusakabe/protospace/pull/5#discussion_r54343515"},"pull_request":{"href":"https://api.github.com/repos/t-kusakabe/protospace/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/t-kusakabe/protospace/pulls/5","id":60975405,"html_url":"https://github.com/t-kusakabe/protospace/pull/5","diff_url":"https://github.com/t-kusakabe/protospace/pull/5.diff","patch_url":"https://github.com/t-kusakabe/protospace/pull/5.patch","issue_url":"https://api.github.com/repos/t-kusakabe/protospace/issues/5","number":5,"state":"open","locked":false,"title":"Prototype edit delete","user":{"login":"t-kusakabe","id":15696030,"avatar_url":"https://avatars.githubusercontent.com/u/15696030?v=3","gravatar_id":"","url":"https://api.github.com/users/t-kusakabe","html_url":"https://github.com/t-kusakabe","followers_url":"https://api.github.com/users/t-kusakabe/followers","following_url":"https://api.github.com/users/t-kusakabe/following{/other_user}","gists_url":"https://api.github.com/users/t-kusakabe/gists{/gist_id}","starred_url":"https://api.github.com/users/t-kusakabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t-kusakabe/subscriptions","organizations_url":"https://api.github.com/users/t-kusakabe/orgs","repos_url":"https://api.github.com/users/t-kusakabe/repos","events_url":"https://api.github.com/users/t-kusakabe/events{/privacy}","received_events_url":"https://api.github.com/users/t-kusakabe/received_events","type":"User","site_admin":false},"body":"#WHAT\r\nプロトタイプにedit,delete追加\r\n投稿時にcacheを追加(前のブランチでやるべきでした><)\r\n\r\n#WHY\r\nプロトタイプを編集したり消したりするため\r\nユーザビリティ向上","created_at":"2016-02-28T02:49:39Z","updated_at":"2016-02-28T03:13:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c3ffa13d5f56fca199a4562da322cdd2e88f7560","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/t-kusakabe/protospace/pulls/5/commits","review_comments_url":"https://api.github.com/repos/t-kusakabe/protospace/pulls/5/comments","review_comment_url":"https://api.github.com/repos/t-kusakabe/protospace/pulls/comments{/number}","comments_url":"https://api.github.com/repos/t-kusakabe/protospace/issues/5/comments","statuses_url":"https://api.github.com/repos/t-kusakabe/protospace/statuses/e44ccc518127f0f1d3949200fdf25575996d2012","head":{"label":"t-kusakabe:prototype_edit_delete","ref":"prototype_edit_delete","sha":"e44ccc518127f0f1d3949200fdf25575996d2012","user":{"login":"t-kusakabe","id":15696030,"avatar_url":"https://avatars.githubusercontent.com/u/15696030?v=3","gravatar_id":"","url":"https://api.github.com/users/t-kusakabe","html_url":"https://github.com/t-kusakabe","followers_url":"https://api.github.com/users/t-kusakabe/followers","following_url":"https://api.github.com/users/t-kusakabe/following{/other_user}","gists_url":"https://api.github.com/users/t-kusakabe/gists{/gist_id}","starred_url":"https://api.github.com/users/t-kusakabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t-kusakabe/subscriptions","organizations_url":"https://api.github.com/users/t-kusakabe/orgs","repos_url":"https://api.github.com/users/t-kusakabe/repos","events_url":"https://api.github.com/users/t-kusakabe/events{/privacy}","received_events_url":"https://api.github.com/users/t-kusakabe/received_events","type":"User","site_admin":false},"repo":{"id":50277976,"name":"protospace","full_name":"t-kusakabe/protospace","owner":{"login":"t-kusakabe","id":15696030,"avatar_url":"https://avatars.githubusercontent.com/u/15696030?v=3","gravatar_id":"","url":"https://api.github.com/users/t-kusakabe","html_url":"https://github.com/t-kusakabe","followers_url":"https://api.github.com/users/t-kusakabe/followers","following_url":"https://api.github.com/users/t-kusakabe/following{/other_user}","gists_url":"https://api.github.com/users/t-kusakabe/gists{/gist_id}","starred_url":"https://api.github.com/users/t-kusakabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t-kusakabe/subscriptions","organizations_url":"https://api.github.com/users/t-kusakabe/orgs","repos_url":"https://api.github.com/users/t-kusakabe/repos","events_url":"https://api.github.com/users/t-kusakabe/events{/privacy}","received_events_url":"https://api.github.com/users/t-kusakabe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/t-kusakabe/protospace","description":"","fork":false,"url":"https://api.github.com/repos/t-kusakabe/protospace","forks_url":"https://api.github.com/repos/t-kusakabe/protospace/forks","keys_url":"https://api.github.com/repos/t-kusakabe/protospace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/t-kusakabe/protospace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/t-kusakabe/protospace/teams","hooks_url":"https://api.github.com/repos/t-kusakabe/protospace/hooks","issue_events_url":"https://api.github.com/repos/t-kusakabe/protospace/issues/events{/number}","events_url":"https://api.github.com/repos/t-kusakabe/protospace/events","assignees_url":"https://api.github.com/repos/t-kusakabe/protospace/assignees{/user}","branches_url":"https://api.github.com/repos/t-kusakabe/protospace/branches{/branch}","tags_url":"https://api.github.com/repos/t-kusakabe/protospace/tags","blobs_url":"https://api.github.com/repos/t-kusakabe/protospace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/t-kusakabe/protospace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/t-kusakabe/protospace/git/refs{/sha}","trees_url":"https://api.github.com/repos/t-kusakabe/protospace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/t-kusakabe/protospace/statuses/{sha}","languages_url":"https://api.github.com/repos/t-kusakabe/protospace/languages","stargazers_url":"https://api.github.com/repos/t-kusakabe/protospace/stargazers","contributors_url":"https://api.github.com/repos/t-kusakabe/protospace/contributors","subscribers_url":"https://api.github.com/repos/t-kusakabe/protospace/subscribers","subscription_url":"https://api.github.com/repos/t-kusakabe/protospace/subscription","commits_url":"https://api.github.com/repos/t-kusakabe/protospace/commits{/sha}","git_commits_url":"https://api.github.com/repos/t-kusakabe/protospace/git/commits{/sha}","comments_url":"https://api.github.com/repos/t-kusakabe/protospace/comments{/number}","issue_comment_url":"https://api.github.com/repos/t-kusakabe/protospace/issues/comments{/number}","contents_url":"https://api.github.com/repos/t-kusakabe/protospace/contents/{+path}","compare_url":"https://api.github.com/repos/t-kusakabe/protospace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/t-kusakabe/protospace/merges","archive_url":"https://api.github.com/repos/t-kusakabe/protospace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/t-kusakabe/protospace/downloads","issues_url":"https://api.github.com/repos/t-kusakabe/protospace/issues{/number}","pulls_url":"https://api.github.com/repos/t-kusakabe/protospace/pulls{/number}","milestones_url":"https://api.github.com/repos/t-kusakabe/protospace/milestones{/number}","notifications_url":"https://api.github.com/repos/t-kusakabe/protospace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/t-kusakabe/protospace/labels{/name}","releases_url":"https://api.github.com/repos/t-kusakabe/protospace/releases{/id}","deployments_url":"https://api.github.com/repos/t-kusakabe/protospace/deployments","created_at":"2016-01-24T07:50:19Z","updated_at":"2016-02-19T06:24:40Z","pushed_at":"2016-02-28T02:49:39Z","git_url":"git://github.com/t-kusakabe/protospace.git","ssh_url":"git@github.com:t-kusakabe/protospace.git","clone_url":"https://github.com/t-kusakabe/protospace.git","svn_url":"https://github.com/t-kusakabe/protospace","homepage":"","size":4617,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"t-kusakabe:master","ref":"master","sha":"3d94b9b96283287c1463298af2e22e950c1db4eb","user":{"login":"t-kusakabe","id":15696030,"avatar_url":"https://avatars.githubusercontent.com/u/15696030?v=3","gravatar_id":"","url":"https://api.github.com/users/t-kusakabe","html_url":"https://github.com/t-kusakabe","followers_url":"https://api.github.com/users/t-kusakabe/followers","following_url":"https://api.github.com/users/t-kusakabe/following{/other_user}","gists_url":"https://api.github.com/users/t-kusakabe/gists{/gist_id}","starred_url":"https://api.github.com/users/t-kusakabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t-kusakabe/subscriptions","organizations_url":"https://api.github.com/users/t-kusakabe/orgs","repos_url":"https://api.github.com/users/t-kusakabe/repos","events_url":"https://api.github.com/users/t-kusakabe/events{/privacy}","received_events_url":"https://api.github.com/users/t-kusakabe/received_events","type":"User","site_admin":false},"repo":{"id":50277976,"name":"protospace","full_name":"t-kusakabe/protospace","owner":{"login":"t-kusakabe","id":15696030,"avatar_url":"https://avatars.githubusercontent.com/u/15696030?v=3","gravatar_id":"","url":"https://api.github.com/users/t-kusakabe","html_url":"https://github.com/t-kusakabe","followers_url":"https://api.github.com/users/t-kusakabe/followers","following_url":"https://api.github.com/users/t-kusakabe/following{/other_user}","gists_url":"https://api.github.com/users/t-kusakabe/gists{/gist_id}","starred_url":"https://api.github.com/users/t-kusakabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t-kusakabe/subscriptions","organizations_url":"https://api.github.com/users/t-kusakabe/orgs","repos_url":"https://api.github.com/users/t-kusakabe/repos","events_url":"https://api.github.com/users/t-kusakabe/events{/privacy}","received_events_url":"https://api.github.com/users/t-kusakabe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/t-kusakabe/protospace","description":"","fork":false,"url":"https://api.github.com/repos/t-kusakabe/protospace","forks_url":"https://api.github.com/repos/t-kusakabe/protospace/forks","keys_url":"https://api.github.com/repos/t-kusakabe/protospace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/t-kusakabe/protospace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/t-kusakabe/protospace/teams","hooks_url":"https://api.github.com/repos/t-kusakabe/protospace/hooks","issue_events_url":"https://api.github.com/repos/t-kusakabe/protospace/issues/events{/number}","events_url":"https://api.github.com/repos/t-kusakabe/protospace/events","assignees_url":"https://api.github.com/repos/t-kusakabe/protospace/assignees{/user}","branches_url":"https://api.github.com/repos/t-kusakabe/protospace/branches{/branch}","tags_url":"https://api.github.com/repos/t-kusakabe/protospace/tags","blobs_url":"https://api.github.com/repos/t-kusakabe/protospace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/t-kusakabe/protospace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/t-kusakabe/protospace/git/refs{/sha}","trees_url":"https://api.github.com/repos/t-kusakabe/protospace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/t-kusakabe/protospace/statuses/{sha}","languages_url":"https://api.github.com/repos/t-kusakabe/protospace/languages","stargazers_url":"https://api.github.com/repos/t-kusakabe/protospace/stargazers","contributors_url":"https://api.github.com/repos/t-kusakabe/protospace/contributors","subscribers_url":"https://api.github.com/repos/t-kusakabe/protospace/subscribers","subscription_url":"https://api.github.com/repos/t-kusakabe/protospace/subscription","commits_url":"https://api.github.com/repos/t-kusakabe/protospace/commits{/sha}","git_commits_url":"https://api.github.com/repos/t-kusakabe/protospace/git/commits{/sha}","comments_url":"https://api.github.com/repos/t-kusakabe/protospace/comments{/number}","issue_comment_url":"https://api.github.com/repos/t-kusakabe/protospace/issues/comments{/number}","contents_url":"https://api.github.com/repos/t-kusakabe/protospace/contents/{+path}","compare_url":"https://api.github.com/repos/t-kusakabe/protospace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/t-kusakabe/protospace/merges","archive_url":"https://api.github.com/repos/t-kusakabe/protospace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/t-kusakabe/protospace/downloads","issues_url":"https://api.github.com/repos/t-kusakabe/protospace/issues{/number}","pulls_url":"https://api.github.com/repos/t-kusakabe/protospace/pulls{/number}","milestones_url":"https://api.github.com/repos/t-kusakabe/protospace/milestones{/number}","notifications_url":"https://api.github.com/repos/t-kusakabe/protospace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/t-kusakabe/protospace/labels{/name}","releases_url":"https://api.github.com/repos/t-kusakabe/protospace/releases{/id}","deployments_url":"https://api.github.com/repos/t-kusakabe/protospace/deployments","created_at":"2016-01-24T07:50:19Z","updated_at":"2016-02-19T06:24:40Z","pushed_at":"2016-02-28T02:49:39Z","git_url":"git://github.com/t-kusakabe/protospace.git","ssh_url":"git@github.com:t-kusakabe/protospace.git","clone_url":"https://github.com/t-kusakabe/protospace.git","svn_url":"https://github.com/t-kusakabe/protospace","homepage":"","size":4617,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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/t-kusakabe/protospace/pulls/5"},"html":{"href":"https://github.com/t-kusakabe/protospace/pull/5"},"issue":{"href":"https://api.github.com/repos/t-kusakabe/protospace/issues/5"},"comments":{"href":"https://api.github.com/repos/t-kusakabe/protospace/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/t-kusakabe/protospace/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/t-kusakabe/protospace/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/t-kusakabe/protospace/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/t-kusakabe/protospace/statuses/e44ccc518127f0f1d3949200fdf25575996d2012"}}}}