{"action":"created","comment":{"url":"https://api.github.com/repos/yuyatoyoda/blog/pulls/comments/31443513","id":31443513,"diff_hunk":"@@ -1,9 +1,27 @@\n-<h1>日報一覧</h1>\n-\n+<style type=\"text/css\">\n+  <!--\n+  h2{\n+    display: inline;\n+  }\n+  -->\n+</style>\n+<br>\n+<h2>日報一覧         </h2>\n+<%= link_to '新規作成', new_article_path %>\n+<div style=\"float:right\">\n+  <%= search_form_for @q do |f| %>\n+    <%= f.label :shinchoku_or_kansou_or_manabi_or_next_do_or_memo_cont, \"検索\" %>\n+    <%= f.search_field :shinchoku_or_kansou_or_manabi_or_next_do_or_memo_cont %>\n+    <%= f.submit %>\n+  <% end %>\n+</div>\n+<br>\n+<br>\n+<%#= @me2 %>\n <ul>\n-<% @articles.each do |article| %>\n+<% @articles.order(\"created_at DESC\").each do |article| %>","path":"app/views/articles/index.html.erb","position":25,"original_position":25,"commit_id":"b956f37a5aff6d21f8e24c99a1f90c15bf10c7dc","original_commit_id":"b956f37a5aff6d21f8e24c99a1f90c15bf10c7dc","user":{"login":"knao124","id":4919012,"avatar_url":"https://avatars.githubusercontent.com/u/4919012?v=3","gravatar_id":"","url":"https://api.github.com/users/knao124","html_url":"https://github.com/knao124","followers_url":"https://api.github.com/users/knao124/followers","following_url":"https://api.github.com/users/knao124/following{/other_user}","gists_url":"https://api.github.com/users/knao124/gists{/gist_id}","starred_url":"https://api.github.com/users/knao124/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knao124/subscriptions","organizations_url":"https://api.github.com/users/knao124/orgs","repos_url":"https://api.github.com/users/knao124/repos","events_url":"https://api.github.com/users/knao124/events{/privacy}","received_events_url":"https://api.github.com/users/knao124/received_events","type":"User","site_admin":false},"body":"これはあかん〜ロジックをviewでかくのはNG.\r\ncontrollerで\r\n@latest_articles\r\nといった変数にorder済みのarticleいれておく。","created_at":"2015-06-01T16:34:33Z","updated_at":"2015-06-01T16:34:33Z","html_url":"https://github.com/yuyatoyoda/blog/pull/11#discussion_r31443513","pull_request_url":"https://api.github.com/repos/yuyatoyoda/blog/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/yuyatoyoda/blog/pulls/comments/31443513"},"html":{"href":"https://github.com/yuyatoyoda/blog/pull/11#discussion_r31443513"},"pull_request":{"href":"https://api.github.com/repos/yuyatoyoda/blog/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/yuyatoyoda/blog/pulls/11","id":36196039,"html_url":"https://github.com/yuyatoyoda/blog/pull/11","diff_url":"https://github.com/yuyatoyoda/blog/pull/11.diff","patch_url":"https://github.com/yuyatoyoda/blog/pull/11.patch","issue_url":"https://api.github.com/repos/yuyatoyoda/blog/issues/11","number":11,"state":"open","locked":false,"title":"Api","user":{"login":"yuyatoyoda","id":12079925,"avatar_url":"https://avatars.githubusercontent.com/u/12079925?v=3","gravatar_id":"","url":"https://api.github.com/users/yuyatoyoda","html_url":"https://github.com/yuyatoyoda","followers_url":"https://api.github.com/users/yuyatoyoda/followers","following_url":"https://api.github.com/users/yuyatoyoda/following{/other_user}","gists_url":"https://api.github.com/users/yuyatoyoda/gists{/gist_id}","starred_url":"https://api.github.com/users/yuyatoyoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuyatoyoda/subscriptions","organizations_url":"https://api.github.com/users/yuyatoyoda/orgs","repos_url":"https://api.github.com/users/yuyatoyoda/repos","events_url":"https://api.github.com/users/yuyatoyoda/events{/privacy}","received_events_url":"https://api.github.com/users/yuyatoyoda/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-26T12:13:22Z","updated_at":"2015-06-01T16:34:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a06ccfeec3b975afa971295d7c6b0a85f80aed39","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yuyatoyoda/blog/pulls/11/commits","review_comments_url":"https://api.github.com/repos/yuyatoyoda/blog/pulls/11/comments","review_comment_url":"https://api.github.com/repos/yuyatoyoda/blog/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yuyatoyoda/blog/issues/11/comments","statuses_url":"https://api.github.com/repos/yuyatoyoda/blog/statuses/b956f37a5aff6d21f8e24c99a1f90c15bf10c7dc","head":{"label":"yuyatoyoda:api","ref":"api","sha":"b956f37a5aff6d21f8e24c99a1f90c15bf10c7dc","user":{"login":"yuyatoyoda","id":12079925,"avatar_url":"https://avatars.githubusercontent.com/u/12079925?v=3","gravatar_id":"","url":"https://api.github.com/users/yuyatoyoda","html_url":"https://github.com/yuyatoyoda","followers_url":"https://api.github.com/users/yuyatoyoda/followers","following_url":"https://api.github.com/users/yuyatoyoda/following{/other_user}","gists_url":"https://api.github.com/users/yuyatoyoda/gists{/gist_id}","starred_url":"https://api.github.com/users/yuyatoyoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuyatoyoda/subscriptions","organizations_url":"https://api.github.com/users/yuyatoyoda/orgs","repos_url":"https://api.github.com/users/yuyatoyoda/repos","events_url":"https://api.github.com/users/yuyatoyoda/events{/privacy}","received_events_url":"https://api.github.com/users/yuyatoyoda/received_events","type":"User","site_admin":false},"repo":{"id":34440903,"name":"blog","full_name":"yuyatoyoda/blog","owner":{"login":"yuyatoyoda","id":12079925,"avatar_url":"https://avatars.githubusercontent.com/u/12079925?v=3","gravatar_id":"","url":"https://api.github.com/users/yuyatoyoda","html_url":"https://github.com/yuyatoyoda","followers_url":"https://api.github.com/users/yuyatoyoda/followers","following_url":"https://api.github.com/users/yuyatoyoda/following{/other_user}","gists_url":"https://api.github.com/users/yuyatoyoda/gists{/gist_id}","starred_url":"https://api.github.com/users/yuyatoyoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuyatoyoda/subscriptions","organizations_url":"https://api.github.com/users/yuyatoyoda/orgs","repos_url":"https://api.github.com/users/yuyatoyoda/repos","events_url":"https://api.github.com/users/yuyatoyoda/events{/privacy}","received_events_url":"https://api.github.com/users/yuyatoyoda/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yuyatoyoda/blog","description":"","fork":false,"url":"https://api.github.com/repos/yuyatoyoda/blog","forks_url":"https://api.github.com/repos/yuyatoyoda/blog/forks","keys_url":"https://api.github.com/repos/yuyatoyoda/blog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yuyatoyoda/blog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yuyatoyoda/blog/teams","hooks_url":"https://api.github.com/repos/yuyatoyoda/blog/hooks","issue_events_url":"https://api.github.com/repos/yuyatoyoda/blog/issues/events{/number}","events_url":"https://api.github.com/repos/yuyatoyoda/blog/events","assignees_url":"https://api.github.com/repos/yuyatoyoda/blog/assignees{/user}","branches_url":"https://api.github.com/repos/yuyatoyoda/blog/branches{/branch}","tags_url":"https://api.github.com/repos/yuyatoyoda/blog/tags","blobs_url":"https://api.github.com/repos/yuyatoyoda/blog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yuyatoyoda/blog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yuyatoyoda/blog/git/refs{/sha}","trees_url":"https://api.github.com/repos/yuyatoyoda/blog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yuyatoyoda/blog/statuses/{sha}","languages_url":"https://api.github.com/repos/yuyatoyoda/blog/languages","stargazers_url":"https://api.github.com/repos/yuyatoyoda/blog/stargazers","contributors_url":"https://api.github.com/repos/yuyatoyoda/blog/contributors","subscribers_url":"https://api.github.com/repos/yuyatoyoda/blog/subscribers","subscription_url":"https://api.github.com/repos/yuyatoyoda/blog/subscription","commits_url":"https://api.github.com/repos/yuyatoyoda/blog/commits{/sha}","git_commits_url":"https://api.github.com/repos/yuyatoyoda/blog/git/commits{/sha}","comments_url":"https://api.github.com/repos/yuyatoyoda/blog/comments{/number}","issue_comment_url":"https://api.github.com/repos/yuyatoyoda/blog/issues/comments{/number}","contents_url":"https://api.github.com/repos/yuyatoyoda/blog/contents/{+path}","compare_url":"https://api.github.com/repos/yuyatoyoda/blog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yuyatoyoda/blog/merges","archive_url":"https://api.github.com/repos/yuyatoyoda/blog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yuyatoyoda/blog/downloads","issues_url":"https://api.github.com/repos/yuyatoyoda/blog/issues{/number}","pulls_url":"https://api.github.com/repos/yuyatoyoda/blog/pulls{/number}","milestones_url":"https://api.github.com/repos/yuyatoyoda/blog/milestones{/number}","notifications_url":"https://api.github.com/repos/yuyatoyoda/blog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yuyatoyoda/blog/labels{/name}","releases_url":"https://api.github.com/repos/yuyatoyoda/blog/releases{/id}","created_at":"2015-04-23T07:31:28Z","updated_at":"2015-05-04T09:54:59Z","pushed_at":"2015-06-01T11:42:13Z","git_url":"git://github.com/yuyatoyoda/blog.git","ssh_url":"git@github.com:yuyatoyoda/blog.git","clone_url":"https://github.com/yuyatoyoda/blog.git","svn_url":"https://github.com/yuyatoyoda/blog","homepage":null,"size":1896,"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":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"yuyatoyoda:master","ref":"master","sha":"c6f0150890c1b5d0049d5b1bd8980b562cb65bc9","user":{"login":"yuyatoyoda","id":12079925,"avatar_url":"https://avatars.githubusercontent.com/u/12079925?v=3","gravatar_id":"","url":"https://api.github.com/users/yuyatoyoda","html_url":"https://github.com/yuyatoyoda","followers_url":"https://api.github.com/users/yuyatoyoda/followers","following_url":"https://api.github.com/users/yuyatoyoda/following{/other_user}","gists_url":"https://api.github.com/users/yuyatoyoda/gists{/gist_id}","starred_url":"https://api.github.com/users/yuyatoyoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuyatoyoda/subscriptions","organizations_url":"https://api.github.com/users/yuyatoyoda/orgs","repos_url":"https://api.github.com/users/yuyatoyoda/repos","events_url":"https://api.github.com/users/yuyatoyoda/events{/privacy}","received_events_url":"https://api.github.com/users/yuyatoyoda/received_events","type":"User","site_admin":false},"repo":{"id":34440903,"name":"blog","full_name":"yuyatoyoda/blog","owner":{"login":"yuyatoyoda","id":12079925,"avatar_url":"https://avatars.githubusercontent.com/u/12079925?v=3","gravatar_id":"","url":"https://api.github.com/users/yuyatoyoda","html_url":"https://github.com/yuyatoyoda","followers_url":"https://api.github.com/users/yuyatoyoda/followers","following_url":"https://api.github.com/users/yuyatoyoda/following{/other_user}","gists_url":"https://api.github.com/users/yuyatoyoda/gists{/gist_id}","starred_url":"https://api.github.com/users/yuyatoyoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuyatoyoda/subscriptions","organizations_url":"https://api.github.com/users/yuyatoyoda/orgs","repos_url":"https://api.github.com/users/yuyatoyoda/repos","events_url":"https://api.github.com/users/yuyatoyoda/events{/privacy}","received_events_url":"https://api.github.com/users/yuyatoyoda/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yuyatoyoda/blog","description":"","fork":false,"url":"https://api.github.com/repos/yuyatoyoda/blog","forks_url":"https://api.github.com/repos/yuyatoyoda/blog/forks","keys_url":"https://api.github.com/repos/yuyatoyoda/blog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yuyatoyoda/blog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yuyatoyoda/blog/teams","hooks_url":"https://api.github.com/repos/yuyatoyoda/blog/hooks","issue_events_url":"https://api.github.com/repos/yuyatoyoda/blog/issues/events{/number}","events_url":"https://api.github.com/repos/yuyatoyoda/blog/events","assignees_url":"https://api.github.com/repos/yuyatoyoda/blog/assignees{/user}","branches_url":"https://api.github.com/repos/yuyatoyoda/blog/branches{/branch}","tags_url":"https://api.github.com/repos/yuyatoyoda/blog/tags","blobs_url":"https://api.github.com/repos/yuyatoyoda/blog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yuyatoyoda/blog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yuyatoyoda/blog/git/refs{/sha}","trees_url":"https://api.github.com/repos/yuyatoyoda/blog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yuyatoyoda/blog/statuses/{sha}","languages_url":"https://api.github.com/repos/yuyatoyoda/blog/languages","stargazers_url":"https://api.github.com/repos/yuyatoyoda/blog/stargazers","contributors_url":"https://api.github.com/repos/yuyatoyoda/blog/contributors","subscribers_url":"https://api.github.com/repos/yuyatoyoda/blog/subscribers","subscription_url":"https://api.github.com/repos/yuyatoyoda/blog/subscription","commits_url":"https://api.github.com/repos/yuyatoyoda/blog/commits{/sha}","git_commits_url":"https://api.github.com/repos/yuyatoyoda/blog/git/commits{/sha}","comments_url":"https://api.github.com/repos/yuyatoyoda/blog/comments{/number}","issue_comment_url":"https://api.github.com/repos/yuyatoyoda/blog/issues/comments{/number}","contents_url":"https://api.github.com/repos/yuyatoyoda/blog/contents/{+path}","compare_url":"https://api.github.com/repos/yuyatoyoda/blog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yuyatoyoda/blog/merges","archive_url":"https://api.github.com/repos/yuyatoyoda/blog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yuyatoyoda/blog/downloads","issues_url":"https://api.github.com/repos/yuyatoyoda/blog/issues{/number}","pulls_url":"https://api.github.com/repos/yuyatoyoda/blog/pulls{/number}","milestones_url":"https://api.github.com/repos/yuyatoyoda/blog/milestones{/number}","notifications_url":"https://api.github.com/repos/yuyatoyoda/blog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yuyatoyoda/blog/labels{/name}","releases_url":"https://api.github.com/repos/yuyatoyoda/blog/releases{/id}","created_at":"2015-04-23T07:31:28Z","updated_at":"2015-05-04T09:54:59Z","pushed_at":"2015-06-01T11:42:13Z","git_url":"git://github.com/yuyatoyoda/blog.git","ssh_url":"git@github.com:yuyatoyoda/blog.git","clone_url":"https://github.com/yuyatoyoda/blog.git","svn_url":"https://github.com/yuyatoyoda/blog","homepage":null,"size":1896,"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":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yuyatoyoda/blog/pulls/11"},"html":{"href":"https://github.com/yuyatoyoda/blog/pull/11"},"issue":{"href":"https://api.github.com/repos/yuyatoyoda/blog/issues/11"},"comments":{"href":"https://api.github.com/repos/yuyatoyoda/blog/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/yuyatoyoda/blog/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/yuyatoyoda/blog/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yuyatoyoda/blog/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/yuyatoyoda/blog/statuses/b956f37a5aff6d21f8e24c99a1f90c15bf10c7dc"}}}}