{"action":"created","comment":{"url":"https://api.github.com/repos/18F/openFEC-web-app/pulls/comments/30908093","id":30908093,"diff_hunk":"@@ -20,14 +20,18 @@ <h4 class=\"figure__title\">Totals for {{totals.cycle|fmt_year_range|default(\"unav\n   <div class=\"table__half\">\n     <div class=\"table__row\">\n       <div class=\"table__cell\"><span class=\"term\" data-term=\"Cash on Hand\">Cash on hand</span></div>\n-      <div class=\"table__cell\">{{reports.cash_on_hand_end_period|currency|default(\"unavailable\")}}</div>\n+      <div class=\"table__cell\">{{report.cash_on_hand_end_period|currency|default(\"unavailable\")}}</div>\n     </div>\n     <div class=\"table__row\">\n       <div class=\"table__cell\"><span class=\"term\" data-term=\"Debt\">Debt</span></div>\n-      <div class=\"table__cell\">{{reports.debts_owed_by_committee|currency|default(\"unavailable\")}}</div>\n+      <div class=\"table__cell\">{{report.debts_owed_by_committee|currency|default(\"unavailable\")}}</div>\n     </div>\n     <div class=\"table__row--note\">\n-      Source: <a href=\"http://docquery.fec.gov/pdf/{{ reports.beginning_image_number|last_n_characters }}/{{ reports.beginning_image_number }}/{{ reports.beginning_image_number }}.pdf\">{{reports.report_type_full|fmt_report_desc|default(\"unavailable\")}} {{ reports.report_year }}</a>\n+      {% if report %}\n+      Source: <a href=\"{{ report|url_to_fec_pdf }}\">{{report.report_type_full|fmt_report_desc|default(\"Report\")}} {{ report.report_year }}</a>","path":"templates/partials/committee-summary.html","position":22,"original_position":22,"commit_id":"1252631e9d1f206c321b654a61c95a460f75e232","original_commit_id":"1252631e9d1f206c321b654a61c95a460f75e232","user":{"login":"arowla","id":166715,"avatar_url":"https://avatars.githubusercontent.com/u/166715?v=3","gravatar_id":"","url":"https://api.github.com/users/arowla","html_url":"https://github.com/arowla","followers_url":"https://api.github.com/users/arowla/followers","following_url":"https://api.github.com/users/arowla/following{/other_user}","gists_url":"https://api.github.com/users/arowla/gists{/gist_id}","starred_url":"https://api.github.com/users/arowla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arowla/subscriptions","organizations_url":"https://api.github.com/users/arowla/orgs","repos_url":"https://api.github.com/users/arowla/repos","events_url":"https://api.github.com/users/arowla/events{/privacy}","received_events_url":"https://api.github.com/users/arowla/received_events","type":"User","site_admin":false},"body":"@jmcarp I went ahead and changed the default report text to read just \"Report\" in the case that we have a report but for some reason the `report_type_full` is not filled in. Does that work, do you think?","created_at":"2015-05-22T16:06:02Z","updated_at":"2015-05-22T16:06:02Z","html_url":"https://github.com/18F/openFEC-web-app/pull/194#discussion_r30908093","pull_request_url":"https://api.github.com/repos/18F/openFEC-web-app/pulls/194","_links":{"self":{"href":"https://api.github.com/repos/18F/openFEC-web-app/pulls/comments/30908093"},"html":{"href":"https://github.com/18F/openFEC-web-app/pull/194#discussion_r30908093"},"pull_request":{"href":"https://api.github.com/repos/18F/openFEC-web-app/pulls/194"}}},"pull_request":{"url":"https://api.github.com/repos/18F/openFEC-web-app/pulls/194","id":35966644,"html_url":"https://github.com/18F/openFEC-web-app/pull/194","diff_url":"https://github.com/18F/openFEC-web-app/pull/194.diff","patch_url":"https://github.com/18F/openFEC-web-app/pull/194.patch","issue_url":"https://api.github.com/repos/18F/openFEC-web-app/issues/194","number":194,"state":"open","locked":false,"title":"Changed FEC PDF links to be built by a filter","user":{"login":"arowla","id":166715,"avatar_url":"https://avatars.githubusercontent.com/u/166715?v=3","gravatar_id":"","url":"https://api.github.com/users/arowla","html_url":"https://github.com/arowla","followers_url":"https://api.github.com/users/arowla/followers","following_url":"https://api.github.com/users/arowla/following{/other_user}","gists_url":"https://api.github.com/users/arowla/gists{/gist_id}","starred_url":"https://api.github.com/users/arowla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arowla/subscriptions","organizations_url":"https://api.github.com/users/arowla/orgs","repos_url":"https://api.github.com/users/arowla/repos","events_url":"https://api.github.com/users/arowla/events{/privacy}","received_events_url":"https://api.github.com/users/arowla/received_events","type":"User","site_admin":false},"body":"- Added check in template to make sure we don't try building a\r\n  non-existent link","created_at":"2015-05-21T19:05:57Z","updated_at":"2015-05-22T16:06:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2701c2c9ee968c71afd173eeb5f811530f14dcf8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/18F/openFEC-web-app/pulls/194/commits","review_comments_url":"https://api.github.com/repos/18F/openFEC-web-app/pulls/194/comments","review_comment_url":"https://api.github.com/repos/18F/openFEC-web-app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/18F/openFEC-web-app/issues/194/comments","statuses_url":"https://api.github.com/repos/18F/openFEC-web-app/statuses/1252631e9d1f206c321b654a61c95a460f75e232","head":{"label":"18F:feature/fec-pdf-links","ref":"feature/fec-pdf-links","sha":"1252631e9d1f206c321b654a61c95a460f75e232","user":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"repo":{"id":25273785,"name":"openFEC-web-app","full_name":"18F/openFEC-web-app","owner":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/18F/openFEC-web-app","description":"Server- and client-side web application for the OpenFEC data site.","fork":false,"url":"https://api.github.com/repos/18F/openFEC-web-app","forks_url":"https://api.github.com/repos/18F/openFEC-web-app/forks","keys_url":"https://api.github.com/repos/18F/openFEC-web-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/18F/openFEC-web-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/18F/openFEC-web-app/teams","hooks_url":"https://api.github.com/repos/18F/openFEC-web-app/hooks","issue_events_url":"https://api.github.com/repos/18F/openFEC-web-app/issues/events{/number}","events_url":"https://api.github.com/repos/18F/openFEC-web-app/events","assignees_url":"https://api.github.com/repos/18F/openFEC-web-app/assignees{/user}","branches_url":"https://api.github.com/repos/18F/openFEC-web-app/branches{/branch}","tags_url":"https://api.github.com/repos/18F/openFEC-web-app/tags","blobs_url":"https://api.github.com/repos/18F/openFEC-web-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/18F/openFEC-web-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/18F/openFEC-web-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/18F/openFEC-web-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/18F/openFEC-web-app/statuses/{sha}","languages_url":"https://api.github.com/repos/18F/openFEC-web-app/languages","stargazers_url":"https://api.github.com/repos/18F/openFEC-web-app/stargazers","contributors_url":"https://api.github.com/repos/18F/openFEC-web-app/contributors","subscribers_url":"https://api.github.com/repos/18F/openFEC-web-app/subscribers","subscription_url":"https://api.github.com/repos/18F/openFEC-web-app/subscription","commits_url":"https://api.github.com/repos/18F/openFEC-web-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/18F/openFEC-web-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/18F/openFEC-web-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/18F/openFEC-web-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/18F/openFEC-web-app/contents/{+path}","compare_url":"https://api.github.com/repos/18F/openFEC-web-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/18F/openFEC-web-app/merges","archive_url":"https://api.github.com/repos/18F/openFEC-web-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/18F/openFEC-web-app/downloads","issues_url":"https://api.github.com/repos/18F/openFEC-web-app/issues{/number}","pulls_url":"https://api.github.com/repos/18F/openFEC-web-app/pulls{/number}","milestones_url":"https://api.github.com/repos/18F/openFEC-web-app/milestones{/number}","notifications_url":"https://api.github.com/repos/18F/openFEC-web-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/18F/openFEC-web-app/labels{/name}","releases_url":"https://api.github.com/repos/18F/openFEC-web-app/releases{/id}","created_at":"2014-10-15T21:12:32Z","updated_at":"2015-05-11T15:41:52Z","pushed_at":"2015-05-22T16:05:20Z","git_url":"git://github.com/18F/openFEC-web-app.git","ssh_url":"git@github.com:18F/openFEC-web-app.git","clone_url":"https://github.com/18F/openFEC-web-app.git","svn_url":"https://github.com/18F/openFEC-web-app","homepage":"","size":12050,"stargazers_count":7,"watchers_count":7,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":7,"forks":5,"open_issues":7,"watchers":7,"default_branch":"develop"}},"base":{"label":"18F:develop","ref":"develop","sha":"2dcd508529193908f4d0008f4dea5337eaa8b267","user":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"repo":{"id":25273785,"name":"openFEC-web-app","full_name":"18F/openFEC-web-app","owner":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/18F/openFEC-web-app","description":"Server- and client-side web application for the OpenFEC data site.","fork":false,"url":"https://api.github.com/repos/18F/openFEC-web-app","forks_url":"https://api.github.com/repos/18F/openFEC-web-app/forks","keys_url":"https://api.github.com/repos/18F/openFEC-web-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/18F/openFEC-web-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/18F/openFEC-web-app/teams","hooks_url":"https://api.github.com/repos/18F/openFEC-web-app/hooks","issue_events_url":"https://api.github.com/repos/18F/openFEC-web-app/issues/events{/number}","events_url":"https://api.github.com/repos/18F/openFEC-web-app/events","assignees_url":"https://api.github.com/repos/18F/openFEC-web-app/assignees{/user}","branches_url":"https://api.github.com/repos/18F/openFEC-web-app/branches{/branch}","tags_url":"https://api.github.com/repos/18F/openFEC-web-app/tags","blobs_url":"https://api.github.com/repos/18F/openFEC-web-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/18F/openFEC-web-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/18F/openFEC-web-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/18F/openFEC-web-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/18F/openFEC-web-app/statuses/{sha}","languages_url":"https://api.github.com/repos/18F/openFEC-web-app/languages","stargazers_url":"https://api.github.com/repos/18F/openFEC-web-app/stargazers","contributors_url":"https://api.github.com/repos/18F/openFEC-web-app/contributors","subscribers_url":"https://api.github.com/repos/18F/openFEC-web-app/subscribers","subscription_url":"https://api.github.com/repos/18F/openFEC-web-app/subscription","commits_url":"https://api.github.com/repos/18F/openFEC-web-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/18F/openFEC-web-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/18F/openFEC-web-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/18F/openFEC-web-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/18F/openFEC-web-app/contents/{+path}","compare_url":"https://api.github.com/repos/18F/openFEC-web-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/18F/openFEC-web-app/merges","archive_url":"https://api.github.com/repos/18F/openFEC-web-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/18F/openFEC-web-app/downloads","issues_url":"https://api.github.com/repos/18F/openFEC-web-app/issues{/number}","pulls_url":"https://api.github.com/repos/18F/openFEC-web-app/pulls{/number}","milestones_url":"https://api.github.com/repos/18F/openFEC-web-app/milestones{/number}","notifications_url":"https://api.github.com/repos/18F/openFEC-web-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/18F/openFEC-web-app/labels{/name}","releases_url":"https://api.github.com/repos/18F/openFEC-web-app/releases{/id}","created_at":"2014-10-15T21:12:32Z","updated_at":"2015-05-11T15:41:52Z","pushed_at":"2015-05-22T16:05:20Z","git_url":"git://github.com/18F/openFEC-web-app.git","ssh_url":"git@github.com:18F/openFEC-web-app.git","clone_url":"https://github.com/18F/openFEC-web-app.git","svn_url":"https://github.com/18F/openFEC-web-app","homepage":"","size":12050,"stargazers_count":7,"watchers_count":7,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":7,"forks":5,"open_issues":7,"watchers":7,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/18F/openFEC-web-app/pulls/194"},"html":{"href":"https://github.com/18F/openFEC-web-app/pull/194"},"issue":{"href":"https://api.github.com/repos/18F/openFEC-web-app/issues/194"},"comments":{"href":"https://api.github.com/repos/18F/openFEC-web-app/issues/194/comments"},"review_comments":{"href":"https://api.github.com/repos/18F/openFEC-web-app/pulls/194/comments"},"review_comment":{"href":"https://api.github.com/repos/18F/openFEC-web-app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/18F/openFEC-web-app/pulls/194/commits"},"statuses":{"href":"https://api.github.com/repos/18F/openFEC-web-app/statuses/1252631e9d1f206c321b654a61c95a460f75e232"}}}}