{"action":"created","comment":{"url":"https://api.github.com/repos/GFDRR/thinkhazard/pulls/comments/32709595","id":32709595,"diff_hunk":"@@ -166,11 +165,29 @@\n {% endblock %}\n \n {% block scripts %}\n-  <script>\n-    {% if hazard %}\n-      app.hazardType = '{{hazard.hazardtype.mnemonic}}';\n-    {% endif %}\n-  </script>\n+{% if debug %}\n+    <script src=\"{{('%s/openlayers/dist/ol-debug.js' % node_modules)|static_url}}\"></script>\n+{% else %}\n+    <script src=\"{{('%s/openlayers/dist/ol.js' % node_modules)|static_url}}\"></script>\n+{% endif %}\n+    <script>\n+      {% if hazard %}\n+      app.mapUrl = '{{ 'report_json'|route_url(divisioncode=division.code, hazardtype=hazard.hazardtype.mnemonic)}}';\n+      {% else %}\n+      app.mapUrl = '{{ 'report_overview_json'|route_url(divisioncode=division.code)}}';\n+      {% endif %}\n+\n+      {%- if division %}\n+      app.divisionCode = {{division.code}};\n+      {%- else %}\n+      app.divisionCode = undefined;\n+      {%- endif %}\n+\n+      app.divisionBounds = {{bounds}};\n+      {% if hazard %}","path":"thinkhazard/templates/report.jinja2","position":50,"original_position":50,"commit_id":"2018e4ecdc2049da93513e0652766b22c84863c6","original_commit_id":"2018e4ecdc2049da93513e0652766b22c84863c6","user":{"login":"elemoine","id":76594,"avatar_url":"https://avatars.githubusercontent.com/u/76594?v=3","gravatar_id":"","url":"https://api.github.com/users/elemoine","html_url":"https://github.com/elemoine","followers_url":"https://api.github.com/users/elemoine/followers","following_url":"https://api.github.com/users/elemoine/following{/other_user}","gists_url":"https://api.github.com/users/elemoine/gists{/gist_id}","starred_url":"https://api.github.com/users/elemoine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elemoine/subscriptions","organizations_url":"https://api.github.com/users/elemoine/orgs","repos_url":"https://api.github.com/users/elemoine/repos","events_url":"https://api.github.com/users/elemoine/events{/privacy}","received_events_url":"https://api.github.com/users/elemoine/received_events","type":"User","site_admin":false},"body":"`{%- if hazard -%}`","created_at":"2015-06-18T08:50:02Z","updated_at":"2015-06-18T08:50:02Z","html_url":"https://github.com/GFDRR/thinkhazard/pull/143#discussion_r32709595","pull_request_url":"https://api.github.com/repos/GFDRR/thinkhazard/pulls/143","_links":{"self":{"href":"https://api.github.com/repos/GFDRR/thinkhazard/pulls/comments/32709595"},"html":{"href":"https://github.com/GFDRR/thinkhazard/pull/143#discussion_r32709595"},"pull_request":{"href":"https://api.github.com/repos/GFDRR/thinkhazard/pulls/143"}}},"pull_request":{"url":"https://api.github.com/repos/GFDRR/thinkhazard/pulls/143","id":37980143,"html_url":"https://github.com/GFDRR/thinkhazard/pull/143","diff_url":"https://github.com/GFDRR/thinkhazard/pull/143.diff","patch_url":"https://github.com/GFDRR/thinkhazard/pull/143.patch","issue_url":"https://api.github.com/repos/GFDRR/thinkhazard/issues/143","number":143,"state":"open","locked":false,"title":"Pgiraud v4 layout","user":{"login":"pgiraud","id":319774,"avatar_url":"https://avatars.githubusercontent.com/u/319774?v=3","gravatar_id":"","url":"https://api.github.com/users/pgiraud","html_url":"https://github.com/pgiraud","followers_url":"https://api.github.com/users/pgiraud/followers","following_url":"https://api.github.com/users/pgiraud/following{/other_user}","gists_url":"https://api.github.com/users/pgiraud/gists{/gist_id}","starred_url":"https://api.github.com/users/pgiraud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgiraud/subscriptions","organizations_url":"https://api.github.com/users/pgiraud/orgs","repos_url":"https://api.github.com/users/pgiraud/repos","events_url":"https://api.github.com/users/pgiraud/events{/privacy}","received_events_url":"https://api.github.com/users/pgiraud/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-18T07:56:54Z","updated_at":"2015-06-18T08:50:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e272a25aebb1b39883bc3d408d399ffa8315ff61","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GFDRR/thinkhazard/pulls/143/commits","review_comments_url":"https://api.github.com/repos/GFDRR/thinkhazard/pulls/143/comments","review_comment_url":"https://api.github.com/repos/GFDRR/thinkhazard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GFDRR/thinkhazard/issues/143/comments","statuses_url":"https://api.github.com/repos/GFDRR/thinkhazard/statuses/2018e4ecdc2049da93513e0652766b22c84863c6","head":{"label":"GFDRR:pgiraud_v4_layout","ref":"pgiraud_v4_layout","sha":"2018e4ecdc2049da93513e0652766b22c84863c6","user":{"login":"GFDRR","id":708300,"avatar_url":"https://avatars.githubusercontent.com/u/708300?v=3","gravatar_id":"","url":"https://api.github.com/users/GFDRR","html_url":"https://github.com/GFDRR","followers_url":"https://api.github.com/users/GFDRR/followers","following_url":"https://api.github.com/users/GFDRR/following{/other_user}","gists_url":"https://api.github.com/users/GFDRR/gists{/gist_id}","starred_url":"https://api.github.com/users/GFDRR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GFDRR/subscriptions","organizations_url":"https://api.github.com/users/GFDRR/orgs","repos_url":"https://api.github.com/users/GFDRR/repos","events_url":"https://api.github.com/users/GFDRR/events{/privacy}","received_events_url":"https://api.github.com/users/GFDRR/received_events","type":"Organization","site_admin":false},"repo":{"id":29915977,"name":"thinkhazard","full_name":"GFDRR/thinkhazard","owner":{"login":"GFDRR","id":708300,"avatar_url":"https://avatars.githubusercontent.com/u/708300?v=3","gravatar_id":"","url":"https://api.github.com/users/GFDRR","html_url":"https://github.com/GFDRR","followers_url":"https://api.github.com/users/GFDRR/followers","following_url":"https://api.github.com/users/GFDRR/following{/other_user}","gists_url":"https://api.github.com/users/GFDRR/gists{/gist_id}","starred_url":"https://api.github.com/users/GFDRR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GFDRR/subscriptions","organizations_url":"https://api.github.com/users/GFDRR/orgs","repos_url":"https://api.github.com/users/GFDRR/repos","events_url":"https://api.github.com/users/GFDRR/events{/privacy}","received_events_url":"https://api.github.com/users/GFDRR/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GFDRR/thinkhazard","description":"Think Hazard: Overcome Risk","fork":false,"url":"https://api.github.com/repos/GFDRR/thinkhazard","forks_url":"https://api.github.com/repos/GFDRR/thinkhazard/forks","keys_url":"https://api.github.com/repos/GFDRR/thinkhazard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GFDRR/thinkhazard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GFDRR/thinkhazard/teams","hooks_url":"https://api.github.com/repos/GFDRR/thinkhazard/hooks","issue_events_url":"https://api.github.com/repos/GFDRR/thinkhazard/issues/events{/number}","events_url":"https://api.github.com/repos/GFDRR/thinkhazard/events","assignees_url":"https://api.github.com/repos/GFDRR/thinkhazard/assignees{/user}","branches_url":"https://api.github.com/repos/GFDRR/thinkhazard/branches{/branch}","tags_url":"https://api.github.com/repos/GFDRR/thinkhazard/tags","blobs_url":"https://api.github.com/repos/GFDRR/thinkhazard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GFDRR/thinkhazard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GFDRR/thinkhazard/git/refs{/sha}","trees_url":"https://api.github.com/repos/GFDRR/thinkhazard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GFDRR/thinkhazard/statuses/{sha}","languages_url":"https://api.github.com/repos/GFDRR/thinkhazard/languages","stargazers_url":"https://api.github.com/repos/GFDRR/thinkhazard/stargazers","contributors_url":"https://api.github.com/repos/GFDRR/thinkhazard/contributors","subscribers_url":"https://api.github.com/repos/GFDRR/thinkhazard/subscribers","subscription_url":"https://api.github.com/repos/GFDRR/thinkhazard/subscription","commits_url":"https://api.github.com/repos/GFDRR/thinkhazard/commits{/sha}","git_commits_url":"https://api.github.com/repos/GFDRR/thinkhazard/git/commits{/sha}","comments_url":"https://api.github.com/repos/GFDRR/thinkhazard/comments{/number}","issue_comment_url":"https://api.github.com/repos/GFDRR/thinkhazard/issues/comments{/number}","contents_url":"https://api.github.com/repos/GFDRR/thinkhazard/contents/{+path}","compare_url":"https://api.github.com/repos/GFDRR/thinkhazard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GFDRR/thinkhazard/merges","archive_url":"https://api.github.com/repos/GFDRR/thinkhazard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GFDRR/thinkhazard/downloads","issues_url":"https://api.github.com/repos/GFDRR/thinkhazard/issues{/number}","pulls_url":"https://api.github.com/repos/GFDRR/thinkhazard/pulls{/number}","milestones_url":"https://api.github.com/repos/GFDRR/thinkhazard/milestones{/number}","notifications_url":"https://api.github.com/repos/GFDRR/thinkhazard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GFDRR/thinkhazard/labels{/name}","releases_url":"https://api.github.com/repos/GFDRR/thinkhazard/releases{/id}","created_at":"2015-01-27T13:46:42Z","updated_at":"2015-05-19T15:33:27Z","pushed_at":"2015-06-18T07:56:54Z","git_url":"git://github.com/GFDRR/thinkhazard.git","ssh_url":"git@github.com:GFDRR/thinkhazard.git","clone_url":"https://github.com/GFDRR/thinkhazard.git","svn_url":"https://github.com/GFDRR/thinkhazard","homepage":"","size":2160,"stargazers_count":4,"watchers_count":4,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":51,"forks":0,"open_issues":51,"watchers":4,"default_branch":"master"}},"base":{"label":"GFDRR:master","ref":"master","sha":"2033cdb8a3c898f6b77439d934aa083789435f19","user":{"login":"GFDRR","id":708300,"avatar_url":"https://avatars.githubusercontent.com/u/708300?v=3","gravatar_id":"","url":"https://api.github.com/users/GFDRR","html_url":"https://github.com/GFDRR","followers_url":"https://api.github.com/users/GFDRR/followers","following_url":"https://api.github.com/users/GFDRR/following{/other_user}","gists_url":"https://api.github.com/users/GFDRR/gists{/gist_id}","starred_url":"https://api.github.com/users/GFDRR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GFDRR/subscriptions","organizations_url":"https://api.github.com/users/GFDRR/orgs","repos_url":"https://api.github.com/users/GFDRR/repos","events_url":"https://api.github.com/users/GFDRR/events{/privacy}","received_events_url":"https://api.github.com/users/GFDRR/received_events","type":"Organization","site_admin":false},"repo":{"id":29915977,"name":"thinkhazard","full_name":"GFDRR/thinkhazard","owner":{"login":"GFDRR","id":708300,"avatar_url":"https://avatars.githubusercontent.com/u/708300?v=3","gravatar_id":"","url":"https://api.github.com/users/GFDRR","html_url":"https://github.com/GFDRR","followers_url":"https://api.github.com/users/GFDRR/followers","following_url":"https://api.github.com/users/GFDRR/following{/other_user}","gists_url":"https://api.github.com/users/GFDRR/gists{/gist_id}","starred_url":"https://api.github.com/users/GFDRR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GFDRR/subscriptions","organizations_url":"https://api.github.com/users/GFDRR/orgs","repos_url":"https://api.github.com/users/GFDRR/repos","events_url":"https://api.github.com/users/GFDRR/events{/privacy}","received_events_url":"https://api.github.com/users/GFDRR/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GFDRR/thinkhazard","description":"Think Hazard: Overcome Risk","fork":false,"url":"https://api.github.com/repos/GFDRR/thinkhazard","forks_url":"https://api.github.com/repos/GFDRR/thinkhazard/forks","keys_url":"https://api.github.com/repos/GFDRR/thinkhazard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GFDRR/thinkhazard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GFDRR/thinkhazard/teams","hooks_url":"https://api.github.com/repos/GFDRR/thinkhazard/hooks","issue_events_url":"https://api.github.com/repos/GFDRR/thinkhazard/issues/events{/number}","events_url":"https://api.github.com/repos/GFDRR/thinkhazard/events","assignees_url":"https://api.github.com/repos/GFDRR/thinkhazard/assignees{/user}","branches_url":"https://api.github.com/repos/GFDRR/thinkhazard/branches{/branch}","tags_url":"https://api.github.com/repos/GFDRR/thinkhazard/tags","blobs_url":"https://api.github.com/repos/GFDRR/thinkhazard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GFDRR/thinkhazard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GFDRR/thinkhazard/git/refs{/sha}","trees_url":"https://api.github.com/repos/GFDRR/thinkhazard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GFDRR/thinkhazard/statuses/{sha}","languages_url":"https://api.github.com/repos/GFDRR/thinkhazard/languages","stargazers_url":"https://api.github.com/repos/GFDRR/thinkhazard/stargazers","contributors_url":"https://api.github.com/repos/GFDRR/thinkhazard/contributors","subscribers_url":"https://api.github.com/repos/GFDRR/thinkhazard/subscribers","subscription_url":"https://api.github.com/repos/GFDRR/thinkhazard/subscription","commits_url":"https://api.github.com/repos/GFDRR/thinkhazard/commits{/sha}","git_commits_url":"https://api.github.com/repos/GFDRR/thinkhazard/git/commits{/sha}","comments_url":"https://api.github.com/repos/GFDRR/thinkhazard/comments{/number}","issue_comment_url":"https://api.github.com/repos/GFDRR/thinkhazard/issues/comments{/number}","contents_url":"https://api.github.com/repos/GFDRR/thinkhazard/contents/{+path}","compare_url":"https://api.github.com/repos/GFDRR/thinkhazard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GFDRR/thinkhazard/merges","archive_url":"https://api.github.com/repos/GFDRR/thinkhazard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GFDRR/thinkhazard/downloads","issues_url":"https://api.github.com/repos/GFDRR/thinkhazard/issues{/number}","pulls_url":"https://api.github.com/repos/GFDRR/thinkhazard/pulls{/number}","milestones_url":"https://api.github.com/repos/GFDRR/thinkhazard/milestones{/number}","notifications_url":"https://api.github.com/repos/GFDRR/thinkhazard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GFDRR/thinkhazard/labels{/name}","releases_url":"https://api.github.com/repos/GFDRR/thinkhazard/releases{/id}","created_at":"2015-01-27T13:46:42Z","updated_at":"2015-05-19T15:33:27Z","pushed_at":"2015-06-18T07:56:54Z","git_url":"git://github.com/GFDRR/thinkhazard.git","ssh_url":"git@github.com:GFDRR/thinkhazard.git","clone_url":"https://github.com/GFDRR/thinkhazard.git","svn_url":"https://github.com/GFDRR/thinkhazard","homepage":"","size":2160,"stargazers_count":4,"watchers_count":4,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":51,"forks":0,"open_issues":51,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GFDRR/thinkhazard/pulls/143"},"html":{"href":"https://github.com/GFDRR/thinkhazard/pull/143"},"issue":{"href":"https://api.github.com/repos/GFDRR/thinkhazard/issues/143"},"comments":{"href":"https://api.github.com/repos/GFDRR/thinkhazard/issues/143/comments"},"review_comments":{"href":"https://api.github.com/repos/GFDRR/thinkhazard/pulls/143/comments"},"review_comment":{"href":"https://api.github.com/repos/GFDRR/thinkhazard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GFDRR/thinkhazard/pulls/143/commits"},"statuses":{"href":"https://api.github.com/repos/GFDRR/thinkhazard/statuses/2018e4ecdc2049da93513e0652766b22c84863c6"}}}}