{"action":"created","comment":{"url":"https://api.github.com/repos/cantino/huginn/pulls/comments/62564351","id":62564351,"diff_hunk":"@@ -13,6 +13,7 @@\n         <%= link_to icon_tag('glyphicon-plus') + ' New Agent', new_agent_path, class: \"btn btn-default\" %>\n         <%= link_to icon_tag('glyphicon-refresh') + ' Run event propagation', propagate_agents_path, method: 'post', class: \"btn btn-default\" %>\n         <%= link_to icon_tag('glyphicon-random') + ' View diagram', diagram_path, class: \"btn btn-default\" %>\n+        <%= link_to icon_tag('glyphicon-adjust') + toggle_disabled_text(), toggle_visibility_agents_path, method: :put, class: \"btn btn-default visibility-enabler\" %>","path":"app/views/agents/index.html.erb","position":4,"original_position":4,"commit_id":"0f5740d41d19704b3893dcb4a91707a24e838476","original_commit_id":"0f5740d41d19704b3893dcb4a91707a24e838476","user":{"login":"dsander","id":20943,"avatar_url":"https://avatars.githubusercontent.com/u/20943?v=3","gravatar_id":"","url":"https://api.github.com/users/dsander","html_url":"https://github.com/dsander","followers_url":"https://api.github.com/users/dsander/followers","following_url":"https://api.github.com/users/dsander/following{/other_user}","gists_url":"https://api.github.com/users/dsander/gists{/gist_id}","starred_url":"https://api.github.com/users/dsander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsander/subscriptions","organizations_url":"https://api.github.com/users/dsander/orgs","repos_url":"https://api.github.com/users/dsander/repos","events_url":"https://api.github.com/users/dsander/events{/privacy}","received_events_url":"https://api.github.com/users/dsander/received_events","type":"User","site_admin":false},"body":"We usually omit the parentheses when calling a method without arguments.","created_at":"2016-05-09T20:12:05Z","updated_at":"2016-05-09T20:12:05Z","html_url":"https://github.com/cantino/huginn/pull/1464#discussion_r62564351","pull_request_url":"https://api.github.com/repos/cantino/huginn/pulls/1464","_links":{"self":{"href":"https://api.github.com/repos/cantino/huginn/pulls/comments/62564351"},"html":{"href":"https://github.com/cantino/huginn/pull/1464#discussion_r62564351"},"pull_request":{"href":"https://api.github.com/repos/cantino/huginn/pulls/1464"}}},"pull_request":{"url":"https://api.github.com/repos/cantino/huginn/pulls/1464","id":68469991,"html_url":"https://github.com/cantino/huginn/pull/1464","diff_url":"https://github.com/cantino/huginn/pull/1464.diff","patch_url":"https://github.com/cantino/huginn/pull/1464.patch","issue_url":"https://api.github.com/repos/cantino/huginn/issues/1464","number":1464,"state":"open","locked":false,"title":"Added button to toggle visibility of disabled agents","user":{"login":"International","id":1022918,"avatar_url":"https://avatars.githubusercontent.com/u/1022918?v=3","gravatar_id":"","url":"https://api.github.com/users/International","html_url":"https://github.com/International","followers_url":"https://api.github.com/users/International/followers","following_url":"https://api.github.com/users/International/following{/other_user}","gists_url":"https://api.github.com/users/International/gists{/gist_id}","starred_url":"https://api.github.com/users/International/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/International/subscriptions","organizations_url":"https://api.github.com/users/International/orgs","repos_url":"https://api.github.com/users/International/repos","events_url":"https://api.github.com/users/International/events{/privacy}","received_events_url":"https://api.github.com/users/International/received_events","type":"User","site_admin":false},"body":"\r\nIt happens that over time I disable some agents, but keep them in the list, for possible future use. However, they tend to take some space. With this PR, I've added a button to the bottom list, to be able to toggle visibility of disabled agents. Do you think this would be an useful addition to the project?\r\n\r\nScreenshot: \r\n![new-menu-bar](https://cloud.githubusercontent.com/assets/1022918/14936799/966e27ba-0ef5-11e6-81e5-5614b1682c6e.png)","created_at":"2016-04-30T15:00:58Z","updated_at":"2016-05-09T20:12:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"941c7fd562351ac0ab0f0a0ba1128034132ac95f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cantino/huginn/pulls/1464/commits","review_comments_url":"https://api.github.com/repos/cantino/huginn/pulls/1464/comments","review_comment_url":"https://api.github.com/repos/cantino/huginn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cantino/huginn/issues/1464/comments","statuses_url":"https://api.github.com/repos/cantino/huginn/statuses/0f5740d41d19704b3893dcb4a91707a24e838476","head":{"label":"International:show-hide-disabled","ref":"show-hide-disabled","sha":"0f5740d41d19704b3893dcb4a91707a24e838476","user":{"login":"International","id":1022918,"avatar_url":"https://avatars.githubusercontent.com/u/1022918?v=3","gravatar_id":"","url":"https://api.github.com/users/International","html_url":"https://github.com/International","followers_url":"https://api.github.com/users/International/followers","following_url":"https://api.github.com/users/International/following{/other_user}","gists_url":"https://api.github.com/users/International/gists{/gist_id}","starred_url":"https://api.github.com/users/International/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/International/subscriptions","organizations_url":"https://api.github.com/users/International/orgs","repos_url":"https://api.github.com/users/International/repos","events_url":"https://api.github.com/users/International/events{/privacy}","received_events_url":"https://api.github.com/users/International/received_events","type":"User","site_admin":false},"repo":{"id":51023934,"name":"huginn","full_name":"International/huginn","owner":{"login":"International","id":1022918,"avatar_url":"https://avatars.githubusercontent.com/u/1022918?v=3","gravatar_id":"","url":"https://api.github.com/users/International","html_url":"https://github.com/International","followers_url":"https://api.github.com/users/International/followers","following_url":"https://api.github.com/users/International/following{/other_user}","gists_url":"https://api.github.com/users/International/gists{/gist_id}","starred_url":"https://api.github.com/users/International/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/International/subscriptions","organizations_url":"https://api.github.com/users/International/orgs","repos_url":"https://api.github.com/users/International/repos","events_url":"https://api.github.com/users/International/events{/privacy}","received_events_url":"https://api.github.com/users/International/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/International/huginn","description":"Build agents that monitor and act on your behalf.  Your agents are standing by!","fork":true,"url":"https://api.github.com/repos/International/huginn","forks_url":"https://api.github.com/repos/International/huginn/forks","keys_url":"https://api.github.com/repos/International/huginn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/International/huginn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/International/huginn/teams","hooks_url":"https://api.github.com/repos/International/huginn/hooks","issue_events_url":"https://api.github.com/repos/International/huginn/issues/events{/number}","events_url":"https://api.github.com/repos/International/huginn/events","assignees_url":"https://api.github.com/repos/International/huginn/assignees{/user}","branches_url":"https://api.github.com/repos/International/huginn/branches{/branch}","tags_url":"https://api.github.com/repos/International/huginn/tags","blobs_url":"https://api.github.com/repos/International/huginn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/International/huginn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/International/huginn/git/refs{/sha}","trees_url":"https://api.github.com/repos/International/huginn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/International/huginn/statuses/{sha}","languages_url":"https://api.github.com/repos/International/huginn/languages","stargazers_url":"https://api.github.com/repos/International/huginn/stargazers","contributors_url":"https://api.github.com/repos/International/huginn/contributors","subscribers_url":"https://api.github.com/repos/International/huginn/subscribers","subscription_url":"https://api.github.com/repos/International/huginn/subscription","commits_url":"https://api.github.com/repos/International/huginn/commits{/sha}","git_commits_url":"https://api.github.com/repos/International/huginn/git/commits{/sha}","comments_url":"https://api.github.com/repos/International/huginn/comments{/number}","issue_comment_url":"https://api.github.com/repos/International/huginn/issues/comments{/number}","contents_url":"https://api.github.com/repos/International/huginn/contents/{+path}","compare_url":"https://api.github.com/repos/International/huginn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/International/huginn/merges","archive_url":"https://api.github.com/repos/International/huginn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/International/huginn/downloads","issues_url":"https://api.github.com/repos/International/huginn/issues{/number}","pulls_url":"https://api.github.com/repos/International/huginn/pulls{/number}","milestones_url":"https://api.github.com/repos/International/huginn/milestones{/number}","notifications_url":"https://api.github.com/repos/International/huginn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/International/huginn/labels{/name}","releases_url":"https://api.github.com/repos/International/huginn/releases{/id}","deployments_url":"https://api.github.com/repos/International/huginn/deployments","created_at":"2016-02-03T19:17:55Z","updated_at":"2016-02-03T19:17:57Z","pushed_at":"2016-05-08T17:55:09Z","git_url":"git://github.com/International/huginn.git","ssh_url":"git@github.com:International/huginn.git","clone_url":"https://github.com/International/huginn.git","svn_url":"https://github.com/International/huginn","homepage":null,"size":6433,"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":"cantino:master","ref":"master","sha":"01596c7ff168bac32b2fde96f905f5fedf18b0e7","user":{"login":"cantino","id":83835,"avatar_url":"https://avatars.githubusercontent.com/u/83835?v=3","gravatar_id":"","url":"https://api.github.com/users/cantino","html_url":"https://github.com/cantino","followers_url":"https://api.github.com/users/cantino/followers","following_url":"https://api.github.com/users/cantino/following{/other_user}","gists_url":"https://api.github.com/users/cantino/gists{/gist_id}","starred_url":"https://api.github.com/users/cantino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cantino/subscriptions","organizations_url":"https://api.github.com/users/cantino/orgs","repos_url":"https://api.github.com/users/cantino/repos","events_url":"https://api.github.com/users/cantino/events{/privacy}","received_events_url":"https://api.github.com/users/cantino/received_events","type":"User","site_admin":false},"repo":{"id":8681349,"name":"huginn","full_name":"cantino/huginn","owner":{"login":"cantino","id":83835,"avatar_url":"https://avatars.githubusercontent.com/u/83835?v=3","gravatar_id":"","url":"https://api.github.com/users/cantino","html_url":"https://github.com/cantino","followers_url":"https://api.github.com/users/cantino/followers","following_url":"https://api.github.com/users/cantino/following{/other_user}","gists_url":"https://api.github.com/users/cantino/gists{/gist_id}","starred_url":"https://api.github.com/users/cantino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cantino/subscriptions","organizations_url":"https://api.github.com/users/cantino/orgs","repos_url":"https://api.github.com/users/cantino/repos","events_url":"https://api.github.com/users/cantino/events{/privacy}","received_events_url":"https://api.github.com/users/cantino/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cantino/huginn","description":"Build agents that monitor and act on your behalf.  Your agents are standing by!","fork":false,"url":"https://api.github.com/repos/cantino/huginn","forks_url":"https://api.github.com/repos/cantino/huginn/forks","keys_url":"https://api.github.com/repos/cantino/huginn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cantino/huginn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cantino/huginn/teams","hooks_url":"https://api.github.com/repos/cantino/huginn/hooks","issue_events_url":"https://api.github.com/repos/cantino/huginn/issues/events{/number}","events_url":"https://api.github.com/repos/cantino/huginn/events","assignees_url":"https://api.github.com/repos/cantino/huginn/assignees{/user}","branches_url":"https://api.github.com/repos/cantino/huginn/branches{/branch}","tags_url":"https://api.github.com/repos/cantino/huginn/tags","blobs_url":"https://api.github.com/repos/cantino/huginn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cantino/huginn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cantino/huginn/git/refs{/sha}","trees_url":"https://api.github.com/repos/cantino/huginn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cantino/huginn/statuses/{sha}","languages_url":"https://api.github.com/repos/cantino/huginn/languages","stargazers_url":"https://api.github.com/repos/cantino/huginn/stargazers","contributors_url":"https://api.github.com/repos/cantino/huginn/contributors","subscribers_url":"https://api.github.com/repos/cantino/huginn/subscribers","subscription_url":"https://api.github.com/repos/cantino/huginn/subscription","commits_url":"https://api.github.com/repos/cantino/huginn/commits{/sha}","git_commits_url":"https://api.github.com/repos/cantino/huginn/git/commits{/sha}","comments_url":"https://api.github.com/repos/cantino/huginn/comments{/number}","issue_comment_url":"https://api.github.com/repos/cantino/huginn/issues/comments{/number}","contents_url":"https://api.github.com/repos/cantino/huginn/contents/{+path}","compare_url":"https://api.github.com/repos/cantino/huginn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cantino/huginn/merges","archive_url":"https://api.github.com/repos/cantino/huginn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cantino/huginn/downloads","issues_url":"https://api.github.com/repos/cantino/huginn/issues{/number}","pulls_url":"https://api.github.com/repos/cantino/huginn/pulls{/number}","milestones_url":"https://api.github.com/repos/cantino/huginn/milestones{/number}","notifications_url":"https://api.github.com/repos/cantino/huginn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cantino/huginn/labels{/name}","releases_url":"https://api.github.com/repos/cantino/huginn/releases{/id}","deployments_url":"https://api.github.com/repos/cantino/huginn/deployments","created_at":"2013-03-10T06:00:31Z","updated_at":"2016-05-09T17:57:21Z","pushed_at":"2016-05-08T19:55:47Z","git_url":"git://github.com/cantino/huginn.git","ssh_url":"git@github.com:cantino/huginn.git","clone_url":"https://github.com/cantino/huginn.git","svn_url":"https://github.com/cantino/huginn","homepage":null,"size":8969,"stargazers_count":13937,"watchers_count":13937,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1466,"mirror_url":null,"open_issues_count":195,"forks":1466,"open_issues":195,"watchers":13937,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cantino/huginn/pulls/1464"},"html":{"href":"https://github.com/cantino/huginn/pull/1464"},"issue":{"href":"https://api.github.com/repos/cantino/huginn/issues/1464"},"comments":{"href":"https://api.github.com/repos/cantino/huginn/issues/1464/comments"},"review_comments":{"href":"https://api.github.com/repos/cantino/huginn/pulls/1464/comments"},"review_comment":{"href":"https://api.github.com/repos/cantino/huginn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cantino/huginn/pulls/1464/commits"},"statuses":{"href":"https://api.github.com/repos/cantino/huginn/statuses/0f5740d41d19704b3893dcb4a91707a24e838476"}}}}