{"action":"created","comment":{"url":"https://api.github.com/repos/NUTFes/group-manager/pulls/comments/186397998","pull_request_review_id":117966278,"id":186397998,"diff_hunk":"@@ -0,0 +1,57 @@\n+<style type='text/css'>\n+   body {\n+       font-family: \"IPAGothic\"\n+   }\n+  table {\n+    border-collapse: separate;\n+    border-spacing: 0;\n+    vertical-align: middle;\n+    width: 100%;\n+    table-layout: fixed;\n+    word-wrap:break-word;\n+  }\n+  caption, th, td {\n+    text-align: center;\n+    font-weight: normal;\n+    vertical-align: middle;\n+    border: solid 1px;\n+    padding: 0.5em;\n+  }\n+  .pagebreak{\n+    page-break-after: always;\n+  }\n+</style>\n+\n+<div>\n+<table align='center'>\n+  <tbody>\n+    <tr>\n+      <td width=\"17%\">団体名</td>\n+      <td width=\"15%\">役職</td>\n+      <td width=\"20%\">氏名</td>\n+      <td>電話番号</td>\n+      <td>メールアドレス</td>\n+    </tr>\n+  </tbody>\n+  <% @groups.each do |group| %>\n+  <% row_span =  get_subrep_by_group(group.id).try(:length) %>","path":"app/views/representative_contact_pages/representative_contact_sheet.pdf.erb","position":37,"original_position":37,"commit_id":"b7f7a3cf70ed9e4454a97c1f921d26186fd0812b","original_commit_id":"b7f7a3cf70ed9e4454a97c1f921d26186fd0812b","user":{"login":"kkoike03","id":6219249,"avatar_url":"https://avatars3.githubusercontent.com/u/6219249?v=4","gravatar_id":"","url":"https://api.github.com/users/kkoike03","html_url":"https://github.com/kkoike03","followers_url":"https://api.github.com/users/kkoike03/followers","following_url":"https://api.github.com/users/kkoike03/following{/other_user}","gists_url":"https://api.github.com/users/kkoike03/gists{/gist_id}","starred_url":"https://api.github.com/users/kkoike03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkoike03/subscriptions","organizations_url":"https://api.github.com/users/kkoike03/orgs","repos_url":"https://api.github.com/users/kkoike03/repos","events_url":"https://api.github.com/users/kkoike03/events{/privacy}","received_events_url":"https://api.github.com/users/kkoike03/received_events","type":"User","site_admin":false},"body":"`get_subrep_by_group(group.id)` や `get_user_detail_by_group(group.user_id)` で取得したデータを変数に格納してはどうでしょうか．\r\n何回か同じメソッドを呼んでいますが引数が同じなので，一回取得して後はそれを使いまわすのが良いと思います．データベースに問い合わせする回数が減るので．","created_at":"2018-05-07T11:39:02Z","updated_at":"2018-05-07T11:42:32Z","html_url":"https://github.com/NUTFes/group-manager/pull/255#discussion_r186397998","pull_request_url":"https://api.github.com/repos/NUTFes/group-manager/pulls/255","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/NUTFes/group-manager/pulls/comments/186397998"},"html":{"href":"https://github.com/NUTFes/group-manager/pull/255#discussion_r186397998"},"pull_request":{"href":"https://api.github.com/repos/NUTFes/group-manager/pulls/255"}}},"pull_request":{"url":"https://api.github.com/repos/NUTFes/group-manager/pulls/255","id":185903469,"html_url":"https://github.com/NUTFes/group-manager/pull/255","diff_url":"https://github.com/NUTFes/group-manager/pull/255.diff","patch_url":"https://github.com/NUTFes/group-manager/pull/255.patch","issue_url":"https://api.github.com/repos/NUTFes/group-manager/issues/255","number":255,"state":"open","locked":false,"title":"[WIP] 参加団体 連絡先一覧 出力機能","user":{"login":"kichikawa","id":8266526,"avatar_url":"https://avatars2.githubusercontent.com/u/8266526?v=4","gravatar_id":"","url":"https://api.github.com/users/kichikawa","html_url":"https://github.com/kichikawa","followers_url":"https://api.github.com/users/kichikawa/followers","following_url":"https://api.github.com/users/kichikawa/following{/other_user}","gists_url":"https://api.github.com/users/kichikawa/gists{/gist_id}","starred_url":"https://api.github.com/users/kichikawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kichikawa/subscriptions","organizations_url":"https://api.github.com/users/kichikawa/orgs","repos_url":"https://api.github.com/users/kichikawa/repos","events_url":"https://api.github.com/users/kichikawa/events{/privacy}","received_events_url":"https://api.github.com/users/kichikawa/received_events","type":"User","site_admin":false},"body":"関連　#92 \r\n\r\n自分のローカルで既存のものも含めpdf出力ができません．\r\n\r\n![image](https://user-images.githubusercontent.com/8266526/39615626-41466b80-4fb2-11e8-963f-45ba07bed47a.png)\r\n","created_at":"2018-05-04T06:46:48Z","updated_at":"2018-05-07T11:42:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3660aac3fa274976f85617f6c3136a136c53da7f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/NUTFes/group-manager/pulls/255/commits","review_comments_url":"https://api.github.com/repos/NUTFes/group-manager/pulls/255/comments","review_comment_url":"https://api.github.com/repos/NUTFes/group-manager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NUTFes/group-manager/issues/255/comments","statuses_url":"https://api.github.com/repos/NUTFes/group-manager/statuses/b7f7a3cf70ed9e4454a97c1f921d26186fd0812b","head":{"label":"NUTFes:issue92","ref":"issue92","sha":"b7f7a3cf70ed9e4454a97c1f921d26186fd0812b","user":{"login":"NUTFes","id":8457030,"avatar_url":"https://avatars0.githubusercontent.com/u/8457030?v=4","gravatar_id":"","url":"https://api.github.com/users/NUTFes","html_url":"https://github.com/NUTFes","followers_url":"https://api.github.com/users/NUTFes/followers","following_url":"https://api.github.com/users/NUTFes/following{/other_user}","gists_url":"https://api.github.com/users/NUTFes/gists{/gist_id}","starred_url":"https://api.github.com/users/NUTFes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NUTFes/subscriptions","organizations_url":"https://api.github.com/users/NUTFes/orgs","repos_url":"https://api.github.com/users/NUTFes/repos","events_url":"https://api.github.com/users/NUTFes/events{/privacy}","received_events_url":"https://api.github.com/users/NUTFes/received_events","type":"Organization","site_admin":false},"repo":{"id":35105168,"name":"group-manager","full_name":"NUTFes/group-manager","owner":{"login":"NUTFes","id":8457030,"avatar_url":"https://avatars0.githubusercontent.com/u/8457030?v=4","gravatar_id":"","url":"https://api.github.com/users/NUTFes","html_url":"https://github.com/NUTFes","followers_url":"https://api.github.com/users/NUTFes/followers","following_url":"https://api.github.com/users/NUTFes/following{/other_user}","gists_url":"https://api.github.com/users/NUTFes/gists{/gist_id}","starred_url":"https://api.github.com/users/NUTFes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NUTFes/subscriptions","organizations_url":"https://api.github.com/users/NUTFes/orgs","repos_url":"https://api.github.com/users/NUTFes/repos","events_url":"https://api.github.com/users/NUTFes/events{/privacy}","received_events_url":"https://api.github.com/users/NUTFes/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NUTFes/group-manager","description":null,"fork":false,"url":"https://api.github.com/repos/NUTFes/group-manager","forks_url":"https://api.github.com/repos/NUTFes/group-manager/forks","keys_url":"https://api.github.com/repos/NUTFes/group-manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NUTFes/group-manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NUTFes/group-manager/teams","hooks_url":"https://api.github.com/repos/NUTFes/group-manager/hooks","issue_events_url":"https://api.github.com/repos/NUTFes/group-manager/issues/events{/number}","events_url":"https://api.github.com/repos/NUTFes/group-manager/events","assignees_url":"https://api.github.com/repos/NUTFes/group-manager/assignees{/user}","branches_url":"https://api.github.com/repos/NUTFes/group-manager/branches{/branch}","tags_url":"https://api.github.com/repos/NUTFes/group-manager/tags","blobs_url":"https://api.github.com/repos/NUTFes/group-manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NUTFes/group-manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NUTFes/group-manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/NUTFes/group-manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NUTFes/group-manager/statuses/{sha}","languages_url":"https://api.github.com/repos/NUTFes/group-manager/languages","stargazers_url":"https://api.github.com/repos/NUTFes/group-manager/stargazers","contributors_url":"https://api.github.com/repos/NUTFes/group-manager/contributors","subscribers_url":"https://api.github.com/repos/NUTFes/group-manager/subscribers","subscription_url":"https://api.github.com/repos/NUTFes/group-manager/subscription","commits_url":"https://api.github.com/repos/NUTFes/group-manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/NUTFes/group-manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/NUTFes/group-manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/NUTFes/group-manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/NUTFes/group-manager/contents/{+path}","compare_url":"https://api.github.com/repos/NUTFes/group-manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NUTFes/group-manager/merges","archive_url":"https://api.github.com/repos/NUTFes/group-manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NUTFes/group-manager/downloads","issues_url":"https://api.github.com/repos/NUTFes/group-manager/issues{/number}","pulls_url":"https://api.github.com/repos/NUTFes/group-manager/pulls{/number}","milestones_url":"https://api.github.com/repos/NUTFes/group-manager/milestones{/number}","notifications_url":"https://api.github.com/repos/NUTFes/group-manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NUTFes/group-manager/labels{/name}","releases_url":"https://api.github.com/repos/NUTFes/group-manager/releases{/id}","deployments_url":"https://api.github.com/repos/NUTFes/group-manager/deployments","created_at":"2015-05-05T14:36:09Z","updated_at":"2018-05-05T05:06:41Z","pushed_at":"2018-05-07T03:32:21Z","git_url":"git://github.com/NUTFes/group-manager.git","ssh_url":"git@github.com:NUTFes/group-manager.git","clone_url":"https://github.com/NUTFes/group-manager.git","svn_url":"https://github.com/NUTFes/group-manager","homepage":null,"size":6288,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":35,"license":null,"forks":9,"open_issues":35,"watchers":0,"default_branch":"develop"}},"base":{"label":"NUTFes:develop","ref":"develop","sha":"93a144b55f1e4f515856b02531d8fbbec430879f","user":{"login":"NUTFes","id":8457030,"avatar_url":"https://avatars0.githubusercontent.com/u/8457030?v=4","gravatar_id":"","url":"https://api.github.com/users/NUTFes","html_url":"https://github.com/NUTFes","followers_url":"https://api.github.com/users/NUTFes/followers","following_url":"https://api.github.com/users/NUTFes/following{/other_user}","gists_url":"https://api.github.com/users/NUTFes/gists{/gist_id}","starred_url":"https://api.github.com/users/NUTFes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NUTFes/subscriptions","organizations_url":"https://api.github.com/users/NUTFes/orgs","repos_url":"https://api.github.com/users/NUTFes/repos","events_url":"https://api.github.com/users/NUTFes/events{/privacy}","received_events_url":"https://api.github.com/users/NUTFes/received_events","type":"Organization","site_admin":false},"repo":{"id":35105168,"name":"group-manager","full_name":"NUTFes/group-manager","owner":{"login":"NUTFes","id":8457030,"avatar_url":"https://avatars0.githubusercontent.com/u/8457030?v=4","gravatar_id":"","url":"https://api.github.com/users/NUTFes","html_url":"https://github.com/NUTFes","followers_url":"https://api.github.com/users/NUTFes/followers","following_url":"https://api.github.com/users/NUTFes/following{/other_user}","gists_url":"https://api.github.com/users/NUTFes/gists{/gist_id}","starred_url":"https://api.github.com/users/NUTFes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NUTFes/subscriptions","organizations_url":"https://api.github.com/users/NUTFes/orgs","repos_url":"https://api.github.com/users/NUTFes/repos","events_url":"https://api.github.com/users/NUTFes/events{/privacy}","received_events_url":"https://api.github.com/users/NUTFes/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NUTFes/group-manager","description":null,"fork":false,"url":"https://api.github.com/repos/NUTFes/group-manager","forks_url":"https://api.github.com/repos/NUTFes/group-manager/forks","keys_url":"https://api.github.com/repos/NUTFes/group-manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NUTFes/group-manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NUTFes/group-manager/teams","hooks_url":"https://api.github.com/repos/NUTFes/group-manager/hooks","issue_events_url":"https://api.github.com/repos/NUTFes/group-manager/issues/events{/number}","events_url":"https://api.github.com/repos/NUTFes/group-manager/events","assignees_url":"https://api.github.com/repos/NUTFes/group-manager/assignees{/user}","branches_url":"https://api.github.com/repos/NUTFes/group-manager/branches{/branch}","tags_url":"https://api.github.com/repos/NUTFes/group-manager/tags","blobs_url":"https://api.github.com/repos/NUTFes/group-manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NUTFes/group-manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NUTFes/group-manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/NUTFes/group-manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NUTFes/group-manager/statuses/{sha}","languages_url":"https://api.github.com/repos/NUTFes/group-manager/languages","stargazers_url":"https://api.github.com/repos/NUTFes/group-manager/stargazers","contributors_url":"https://api.github.com/repos/NUTFes/group-manager/contributors","subscribers_url":"https://api.github.com/repos/NUTFes/group-manager/subscribers","subscription_url":"https://api.github.com/repos/NUTFes/group-manager/subscription","commits_url":"https://api.github.com/repos/NUTFes/group-manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/NUTFes/group-manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/NUTFes/group-manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/NUTFes/group-manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/NUTFes/group-manager/contents/{+path}","compare_url":"https://api.github.com/repos/NUTFes/group-manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NUTFes/group-manager/merges","archive_url":"https://api.github.com/repos/NUTFes/group-manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NUTFes/group-manager/downloads","issues_url":"https://api.github.com/repos/NUTFes/group-manager/issues{/number}","pulls_url":"https://api.github.com/repos/NUTFes/group-manager/pulls{/number}","milestones_url":"https://api.github.com/repos/NUTFes/group-manager/milestones{/number}","notifications_url":"https://api.github.com/repos/NUTFes/group-manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NUTFes/group-manager/labels{/name}","releases_url":"https://api.github.com/repos/NUTFes/group-manager/releases{/id}","deployments_url":"https://api.github.com/repos/NUTFes/group-manager/deployments","created_at":"2015-05-05T14:36:09Z","updated_at":"2018-05-05T05:06:41Z","pushed_at":"2018-05-07T03:32:21Z","git_url":"git://github.com/NUTFes/group-manager.git","ssh_url":"git@github.com:NUTFes/group-manager.git","clone_url":"https://github.com/NUTFes/group-manager.git","svn_url":"https://github.com/NUTFes/group-manager","homepage":null,"size":6288,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":35,"license":null,"forks":9,"open_issues":35,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/NUTFes/group-manager/pulls/255"},"html":{"href":"https://github.com/NUTFes/group-manager/pull/255"},"issue":{"href":"https://api.github.com/repos/NUTFes/group-manager/issues/255"},"comments":{"href":"https://api.github.com/repos/NUTFes/group-manager/issues/255/comments"},"review_comments":{"href":"https://api.github.com/repos/NUTFes/group-manager/pulls/255/comments"},"review_comment":{"href":"https://api.github.com/repos/NUTFes/group-manager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NUTFes/group-manager/pulls/255/commits"},"statuses":{"href":"https://api.github.com/repos/NUTFes/group-manager/statuses/b7f7a3cf70ed9e4454a97c1f921d26186fd0812b"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"kkoike03"}}