{"action":"created","comment":{"url":"https://api.github.com/repos/frab/frab/pulls/comments/65788484","id":65788484,"diff_hunk":"@@ -0,0 +1,15 @@\n+- if params[:event_type].present? or params[:event_state].present? or params[:track_name].present?\n+  %p\n+    %b Filters:\n+    %span{:style => 'margin-left: 1em'}\n+      - if params[:track_name].present?\n+        = link_to \"[x]\", url_for(params.except(:track_name))\n+        track name: #{params[:track_name]}\n+    %span{:style => 'margin-left: 1em'}\n+      - if params[:event_type].present?\n+        = link_to \"[x]\", url_for(params.except(:event_type))\n+        event type: #{params[:event_type]}\n+    %span{:style => 'margin-left: 1em'}\n+      - if params[:event_state].present?\n+        = link_to \"[x]\", url_for(params.except(:event_state))\n+        event state: #{params[:event_state]}","path":"app/views/events/_filters.html.haml","position":15,"original_position":15,"commit_id":"f84716751bad6cde588e445c5f54e3e505a3e304","original_commit_id":"f84716751bad6cde588e445c5f54e3e505a3e304","user":{"login":"zonque","id":106304,"avatar_url":"https://avatars.githubusercontent.com/u/106304?v=3","gravatar_id":"","url":"https://api.github.com/users/zonque","html_url":"https://github.com/zonque","followers_url":"https://api.github.com/users/zonque/followers","following_url":"https://api.github.com/users/zonque/following{/other_user}","gists_url":"https://api.github.com/users/zonque/gists{/gist_id}","starred_url":"https://api.github.com/users/zonque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zonque/subscriptions","organizations_url":"https://api.github.com/users/zonque/orgs","repos_url":"https://api.github.com/users/zonque/repos","events_url":"https://api.github.com/users/zonque/events{/privacy}","received_events_url":"https://api.github.com/users/zonque/received_events","type":"User","site_admin":false},"body":"As this is a repeating pattern, such code could be moved to a helper function.","created_at":"2016-06-03T23:11:58Z","updated_at":"2016-06-03T23:11:58Z","html_url":"https://github.com/frab/frab/pull/238#discussion_r65788484","pull_request_url":"https://api.github.com/repos/frab/frab/pulls/238","_links":{"self":{"href":"https://api.github.com/repos/frab/frab/pulls/comments/65788484"},"html":{"href":"https://github.com/frab/frab/pull/238#discussion_r65788484"},"pull_request":{"href":"https://api.github.com/repos/frab/frab/pulls/238"}}},"pull_request":{"url":"https://api.github.com/repos/frab/frab/pulls/238","id":72418574,"html_url":"https://github.com/frab/frab/pull/238","diff_url":"https://github.com/frab/frab/pull/238.diff","patch_url":"https://github.com/frab/frab/pull/238.patch","issue_url":"https://api.github.com/repos/frab/frab/issues/238","number":238,"state":"open","locked":false,"title":"Allow filtering event list for tracks, states and event_types","user":{"login":"erdgeist","id":59463,"avatar_url":"https://avatars.githubusercontent.com/u/59463?v=3","gravatar_id":"","url":"https://api.github.com/users/erdgeist","html_url":"https://github.com/erdgeist","followers_url":"https://api.github.com/users/erdgeist/followers","following_url":"https://api.github.com/users/erdgeist/following{/other_user}","gists_url":"https://api.github.com/users/erdgeist/gists{/gist_id}","starred_url":"https://api.github.com/users/erdgeist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erdgeist/subscriptions","organizations_url":"https://api.github.com/users/erdgeist/orgs","repos_url":"https://api.github.com/users/erdgeist/repos","events_url":"https://api.github.com/users/erdgeist/events{/privacy}","received_events_url":"https://api.github.com/users/erdgeist/received_events","type":"User","site_admin":false},"body":"Restrict list of displayed events to be filtered by track name, state or type allows track teams to just work on their track and still have all the search and sorting-options.","created_at":"2016-06-02T21:13:35Z","updated_at":"2016-06-03T23:11:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4e8a4df756173ea392f1cc89fb4643b110857df2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/frab/frab/pulls/238/commits","review_comments_url":"https://api.github.com/repos/frab/frab/pulls/238/comments","review_comment_url":"https://api.github.com/repos/frab/frab/pulls/comments{/number}","comments_url":"https://api.github.com/repos/frab/frab/issues/238/comments","statuses_url":"https://api.github.com/repos/frab/frab/statuses/f84716751bad6cde588e445c5f54e3e505a3e304","head":{"label":"erdgeist:extra_event_filters","ref":"extra_event_filters","sha":"f84716751bad6cde588e445c5f54e3e505a3e304","user":{"login":"erdgeist","id":59463,"avatar_url":"https://avatars.githubusercontent.com/u/59463?v=3","gravatar_id":"","url":"https://api.github.com/users/erdgeist","html_url":"https://github.com/erdgeist","followers_url":"https://api.github.com/users/erdgeist/followers","following_url":"https://api.github.com/users/erdgeist/following{/other_user}","gists_url":"https://api.github.com/users/erdgeist/gists{/gist_id}","starred_url":"https://api.github.com/users/erdgeist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erdgeist/subscriptions","organizations_url":"https://api.github.com/users/erdgeist/orgs","repos_url":"https://api.github.com/users/erdgeist/repos","events_url":"https://api.github.com/users/erdgeist/events{/privacy}","received_events_url":"https://api.github.com/users/erdgeist/received_events","type":"User","site_admin":false},"repo":{"id":33785248,"name":"frab","full_name":"erdgeist/frab","owner":{"login":"erdgeist","id":59463,"avatar_url":"https://avatars.githubusercontent.com/u/59463?v=3","gravatar_id":"","url":"https://api.github.com/users/erdgeist","html_url":"https://github.com/erdgeist","followers_url":"https://api.github.com/users/erdgeist/followers","following_url":"https://api.github.com/users/erdgeist/following{/other_user}","gists_url":"https://api.github.com/users/erdgeist/gists{/gist_id}","starred_url":"https://api.github.com/users/erdgeist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erdgeist/subscriptions","organizations_url":"https://api.github.com/users/erdgeist/orgs","repos_url":"https://api.github.com/users/erdgeist/repos","events_url":"https://api.github.com/users/erdgeist/events{/privacy}","received_events_url":"https://api.github.com/users/erdgeist/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/erdgeist/frab","description":"conference manangement system","fork":true,"url":"https://api.github.com/repos/erdgeist/frab","forks_url":"https://api.github.com/repos/erdgeist/frab/forks","keys_url":"https://api.github.com/repos/erdgeist/frab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/erdgeist/frab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/erdgeist/frab/teams","hooks_url":"https://api.github.com/repos/erdgeist/frab/hooks","issue_events_url":"https://api.github.com/repos/erdgeist/frab/issues/events{/number}","events_url":"https://api.github.com/repos/erdgeist/frab/events","assignees_url":"https://api.github.com/repos/erdgeist/frab/assignees{/user}","branches_url":"https://api.github.com/repos/erdgeist/frab/branches{/branch}","tags_url":"https://api.github.com/repos/erdgeist/frab/tags","blobs_url":"https://api.github.com/repos/erdgeist/frab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/erdgeist/frab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/erdgeist/frab/git/refs{/sha}","trees_url":"https://api.github.com/repos/erdgeist/frab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/erdgeist/frab/statuses/{sha}","languages_url":"https://api.github.com/repos/erdgeist/frab/languages","stargazers_url":"https://api.github.com/repos/erdgeist/frab/stargazers","contributors_url":"https://api.github.com/repos/erdgeist/frab/contributors","subscribers_url":"https://api.github.com/repos/erdgeist/frab/subscribers","subscription_url":"https://api.github.com/repos/erdgeist/frab/subscription","commits_url":"https://api.github.com/repos/erdgeist/frab/commits{/sha}","git_commits_url":"https://api.github.com/repos/erdgeist/frab/git/commits{/sha}","comments_url":"https://api.github.com/repos/erdgeist/frab/comments{/number}","issue_comment_url":"https://api.github.com/repos/erdgeist/frab/issues/comments{/number}","contents_url":"https://api.github.com/repos/erdgeist/frab/contents/{+path}","compare_url":"https://api.github.com/repos/erdgeist/frab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/erdgeist/frab/merges","archive_url":"https://api.github.com/repos/erdgeist/frab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/erdgeist/frab/downloads","issues_url":"https://api.github.com/repos/erdgeist/frab/issues{/number}","pulls_url":"https://api.github.com/repos/erdgeist/frab/pulls{/number}","milestones_url":"https://api.github.com/repos/erdgeist/frab/milestones{/number}","notifications_url":"https://api.github.com/repos/erdgeist/frab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/erdgeist/frab/labels{/name}","releases_url":"https://api.github.com/repos/erdgeist/frab/releases{/id}","deployments_url":"https://api.github.com/repos/erdgeist/frab/deployments","created_at":"2015-04-11T17:28:06Z","updated_at":"2016-05-05T20:55:29Z","pushed_at":"2016-06-03T21:26:41Z","git_url":"git://github.com/erdgeist/frab.git","ssh_url":"git@github.com:erdgeist/frab.git","clone_url":"https://github.com/erdgeist/frab.git","svn_url":"https://github.com/erdgeist/frab","homepage":"http://frab.github.com/frab","size":3571,"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":"frab:master","ref":"master","sha":"c3c20339ab176879b3447be7c88f4719741f4ffe","user":{"login":"frab","id":2217647,"avatar_url":"https://avatars.githubusercontent.com/u/2217647?v=3","gravatar_id":"","url":"https://api.github.com/users/frab","html_url":"https://github.com/frab","followers_url":"https://api.github.com/users/frab/followers","following_url":"https://api.github.com/users/frab/following{/other_user}","gists_url":"https://api.github.com/users/frab/gists{/gist_id}","starred_url":"https://api.github.com/users/frab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frab/subscriptions","organizations_url":"https://api.github.com/users/frab/orgs","repos_url":"https://api.github.com/users/frab/repos","events_url":"https://api.github.com/users/frab/events{/privacy}","received_events_url":"https://api.github.com/users/frab/received_events","type":"Organization","site_admin":false},"repo":{"id":1479403,"name":"frab","full_name":"frab/frab","owner":{"login":"frab","id":2217647,"avatar_url":"https://avatars.githubusercontent.com/u/2217647?v=3","gravatar_id":"","url":"https://api.github.com/users/frab","html_url":"https://github.com/frab","followers_url":"https://api.github.com/users/frab/followers","following_url":"https://api.github.com/users/frab/following{/other_user}","gists_url":"https://api.github.com/users/frab/gists{/gist_id}","starred_url":"https://api.github.com/users/frab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frab/subscriptions","organizations_url":"https://api.github.com/users/frab/orgs","repos_url":"https://api.github.com/users/frab/repos","events_url":"https://api.github.com/users/frab/events{/privacy}","received_events_url":"https://api.github.com/users/frab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/frab/frab","description":"conference manangement system","fork":false,"url":"https://api.github.com/repos/frab/frab","forks_url":"https://api.github.com/repos/frab/frab/forks","keys_url":"https://api.github.com/repos/frab/frab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/frab/frab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/frab/frab/teams","hooks_url":"https://api.github.com/repos/frab/frab/hooks","issue_events_url":"https://api.github.com/repos/frab/frab/issues/events{/number}","events_url":"https://api.github.com/repos/frab/frab/events","assignees_url":"https://api.github.com/repos/frab/frab/assignees{/user}","branches_url":"https://api.github.com/repos/frab/frab/branches{/branch}","tags_url":"https://api.github.com/repos/frab/frab/tags","blobs_url":"https://api.github.com/repos/frab/frab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/frab/frab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/frab/frab/git/refs{/sha}","trees_url":"https://api.github.com/repos/frab/frab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/frab/frab/statuses/{sha}","languages_url":"https://api.github.com/repos/frab/frab/languages","stargazers_url":"https://api.github.com/repos/frab/frab/stargazers","contributors_url":"https://api.github.com/repos/frab/frab/contributors","subscribers_url":"https://api.github.com/repos/frab/frab/subscribers","subscription_url":"https://api.github.com/repos/frab/frab/subscription","commits_url":"https://api.github.com/repos/frab/frab/commits{/sha}","git_commits_url":"https://api.github.com/repos/frab/frab/git/commits{/sha}","comments_url":"https://api.github.com/repos/frab/frab/comments{/number}","issue_comment_url":"https://api.github.com/repos/frab/frab/issues/comments{/number}","contents_url":"https://api.github.com/repos/frab/frab/contents/{+path}","compare_url":"https://api.github.com/repos/frab/frab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/frab/frab/merges","archive_url":"https://api.github.com/repos/frab/frab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/frab/frab/downloads","issues_url":"https://api.github.com/repos/frab/frab/issues{/number}","pulls_url":"https://api.github.com/repos/frab/frab/pulls{/number}","milestones_url":"https://api.github.com/repos/frab/frab/milestones{/number}","notifications_url":"https://api.github.com/repos/frab/frab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/frab/frab/labels{/name}","releases_url":"https://api.github.com/repos/frab/frab/releases{/id}","deployments_url":"https://api.github.com/repos/frab/frab/deployments","created_at":"2011-03-14T18:11:57Z","updated_at":"2016-05-26T12:58:29Z","pushed_at":"2016-06-03T21:26:41Z","git_url":"git://github.com/frab/frab.git","ssh_url":"git@github.com:frab/frab.git","clone_url":"https://github.com/frab/frab.git","svn_url":"https://github.com/frab/frab","homepage":"http://frab.github.com/frab","size":4132,"stargazers_count":127,"watchers_count":127,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":60,"mirror_url":null,"open_issues_count":58,"forks":60,"open_issues":58,"watchers":127,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/frab/frab/pulls/238"},"html":{"href":"https://github.com/frab/frab/pull/238"},"issue":{"href":"https://api.github.com/repos/frab/frab/issues/238"},"comments":{"href":"https://api.github.com/repos/frab/frab/issues/238/comments"},"review_comments":{"href":"https://api.github.com/repos/frab/frab/pulls/238/comments"},"review_comment":{"href":"https://api.github.com/repos/frab/frab/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/frab/frab/pulls/238/commits"},"statuses":{"href":"https://api.github.com/repos/frab/frab/statuses/f84716751bad6cde588e445c5f54e3e505a3e304"}}}}
{"actor":{"display_login":"zonque"}}