{"action":"created","comment":{"url":"https://api.github.com/repos/uriklar/ZikaronBasalon/pulls/comments/94282060","pull_request_review_id":14811701,"id":94282060,"diff_hunk":"@@ -12,7 +12,9 @@ def home\n   \t}\n \n     @hosts = sort_by_field(@hosts, params[:sort] || 'user.full_name')\n-\n+    if params[:reverse_ordering].to_i == 0\n+      @hosts = @hosts.reverse","path":"app/controllers/pages_controller.rb","position":6,"original_position":6,"commit_id":"0624ac5978bc15108da6482e382a41904b1ee3f7","original_commit_id":"0624ac5978bc15108da6482e382a41904b1ee3f7","user":{"login":"aryehbeitz","id":7254599,"avatar_url":"https://avatars.githubusercontent.com/u/7254599?v=3","gravatar_id":"","url":"https://api.github.com/users/aryehbeitz","html_url":"https://github.com/aryehbeitz","followers_url":"https://api.github.com/users/aryehbeitz/followers","following_url":"https://api.github.com/users/aryehbeitz/following{/other_user}","gists_url":"https://api.github.com/users/aryehbeitz/gists{/gist_id}","starred_url":"https://api.github.com/users/aryehbeitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aryehbeitz/subscriptions","organizations_url":"https://api.github.com/users/aryehbeitz/orgs","repos_url":"https://api.github.com/users/aryehbeitz/repos","events_url":"https://api.github.com/users/aryehbeitz/events{/privacy}","received_events_url":"https://api.github.com/users/aryehbeitz/received_events","type":"User","site_admin":false},"body":"if i applied it in the sort_by_field, it would have to be applied to each header, with a conditional on each.\r\n","created_at":"2017-01-01T09:57:45Z","updated_at":"2017-01-01T09:57:45Z","html_url":"https://github.com/uriklar/ZikaronBasalon/pull/150#discussion_r94282060","pull_request_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/pulls/150","_links":{"self":{"href":"https://api.github.com/repos/uriklar/ZikaronBasalon/pulls/comments/94282060"},"html":{"href":"https://github.com/uriklar/ZikaronBasalon/pull/150#discussion_r94282060"},"pull_request":{"href":"https://api.github.com/repos/uriklar/ZikaronBasalon/pulls/150"}}},"pull_request":{"url":"https://api.github.com/repos/uriklar/ZikaronBasalon/pulls/150","id":99631949,"html_url":"https://github.com/uriklar/ZikaronBasalon/pull/150","diff_url":"https://github.com/uriklar/ZikaronBasalon/pull/150.diff","patch_url":"https://github.com/uriklar/ZikaronBasalon/pull/150.patch","issue_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/issues/150","number":150,"state":"open","locked":false,"title":"veteran box remote and toggle sorting","user":{"login":"aryehbeitz","id":7254599,"avatar_url":"https://avatars.githubusercontent.com/u/7254599?v=3","gravatar_id":"","url":"https://api.github.com/users/aryehbeitz","html_url":"https://github.com/aryehbeitz","followers_url":"https://api.github.com/users/aryehbeitz/followers","following_url":"https://api.github.com/users/aryehbeitz/following{/other_user}","gists_url":"https://api.github.com/users/aryehbeitz/gists{/gist_id}","starred_url":"https://api.github.com/users/aryehbeitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aryehbeitz/subscriptions","organizations_url":"https://api.github.com/users/aryehbeitz/orgs","repos_url":"https://api.github.com/users/aryehbeitz/repos","events_url":"https://api.github.com/users/aryehbeitz/events{/privacy}","received_events_url":"https://api.github.com/users/aryehbeitz/received_events","type":"User","site_admin":false},"body":"### On the home page where you search for a host:\r\n\r\n- I removed the veteran checkbox \r\n\r\n- I added support for clicking on a column header which changes sort direction - toggles on each click.\r\n\r\nI also did the changes for the manager page, but I didn't test","created_at":"2016-12-29T08:55:14Z","updated_at":"2017-01-01T09:57:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c48ae1a1a841cd61f5971fe7ae65db519bf4fec9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/pulls/150/commits","review_comments_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/pulls/150/comments","review_comment_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/issues/150/comments","statuses_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/statuses/0624ac5978bc15108da6482e382a41904b1ee3f7","head":{"label":"aryehbeitz:develop_features","ref":"develop_features","sha":"0624ac5978bc15108da6482e382a41904b1ee3f7","user":{"login":"aryehbeitz","id":7254599,"avatar_url":"https://avatars.githubusercontent.com/u/7254599?v=3","gravatar_id":"","url":"https://api.github.com/users/aryehbeitz","html_url":"https://github.com/aryehbeitz","followers_url":"https://api.github.com/users/aryehbeitz/followers","following_url":"https://api.github.com/users/aryehbeitz/following{/other_user}","gists_url":"https://api.github.com/users/aryehbeitz/gists{/gist_id}","starred_url":"https://api.github.com/users/aryehbeitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aryehbeitz/subscriptions","organizations_url":"https://api.github.com/users/aryehbeitz/orgs","repos_url":"https://api.github.com/users/aryehbeitz/repos","events_url":"https://api.github.com/users/aryehbeitz/events{/privacy}","received_events_url":"https://api.github.com/users/aryehbeitz/received_events","type":"User","site_admin":false},"repo":{"id":77595854,"name":"ZikaronBasalon","full_name":"aryehbeitz/ZikaronBasalon","owner":{"login":"aryehbeitz","id":7254599,"avatar_url":"https://avatars.githubusercontent.com/u/7254599?v=3","gravatar_id":"","url":"https://api.github.com/users/aryehbeitz","html_url":"https://github.com/aryehbeitz","followers_url":"https://api.github.com/users/aryehbeitz/followers","following_url":"https://api.github.com/users/aryehbeitz/following{/other_user}","gists_url":"https://api.github.com/users/aryehbeitz/gists{/gist_id}","starred_url":"https://api.github.com/users/aryehbeitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aryehbeitz/subscriptions","organizations_url":"https://api.github.com/users/aryehbeitz/orgs","repos_url":"https://api.github.com/users/aryehbeitz/repos","events_url":"https://api.github.com/users/aryehbeitz/events{/privacy}","received_events_url":"https://api.github.com/users/aryehbeitz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aryehbeitz/ZikaronBasalon","description":null,"fork":true,"url":"https://api.github.com/repos/aryehbeitz/ZikaronBasalon","forks_url":"https://api.github.com/repos/aryehbeitz/ZikaronBasalon/forks","keys_url":"https://api.github.com/repos/aryehbeitz/ZikaronBasalon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aryehbeitz/ZikaronBasalon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aryehbeitz/ZikaronBasalon/teams","hooks_url":"https://api.github.com/repos/aryehbeitz/ZikaronBasalon/hooks","issue_events_url":"https://api.github.com/repos/aryehbeitz/ZikaronBasalon/issues/events{/number}","events_url":"https://api.github.com/repos/aryehbeitz/ZikaronBasalon/events","assignees_url":"https://api.github.com/repos/aryehbeitz/ZikaronBasalon/assignees{/user}","branches_url":"https://api.github.com/repos/aryehbeitz/ZikaronBasalon/branches{/branch}","tags_url":"https://api.github.com/repos/aryehbeitz/ZikaronBasalon/tags","blobs_url":"https://api.github.com/repos/aryehbeitz/ZikaronBasalon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aryehbeitz/ZikaronBasalon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aryehbeitz/ZikaronBasalon/git/refs{/sha}","trees_url":"https://api.github.com/repos/aryehbeitz/ZikaronBasalon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aryehbeitz/ZikaronBasalon/statuses/{sha}","languages_url":"https://api.github.com/repos/aryehbeitz/ZikaronBasalon/languages","stargazers_url":"https://api.github.com/repos/aryehbeitz/ZikaronBasalon/stargazers","contributors_url":"https://api.github.com/repos/aryehbeitz/ZikaronBasalon/contributors","subscribers_url":"https://api.github.com/repos/aryehbeitz/ZikaronBasalon/subscribers","subscription_url":"https://api.github.com/repos/aryehbeitz/ZikaronBasalon/subscription","commits_url":"https://api.github.com/repos/aryehbeitz/ZikaronBasalon/commits{/sha}","git_commits_url":"https://api.github.com/repos/aryehbeitz/ZikaronBasalon/git/commits{/sha}","comments_url":"https://api.github.com/repos/aryehbeitz/ZikaronBasalon/comments{/number}","issue_comment_url":"https://api.github.com/repos/aryehbeitz/ZikaronBasalon/issues/comments{/number}","contents_url":"https://api.github.com/repos/aryehbeitz/ZikaronBasalon/contents/{+path}","compare_url":"https://api.github.com/repos/aryehbeitz/ZikaronBasalon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aryehbeitz/ZikaronBasalon/merges","archive_url":"https://api.github.com/repos/aryehbeitz/ZikaronBasalon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aryehbeitz/ZikaronBasalon/downloads","issues_url":"https://api.github.com/repos/aryehbeitz/ZikaronBasalon/issues{/number}","pulls_url":"https://api.github.com/repos/aryehbeitz/ZikaronBasalon/pulls{/number}","milestones_url":"https://api.github.com/repos/aryehbeitz/ZikaronBasalon/milestones{/number}","notifications_url":"https://api.github.com/repos/aryehbeitz/ZikaronBasalon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aryehbeitz/ZikaronBasalon/labels{/name}","releases_url":"https://api.github.com/repos/aryehbeitz/ZikaronBasalon/releases{/id}","deployments_url":"https://api.github.com/repos/aryehbeitz/ZikaronBasalon/deployments","created_at":"2016-12-29T08:19:08Z","updated_at":"2016-12-29T08:19:11Z","pushed_at":"2016-12-29T08:49:43Z","git_url":"git://github.com/aryehbeitz/ZikaronBasalon.git","ssh_url":"git@github.com:aryehbeitz/ZikaronBasalon.git","clone_url":"https://github.com/aryehbeitz/ZikaronBasalon.git","svn_url":"https://github.com/aryehbeitz/ZikaronBasalon","homepage":null,"size":25674,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"uriklar:develop","ref":"develop","sha":"d76f015fff4824be6bdbe5dbe51a731f6dfb43bd","user":{"login":"uriklar","id":2545447,"avatar_url":"https://avatars.githubusercontent.com/u/2545447?v=3","gravatar_id":"","url":"https://api.github.com/users/uriklar","html_url":"https://github.com/uriklar","followers_url":"https://api.github.com/users/uriklar/followers","following_url":"https://api.github.com/users/uriklar/following{/other_user}","gists_url":"https://api.github.com/users/uriklar/gists{/gist_id}","starred_url":"https://api.github.com/users/uriklar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uriklar/subscriptions","organizations_url":"https://api.github.com/users/uriklar/orgs","repos_url":"https://api.github.com/users/uriklar/repos","events_url":"https://api.github.com/users/uriklar/events{/privacy}","received_events_url":"https://api.github.com/users/uriklar/received_events","type":"User","site_admin":false},"repo":{"id":16153824,"name":"ZikaronBasalon","full_name":"uriklar/ZikaronBasalon","owner":{"login":"uriklar","id":2545447,"avatar_url":"https://avatars.githubusercontent.com/u/2545447?v=3","gravatar_id":"","url":"https://api.github.com/users/uriklar","html_url":"https://github.com/uriklar","followers_url":"https://api.github.com/users/uriklar/followers","following_url":"https://api.github.com/users/uriklar/following{/other_user}","gists_url":"https://api.github.com/users/uriklar/gists{/gist_id}","starred_url":"https://api.github.com/users/uriklar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uriklar/subscriptions","organizations_url":"https://api.github.com/users/uriklar/orgs","repos_url":"https://api.github.com/users/uriklar/repos","events_url":"https://api.github.com/users/uriklar/events{/privacy}","received_events_url":"https://api.github.com/users/uriklar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/uriklar/ZikaronBasalon","description":null,"fork":false,"url":"https://api.github.com/repos/uriklar/ZikaronBasalon","forks_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/forks","keys_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/teams","hooks_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/hooks","issue_events_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/issues/events{/number}","events_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/events","assignees_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/assignees{/user}","branches_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/branches{/branch}","tags_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/tags","blobs_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/git/refs{/sha}","trees_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/statuses/{sha}","languages_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/languages","stargazers_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/stargazers","contributors_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/contributors","subscribers_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/subscribers","subscription_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/subscription","commits_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/commits{/sha}","git_commits_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/git/commits{/sha}","comments_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/comments{/number}","issue_comment_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/issues/comments{/number}","contents_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/contents/{+path}","compare_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/merges","archive_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/downloads","issues_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/issues{/number}","pulls_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/pulls{/number}","milestones_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/milestones{/number}","notifications_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/labels{/name}","releases_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/releases{/id}","deployments_url":"https://api.github.com/repos/uriklar/ZikaronBasalon/deployments","created_at":"2014-01-22T21:55:05Z","updated_at":"2016-05-16T06:29:08Z","pushed_at":"2016-12-29T08:55:15Z","git_url":"git://github.com/uriklar/ZikaronBasalon.git","ssh_url":"git@github.com:uriklar/ZikaronBasalon.git","clone_url":"https://github.com/uriklar/ZikaronBasalon.git","svn_url":"https://github.com/uriklar/ZikaronBasalon","homepage":null,"size":25666,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":71,"forks":2,"open_issues":71,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/uriklar/ZikaronBasalon/pulls/150"},"html":{"href":"https://github.com/uriklar/ZikaronBasalon/pull/150"},"issue":{"href":"https://api.github.com/repos/uriklar/ZikaronBasalon/issues/150"},"comments":{"href":"https://api.github.com/repos/uriklar/ZikaronBasalon/issues/150/comments"},"review_comments":{"href":"https://api.github.com/repos/uriklar/ZikaronBasalon/pulls/150/comments"},"review_comment":{"href":"https://api.github.com/repos/uriklar/ZikaronBasalon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/uriklar/ZikaronBasalon/pulls/150/commits"},"statuses":{"href":"https://api.github.com/repos/uriklar/ZikaronBasalon/statuses/0624ac5978bc15108da6482e382a41904b1ee3f7"}}}}
{"actor":{"display_login":"aryehbeitz"}}