{"action":"created","comment":{"url":"https://api.github.com/repos/c2corg/v6_ui/pulls/comments/92376126","pull_request_review_id":12889266,"id":92376126,"diff_hunk":"@@ -79,13 +80,10 @@ app.MainController.prototype.isPath = function(path) {\n     // path = '/'\n     return 'home';\n   } else if (path === 'topoguide') {\n-    // if topoguide, it can be all kinds of documents.\n-    // Articles, xreports and outings have their own line in the sidemenu.\n-    return location.indexOf('waypoints') > -1 || location.indexOf('routes') > -1 ||\n-           location.indexOf('images') > -1 || location.indexOf('areas') > -1 ||\n-           location.indexOf('books') > -1;\n+    return app.utils.isTopoguide(location.substring(1));\n+  } else {\n+    return location.indexOf(path) > -1;\n   }\n-  return location.indexOf(path) > -1;","path":"c2corg_ui/static/js/maincontroller.js","position":21,"original_position":21,"commit_id":"97ab42adcb810b62b375eada551b97682a19cc6c","original_commit_id":"97ab42adcb810b62b375eada551b97682a19cc6c","user":{"login":"asaunier","id":1192331,"avatar_url":"https://avatars.githubusercontent.com/u/1192331?v=3","gravatar_id":"","url":"https://api.github.com/users/asaunier","html_url":"https://github.com/asaunier","followers_url":"https://api.github.com/users/asaunier/followers","following_url":"https://api.github.com/users/asaunier/following{/other_user}","gists_url":"https://api.github.com/users/asaunier/gists{/gist_id}","starred_url":"https://api.github.com/users/asaunier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asaunier/subscriptions","organizations_url":"https://api.github.com/users/asaunier/orgs","repos_url":"https://api.github.com/users/asaunier/repos","events_url":"https://api.github.com/users/asaunier/events{/privacy}","received_events_url":"https://api.github.com/users/asaunier/received_events","type":"User","site_admin":false},"body":"Arf, you really like blocks :P \r\n\r\nWritting \r\n```\r\nif (condition) {\r\n  return 'foo';\r\n}\r\nreturn 'bar';\r\n```\r\nis exactly the same but shorter then\r\n```\r\nif (condition) {\r\n  return 'foo';\r\n} else {\r\n  return 'bar';\r\n}\r\n```\r\nBut nevermind :)","created_at":"2016-12-14T11:41:50Z","updated_at":"2016-12-14T11:41:50Z","html_url":"https://github.com/c2corg/v6_ui/pull/1173#discussion_r92376126","pull_request_url":"https://api.github.com/repos/c2corg/v6_ui/pulls/1173","_links":{"self":{"href":"https://api.github.com/repos/c2corg/v6_ui/pulls/comments/92376126"},"html":{"href":"https://github.com/c2corg/v6_ui/pull/1173#discussion_r92376126"},"pull_request":{"href":"https://api.github.com/repos/c2corg/v6_ui/pulls/1173"}}},"pull_request":{"url":"https://api.github.com/repos/c2corg/v6_ui/pulls/1173","id":97322167,"html_url":"https://github.com/c2corg/v6_ui/pull/1173","diff_url":"https://github.com/c2corg/v6_ui/pull/1173.diff","patch_url":"https://github.com/c2corg/v6_ui/pull/1173.patch","issue_url":"https://api.github.com/repos/c2corg/v6_ui/issues/1173","number":1173,"state":"open","locked":false,"title":"Areas in cards","user":{"login":"ginold","id":7814311,"avatar_url":"https://avatars.githubusercontent.com/u/7814311?v=3","gravatar_id":"","url":"https://api.github.com/users/ginold","html_url":"https://github.com/ginold","followers_url":"https://api.github.com/users/ginold/followers","following_url":"https://api.github.com/users/ginold/following{/other_user}","gists_url":"https://api.github.com/users/ginold/gists{/gist_id}","starred_url":"https://api.github.com/users/ginold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ginold/subscriptions","organizations_url":"https://api.github.com/users/ginold/orgs","repos_url":"https://api.github.com/users/ginold/repos","events_url":"https://api.github.com/users/ginold/events{/privacy}","received_events_url":"https://api.github.com/users/ginold/received_events","type":"User","site_admin":false},"body":"Related to https://github.com/c2corg/v6_ui/issues/1157\r\nrelated to #1195\r\nrelated to #1212\r\n\r\nAdds areas to waypoints, outings and routes. The info is not relevant for other document types. The areas are shown only in the feed - there were problems with the layout with long area titles, in addition there is a map in the advanced search and on most of other pages.\r\n\r\nAt first,  `range` will be shown -> if not exists, `admin_limints` -> else, `country`.\r\n\r\n![screenshot from 2016-12-09 14-42-41](https://cloud.githubusercontent.com/assets/7814311/21052844/35d1353c-be27-11e6-9b5c-605a59666830.png)\r\n\r\nother small updates:\r\n+ hide/show activities in other document cards, as was done for articles\r\n+ route rating fix (was hidden for some reason)\r\n\r\n\r\n","created_at":"2016-12-09T14:53:58Z","updated_at":"2016-12-14T11:41:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ee510b866e56aa4b00a6bb2dff4b3a00e669bd08","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/c2corg/v6_ui/milestones/17","html_url":"https://github.com/c2corg/v6_ui/milestone/17","labels_url":"https://api.github.com/repos/c2corg/v6_ui/milestones/17/labels","id":2184159,"number":17,"title":"HotFix","description":"","creator":{"login":"stef74","id":3962997,"avatar_url":"https://avatars.githubusercontent.com/u/3962997?v=3","gravatar_id":"","url":"https://api.github.com/users/stef74","html_url":"https://github.com/stef74","followers_url":"https://api.github.com/users/stef74/followers","following_url":"https://api.github.com/users/stef74/following{/other_user}","gists_url":"https://api.github.com/users/stef74/gists{/gist_id}","starred_url":"https://api.github.com/users/stef74/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stef74/subscriptions","organizations_url":"https://api.github.com/users/stef74/orgs","repos_url":"https://api.github.com/users/stef74/repos","events_url":"https://api.github.com/users/stef74/events{/privacy}","received_events_url":"https://api.github.com/users/stef74/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":7,"state":"open","created_at":"2016-12-08T14:53:49Z","updated_at":"2016-12-13T12:00:19Z","due_on":"2016-12-16T00:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/c2corg/v6_ui/pulls/1173/commits","review_comments_url":"https://api.github.com/repos/c2corg/v6_ui/pulls/1173/comments","review_comment_url":"https://api.github.com/repos/c2corg/v6_ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/c2corg/v6_ui/issues/1173/comments","statuses_url":"https://api.github.com/repos/c2corg/v6_ui/statuses/97ab42adcb810b62b375eada551b97682a19cc6c","head":{"label":"c2corg:areas-cards","ref":"areas-cards","sha":"97ab42adcb810b62b375eada551b97682a19cc6c","user":{"login":"c2corg","id":3200587,"avatar_url":"https://avatars.githubusercontent.com/u/3200587?v=3","gravatar_id":"","url":"https://api.github.com/users/c2corg","html_url":"https://github.com/c2corg","followers_url":"https://api.github.com/users/c2corg/followers","following_url":"https://api.github.com/users/c2corg/following{/other_user}","gists_url":"https://api.github.com/users/c2corg/gists{/gist_id}","starred_url":"https://api.github.com/users/c2corg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c2corg/subscriptions","organizations_url":"https://api.github.com/users/c2corg/orgs","repos_url":"https://api.github.com/users/c2corg/repos","events_url":"https://api.github.com/users/c2corg/events{/privacy}","received_events_url":"https://api.github.com/users/c2corg/received_events","type":"Organization","site_admin":false},"repo":{"id":43445823,"name":"v6_ui","full_name":"c2corg/v6_ui","owner":{"login":"c2corg","id":3200587,"avatar_url":"https://avatars.githubusercontent.com/u/3200587?v=3","gravatar_id":"","url":"https://api.github.com/users/c2corg","html_url":"https://github.com/c2corg","followers_url":"https://api.github.com/users/c2corg/followers","following_url":"https://api.github.com/users/c2corg/following{/other_user}","gists_url":"https://api.github.com/users/c2corg/gists{/gist_id}","starred_url":"https://api.github.com/users/c2corg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c2corg/subscriptions","organizations_url":"https://api.github.com/users/c2corg/orgs","repos_url":"https://api.github.com/users/c2corg/repos","events_url":"https://api.github.com/users/c2corg/events{/privacy}","received_events_url":"https://api.github.com/users/c2corg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/c2corg/v6_ui","description":"UI for c2c.org v6","fork":false,"url":"https://api.github.com/repos/c2corg/v6_ui","forks_url":"https://api.github.com/repos/c2corg/v6_ui/forks","keys_url":"https://api.github.com/repos/c2corg/v6_ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/c2corg/v6_ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/c2corg/v6_ui/teams","hooks_url":"https://api.github.com/repos/c2corg/v6_ui/hooks","issue_events_url":"https://api.github.com/repos/c2corg/v6_ui/issues/events{/number}","events_url":"https://api.github.com/repos/c2corg/v6_ui/events","assignees_url":"https://api.github.com/repos/c2corg/v6_ui/assignees{/user}","branches_url":"https://api.github.com/repos/c2corg/v6_ui/branches{/branch}","tags_url":"https://api.github.com/repos/c2corg/v6_ui/tags","blobs_url":"https://api.github.com/repos/c2corg/v6_ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/c2corg/v6_ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/c2corg/v6_ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/c2corg/v6_ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/c2corg/v6_ui/statuses/{sha}","languages_url":"https://api.github.com/repos/c2corg/v6_ui/languages","stargazers_url":"https://api.github.com/repos/c2corg/v6_ui/stargazers","contributors_url":"https://api.github.com/repos/c2corg/v6_ui/contributors","subscribers_url":"https://api.github.com/repos/c2corg/v6_ui/subscribers","subscription_url":"https://api.github.com/repos/c2corg/v6_ui/subscription","commits_url":"https://api.github.com/repos/c2corg/v6_ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/c2corg/v6_ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/c2corg/v6_ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/c2corg/v6_ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/c2corg/v6_ui/contents/{+path}","compare_url":"https://api.github.com/repos/c2corg/v6_ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/c2corg/v6_ui/merges","archive_url":"https://api.github.com/repos/c2corg/v6_ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/c2corg/v6_ui/downloads","issues_url":"https://api.github.com/repos/c2corg/v6_ui/issues{/number}","pulls_url":"https://api.github.com/repos/c2corg/v6_ui/pulls{/number}","milestones_url":"https://api.github.com/repos/c2corg/v6_ui/milestones{/number}","notifications_url":"https://api.github.com/repos/c2corg/v6_ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/c2corg/v6_ui/labels{/name}","releases_url":"https://api.github.com/repos/c2corg/v6_ui/releases{/id}","deployments_url":"https://api.github.com/repos/c2corg/v6_ui/deployments","created_at":"2015-09-30T16:52:44Z","updated_at":"2016-11-19T11:59:56Z","pushed_at":"2016-12-14T11:36:53Z","git_url":"git://github.com/c2corg/v6_ui.git","ssh_url":"git@github.com:c2corg/v6_ui.git","clone_url":"https://github.com/c2corg/v6_ui.git","svn_url":"https://github.com/c2corg/v6_ui","homepage":null,"size":4162,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":179,"forks":4,"open_issues":179,"watchers":3,"default_branch":"master"}},"base":{"label":"c2corg:master","ref":"master","sha":"ceb460b6fbe5d11aaafcae9b9e655e6ef802af1e","user":{"login":"c2corg","id":3200587,"avatar_url":"https://avatars.githubusercontent.com/u/3200587?v=3","gravatar_id":"","url":"https://api.github.com/users/c2corg","html_url":"https://github.com/c2corg","followers_url":"https://api.github.com/users/c2corg/followers","following_url":"https://api.github.com/users/c2corg/following{/other_user}","gists_url":"https://api.github.com/users/c2corg/gists{/gist_id}","starred_url":"https://api.github.com/users/c2corg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c2corg/subscriptions","organizations_url":"https://api.github.com/users/c2corg/orgs","repos_url":"https://api.github.com/users/c2corg/repos","events_url":"https://api.github.com/users/c2corg/events{/privacy}","received_events_url":"https://api.github.com/users/c2corg/received_events","type":"Organization","site_admin":false},"repo":{"id":43445823,"name":"v6_ui","full_name":"c2corg/v6_ui","owner":{"login":"c2corg","id":3200587,"avatar_url":"https://avatars.githubusercontent.com/u/3200587?v=3","gravatar_id":"","url":"https://api.github.com/users/c2corg","html_url":"https://github.com/c2corg","followers_url":"https://api.github.com/users/c2corg/followers","following_url":"https://api.github.com/users/c2corg/following{/other_user}","gists_url":"https://api.github.com/users/c2corg/gists{/gist_id}","starred_url":"https://api.github.com/users/c2corg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c2corg/subscriptions","organizations_url":"https://api.github.com/users/c2corg/orgs","repos_url":"https://api.github.com/users/c2corg/repos","events_url":"https://api.github.com/users/c2corg/events{/privacy}","received_events_url":"https://api.github.com/users/c2corg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/c2corg/v6_ui","description":"UI for c2c.org v6","fork":false,"url":"https://api.github.com/repos/c2corg/v6_ui","forks_url":"https://api.github.com/repos/c2corg/v6_ui/forks","keys_url":"https://api.github.com/repos/c2corg/v6_ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/c2corg/v6_ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/c2corg/v6_ui/teams","hooks_url":"https://api.github.com/repos/c2corg/v6_ui/hooks","issue_events_url":"https://api.github.com/repos/c2corg/v6_ui/issues/events{/number}","events_url":"https://api.github.com/repos/c2corg/v6_ui/events","assignees_url":"https://api.github.com/repos/c2corg/v6_ui/assignees{/user}","branches_url":"https://api.github.com/repos/c2corg/v6_ui/branches{/branch}","tags_url":"https://api.github.com/repos/c2corg/v6_ui/tags","blobs_url":"https://api.github.com/repos/c2corg/v6_ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/c2corg/v6_ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/c2corg/v6_ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/c2corg/v6_ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/c2corg/v6_ui/statuses/{sha}","languages_url":"https://api.github.com/repos/c2corg/v6_ui/languages","stargazers_url":"https://api.github.com/repos/c2corg/v6_ui/stargazers","contributors_url":"https://api.github.com/repos/c2corg/v6_ui/contributors","subscribers_url":"https://api.github.com/repos/c2corg/v6_ui/subscribers","subscription_url":"https://api.github.com/repos/c2corg/v6_ui/subscription","commits_url":"https://api.github.com/repos/c2corg/v6_ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/c2corg/v6_ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/c2corg/v6_ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/c2corg/v6_ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/c2corg/v6_ui/contents/{+path}","compare_url":"https://api.github.com/repos/c2corg/v6_ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/c2corg/v6_ui/merges","archive_url":"https://api.github.com/repos/c2corg/v6_ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/c2corg/v6_ui/downloads","issues_url":"https://api.github.com/repos/c2corg/v6_ui/issues{/number}","pulls_url":"https://api.github.com/repos/c2corg/v6_ui/pulls{/number}","milestones_url":"https://api.github.com/repos/c2corg/v6_ui/milestones{/number}","notifications_url":"https://api.github.com/repos/c2corg/v6_ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/c2corg/v6_ui/labels{/name}","releases_url":"https://api.github.com/repos/c2corg/v6_ui/releases{/id}","deployments_url":"https://api.github.com/repos/c2corg/v6_ui/deployments","created_at":"2015-09-30T16:52:44Z","updated_at":"2016-11-19T11:59:56Z","pushed_at":"2016-12-14T11:36:53Z","git_url":"git://github.com/c2corg/v6_ui.git","ssh_url":"git@github.com:c2corg/v6_ui.git","clone_url":"https://github.com/c2corg/v6_ui.git","svn_url":"https://github.com/c2corg/v6_ui","homepage":null,"size":4162,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":179,"forks":4,"open_issues":179,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/c2corg/v6_ui/pulls/1173"},"html":{"href":"https://github.com/c2corg/v6_ui/pull/1173"},"issue":{"href":"https://api.github.com/repos/c2corg/v6_ui/issues/1173"},"comments":{"href":"https://api.github.com/repos/c2corg/v6_ui/issues/1173/comments"},"review_comments":{"href":"https://api.github.com/repos/c2corg/v6_ui/pulls/1173/comments"},"review_comment":{"href":"https://api.github.com/repos/c2corg/v6_ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/c2corg/v6_ui/pulls/1173/commits"},"statuses":{"href":"https://api.github.com/repos/c2corg/v6_ui/statuses/97ab42adcb810b62b375eada551b97682a19cc6c"}}}}
{"actor":{"display_login":"asaunier"}}