{"action":"created","comment":{"url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/pulls/comments/168017953","pull_request_review_id":96319427,"id":168017953,"diff_hunk":"@@ -7,41 +8,83 @@ def index\n \n     @trips ||= []\n     @search = Search.new(params[:search])\n+    the_number_of_trips_per_page = 10\n+    the_first_date = [(@search.date_value) -31, (Date.today) -31].min # we need trips of the past month to say \"hey there was some trips last month\" if no results","path":"app/controllers/search_controller.rb","position":10,"original_position":10,"commit_id":"b1d4eab70c4f2cad9e971aa278627a417ebac690","original_commit_id":"b1d4eab70c4f2cad9e971aa278627a417ebac690","user":{"login":"nicolasleger","id":570901,"avatar_url":"https://avatars1.githubusercontent.com/u/570901?v=4","gravatar_id":"","url":"https://api.github.com/users/nicolasleger","html_url":"https://github.com/nicolasleger","followers_url":"https://api.github.com/users/nicolasleger/followers","following_url":"https://api.github.com/users/nicolasleger/following{/other_user}","gists_url":"https://api.github.com/users/nicolasleger/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolasleger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolasleger/subscriptions","organizations_url":"https://api.github.com/users/nicolasleger/orgs","repos_url":"https://api.github.com/users/nicolasleger/repos","events_url":"https://api.github.com/users/nicolasleger/events{/privacy}","received_events_url":"https://api.github.com/users/nicolasleger/received_events","type":"User","site_admin":false},"body":"Parenthesis unnecessary","created_at":"2018-02-13T22:10:06Z","updated_at":"2018-02-13T22:13:49Z","html_url":"https://github.com/covoiturage-libre/covoiturage-libre/pull/316#discussion_r168017953","pull_request_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/pulls/316","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/pulls/comments/168017953"},"html":{"href":"https://github.com/covoiturage-libre/covoiturage-libre/pull/316#discussion_r168017953"},"pull_request":{"href":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/pulls/316"}},"in_reply_to_id":168017855},"pull_request":{"url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/pulls/316","id":168888875,"html_url":"https://github.com/covoiturage-libre/covoiturage-libre/pull/316","diff_url":"https://github.com/covoiturage-libre/covoiturage-libre/pull/316.diff","patch_url":"https://github.com/covoiturage-libre/covoiturage-libre/pull/316.patch","issue_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/issues/316","number":316,"state":"open","locked":false,"title":"#184 #192 new presentation of the results","user":{"login":"djakk","id":16900301,"avatar_url":"https://avatars3.githubusercontent.com/u/16900301?v=4","gravatar_id":"","url":"https://api.github.com/users/djakk","html_url":"https://github.com/djakk","followers_url":"https://api.github.com/users/djakk/followers","following_url":"https://api.github.com/users/djakk/following{/other_user}","gists_url":"https://api.github.com/users/djakk/gists{/gist_id}","starred_url":"https://api.github.com/users/djakk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djakk/subscriptions","organizations_url":"https://api.github.com/users/djakk/orgs","repos_url":"https://api.github.com/users/djakk/repos","events_url":"https://api.github.com/users/djakk/events{/privacy}","received_events_url":"https://api.github.com/users/djakk/received_events","type":"User","site_admin":false},"body":"Issues #184 and  #192 : new presentation of the results : mini-calendar, maps, help if no results\r\n\r\n![capture d ecran 2018-02-13 a 16 32 16](https://user-images.githubusercontent.com/16900301/36160451-7b7f8792-10e1-11e8-8008-6b8c22429fbf.png)\r\n![capture d ecran 2018-02-13 a 16 40 29](https://user-images.githubusercontent.com/16900301/36160452-7b9eeb00-10e1-11e8-9d89-0b5f10f24c36.png)\r\n","created_at":"2018-02-13T16:16:30Z","updated_at":"2018-02-13T22:13:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cb3b54741ad1f0eb531b81e2810030e7e428fd2d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/pulls/316/commits","review_comments_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/pulls/316/comments","review_comment_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/pulls/comments{/number}","comments_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/issues/316/comments","statuses_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/statuses/b1d4eab70c4f2cad9e971aa278627a417ebac690","head":{"label":"djakk:master","ref":"master","sha":"b1d4eab70c4f2cad9e971aa278627a417ebac690","user":{"login":"djakk","id":16900301,"avatar_url":"https://avatars3.githubusercontent.com/u/16900301?v=4","gravatar_id":"","url":"https://api.github.com/users/djakk","html_url":"https://github.com/djakk","followers_url":"https://api.github.com/users/djakk/followers","following_url":"https://api.github.com/users/djakk/following{/other_user}","gists_url":"https://api.github.com/users/djakk/gists{/gist_id}","starred_url":"https://api.github.com/users/djakk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djakk/subscriptions","organizations_url":"https://api.github.com/users/djakk/orgs","repos_url":"https://api.github.com/users/djakk/repos","events_url":"https://api.github.com/users/djakk/events{/privacy}","received_events_url":"https://api.github.com/users/djakk/received_events","type":"User","site_admin":false},"repo":{"id":97400455,"name":"covoiturage-libre","full_name":"djakk/covoiturage-libre","owner":{"login":"djakk","id":16900301,"avatar_url":"https://avatars3.githubusercontent.com/u/16900301?v=4","gravatar_id":"","url":"https://api.github.com/users/djakk","html_url":"https://github.com/djakk","followers_url":"https://api.github.com/users/djakk/followers","following_url":"https://api.github.com/users/djakk/following{/other_user}","gists_url":"https://api.github.com/users/djakk/gists{/gist_id}","starred_url":"https://api.github.com/users/djakk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djakk/subscriptions","organizations_url":"https://api.github.com/users/djakk/orgs","repos_url":"https://api.github.com/users/djakk/repos","events_url":"https://api.github.com/users/djakk/events{/privacy}","received_events_url":"https://api.github.com/users/djakk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/djakk/covoiturage-libre","description":"Covoiturage Libre is an Open Source Carpooling Platform in Rails 5","fork":true,"url":"https://api.github.com/repos/djakk/covoiturage-libre","forks_url":"https://api.github.com/repos/djakk/covoiturage-libre/forks","keys_url":"https://api.github.com/repos/djakk/covoiturage-libre/keys{/key_id}","collaborators_url":"https://api.github.com/repos/djakk/covoiturage-libre/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/djakk/covoiturage-libre/teams","hooks_url":"https://api.github.com/repos/djakk/covoiturage-libre/hooks","issue_events_url":"https://api.github.com/repos/djakk/covoiturage-libre/issues/events{/number}","events_url":"https://api.github.com/repos/djakk/covoiturage-libre/events","assignees_url":"https://api.github.com/repos/djakk/covoiturage-libre/assignees{/user}","branches_url":"https://api.github.com/repos/djakk/covoiturage-libre/branches{/branch}","tags_url":"https://api.github.com/repos/djakk/covoiturage-libre/tags","blobs_url":"https://api.github.com/repos/djakk/covoiturage-libre/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/djakk/covoiturage-libre/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/djakk/covoiturage-libre/git/refs{/sha}","trees_url":"https://api.github.com/repos/djakk/covoiturage-libre/git/trees{/sha}","statuses_url":"https://api.github.com/repos/djakk/covoiturage-libre/statuses/{sha}","languages_url":"https://api.github.com/repos/djakk/covoiturage-libre/languages","stargazers_url":"https://api.github.com/repos/djakk/covoiturage-libre/stargazers","contributors_url":"https://api.github.com/repos/djakk/covoiturage-libre/contributors","subscribers_url":"https://api.github.com/repos/djakk/covoiturage-libre/subscribers","subscription_url":"https://api.github.com/repos/djakk/covoiturage-libre/subscription","commits_url":"https://api.github.com/repos/djakk/covoiturage-libre/commits{/sha}","git_commits_url":"https://api.github.com/repos/djakk/covoiturage-libre/git/commits{/sha}","comments_url":"https://api.github.com/repos/djakk/covoiturage-libre/comments{/number}","issue_comment_url":"https://api.github.com/repos/djakk/covoiturage-libre/issues/comments{/number}","contents_url":"https://api.github.com/repos/djakk/covoiturage-libre/contents/{+path}","compare_url":"https://api.github.com/repos/djakk/covoiturage-libre/compare/{base}...{head}","merges_url":"https://api.github.com/repos/djakk/covoiturage-libre/merges","archive_url":"https://api.github.com/repos/djakk/covoiturage-libre/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/djakk/covoiturage-libre/downloads","issues_url":"https://api.github.com/repos/djakk/covoiturage-libre/issues{/number}","pulls_url":"https://api.github.com/repos/djakk/covoiturage-libre/pulls{/number}","milestones_url":"https://api.github.com/repos/djakk/covoiturage-libre/milestones{/number}","notifications_url":"https://api.github.com/repos/djakk/covoiturage-libre/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/djakk/covoiturage-libre/labels{/name}","releases_url":"https://api.github.com/repos/djakk/covoiturage-libre/releases{/id}","deployments_url":"https://api.github.com/repos/djakk/covoiturage-libre/deployments","created_at":"2017-07-16T17:49:39Z","updated_at":"2017-07-16T17:49:41Z","pushed_at":"2018-02-13T16:12:46Z","git_url":"git://github.com/djakk/covoiturage-libre.git","ssh_url":"git@github.com:djakk/covoiturage-libre.git","clone_url":"https://github.com/djakk/covoiturage-libre.git","svn_url":"https://github.com/djakk/covoiturage-libre","homepage":"https://covoiturage-libre.fr/","size":2298,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"covoiturage-libre:develop","ref":"develop","sha":"52925df4c157f7d07b08a56850372f4d94c95517","user":{"login":"covoiturage-libre","id":1440986,"avatar_url":"https://avatars3.githubusercontent.com/u/1440986?v=4","gravatar_id":"","url":"https://api.github.com/users/covoiturage-libre","html_url":"https://github.com/covoiturage-libre","followers_url":"https://api.github.com/users/covoiturage-libre/followers","following_url":"https://api.github.com/users/covoiturage-libre/following{/other_user}","gists_url":"https://api.github.com/users/covoiturage-libre/gists{/gist_id}","starred_url":"https://api.github.com/users/covoiturage-libre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/covoiturage-libre/subscriptions","organizations_url":"https://api.github.com/users/covoiturage-libre/orgs","repos_url":"https://api.github.com/users/covoiturage-libre/repos","events_url":"https://api.github.com/users/covoiturage-libre/events{/privacy}","received_events_url":"https://api.github.com/users/covoiturage-libre/received_events","type":"Organization","site_admin":false},"repo":{"id":59593083,"name":"covoiturage-libre","full_name":"covoiturage-libre/covoiturage-libre","owner":{"login":"covoiturage-libre","id":1440986,"avatar_url":"https://avatars3.githubusercontent.com/u/1440986?v=4","gravatar_id":"","url":"https://api.github.com/users/covoiturage-libre","html_url":"https://github.com/covoiturage-libre","followers_url":"https://api.github.com/users/covoiturage-libre/followers","following_url":"https://api.github.com/users/covoiturage-libre/following{/other_user}","gists_url":"https://api.github.com/users/covoiturage-libre/gists{/gist_id}","starred_url":"https://api.github.com/users/covoiturage-libre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/covoiturage-libre/subscriptions","organizations_url":"https://api.github.com/users/covoiturage-libre/orgs","repos_url":"https://api.github.com/users/covoiturage-libre/repos","events_url":"https://api.github.com/users/covoiturage-libre/events{/privacy}","received_events_url":"https://api.github.com/users/covoiturage-libre/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/covoiturage-libre/covoiturage-libre","description":"Covoiturage Libre is an Open Source Carpooling Platform in Rails 5","fork":false,"url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre","forks_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/forks","keys_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/keys{/key_id}","collaborators_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/teams","hooks_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/hooks","issue_events_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/issues/events{/number}","events_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/events","assignees_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/assignees{/user}","branches_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/branches{/branch}","tags_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/tags","blobs_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/git/refs{/sha}","trees_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/git/trees{/sha}","statuses_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/statuses/{sha}","languages_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/languages","stargazers_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/stargazers","contributors_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/contributors","subscribers_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/subscribers","subscription_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/subscription","commits_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/commits{/sha}","git_commits_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/git/commits{/sha}","comments_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/comments{/number}","issue_comment_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/issues/comments{/number}","contents_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/contents/{+path}","compare_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/compare/{base}...{head}","merges_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/merges","archive_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/downloads","issues_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/issues{/number}","pulls_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/pulls{/number}","milestones_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/milestones{/number}","notifications_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/labels{/name}","releases_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/releases{/id}","deployments_url":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/deployments","created_at":"2016-05-24T17:12:40Z","updated_at":"2018-02-09T00:26:51Z","pushed_at":"2018-02-13T22:07:31Z","git_url":"git://github.com/covoiturage-libre/covoiturage-libre.git","ssh_url":"git@github.com:covoiturage-libre/covoiturage-libre.git","clone_url":"https://github.com/covoiturage-libre/covoiturage-libre.git","svn_url":"https://github.com/covoiturage-libre/covoiturage-libre","homepage":"https://covoiturage-libre.fr/","size":2304,"stargazers_count":70,"watchers_count":70,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"archived":false,"open_issues_count":62,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0"},"forks":19,"open_issues":62,"watchers":70,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/pulls/316"},"html":{"href":"https://github.com/covoiturage-libre/covoiturage-libre/pull/316"},"issue":{"href":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/issues/316"},"comments":{"href":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/issues/316/comments"},"review_comments":{"href":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/pulls/316/comments"},"review_comment":{"href":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/pulls/316/commits"},"statuses":{"href":"https://api.github.com/repos/covoiturage-libre/covoiturage-libre/statuses/b1d4eab70c4f2cad9e971aa278627a417ebac690"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"nicolasleger"}}