{"action":"created","comment":{"url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/pulls/comments/51459094","id":51459094,"diff_hunk":"@@ -0,0 +1,45 @@\n+<% @equipment = @equipment.sort_by &:dimmer %>\n+<% equipment_groupings = @equipment.slice_when {|a, b| a.dimmer != b.dimmer}.to_a %>\n+  <div id=\"dimmer-hookup\" class=\"tab-pane fade\">\n+    <h3>Dimmer Hookup</h3>\n+    <table class=\"table instrument-schedule\">\n+      <thead>\n+        <tr>\n+          <th class=\"Dim-H\">Dim</th>\n+          <th class=\"Chan-H\">Channel</th>\n+          <th class=\"Pos-H\">Position</th>\n+          <th class=\"Unit-H\">Unit#</th>\n+          <th class=\"Inst-H\">Instrument Type</th>\n+          <th class=\"Watt-H\">Wattage</th>\n+          <th class=\"Acc-H\">Accessories</th>\n+          <th class=\"Purp-H\">Purpose</th>\n+          <th class=\"Col-H\">Color</th>\n+          <th class=\"Ckt-H\">Circuit</th>\n+        </tr>\n+      </thead>\n+      <tbody>\n+        <% equipment_groupings.each do |equipment_group| %>\n+          <tr><td colspan=\"10\"><h4><%= equipment_group.first.dimmer %></h4></td></tr>\n+          <div class=\"dim-groups\">\n+            <% equipment_group.each do |equip| %>\n+              <tr id=\"DM-Row<%= equip.id %>\">\n+                <td class=\"e-pos\"></td>\n+                <td class=\"e-ch\"><%= equip.channel %></td>\n+                <td class=\"e-pos\"><%= equip.position %></td>\n+                <td class=\"e-num\"><%= equip.unit_number %></td>\n+                <td class=\"e-typ\"><%= equip.instrument_type %></td>\n+                <td class=\"e-wat\"><%= equip.wattage %></td>\n+                <td class=\"e-\"><%= equip.accessories %></td>\n+                <td class=\"e-pur\"><%= equip.purpose %></td>\n+                <td class=\"e-col\"><%= equip.color %></td>\n+                <td class=\"e-col\"><%= equip.circuit_name %><%= equip.circuit_number %></td>\n+                <td><a class=\"deep-blue edit-button\" href=\"/productions/<%= equip.production_id %>/channels/<%= equip.id %>/edit\"><span class=\"glyphicon glyphicon-edit\" aria-hidden=\"true\"></a></td>\n+                <td><a class=\"deep-red delete-button\" href=\"/productions/<%= equip.production_id %>/channels/<%= equip.id %>\"><span class=\"glyphicon glyphicon-remove\" aria-hidden=\"true\"></a></td>\n+              </tr>\n+            <% end %>\n+          </div> <!-- Close pos-groups -->\n+        <% end %>\n+      </tbody>\n+    </table>\n+  </div> <!-- Close dimmer hook-up -->\n+","path":"app/views/channels/_dimmer_hookup.html.erb","position":45,"original_position":45,"commit_id":"63674f96657a64acae6c9e00c1cd7e040042f570","original_commit_id":"63674f96657a64acae6c9e00c1cd7e040042f570","user":{"login":"b0uma","id":4597727,"avatar_url":"https://avatars.githubusercontent.com/u/4597727?v=3","gravatar_id":"","url":"https://api.github.com/users/b0uma","html_url":"https://github.com/b0uma","followers_url":"https://api.github.com/users/b0uma/followers","following_url":"https://api.github.com/users/b0uma/following{/other_user}","gists_url":"https://api.github.com/users/b0uma/gists{/gist_id}","starred_url":"https://api.github.com/users/b0uma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/b0uma/subscriptions","organizations_url":"https://api.github.com/users/b0uma/orgs","repos_url":"https://api.github.com/users/b0uma/repos","events_url":"https://api.github.com/users/b0uma/events{/privacy}","received_events_url":"https://api.github.com/users/b0uma/received_events","type":"User","site_admin":false},"body":"consider a partial for the shared code between the circuit page and the dimmer page","created_at":"2016-02-01T18:33:36Z","updated_at":"2016-02-01T18:33:36Z","html_url":"https://github.com/MastercraftLighting/Mastercraft-Lighting/pull/68#discussion_r51459094","pull_request_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/pulls/68","_links":{"self":{"href":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/pulls/comments/51459094"},"html":{"href":"https://github.com/MastercraftLighting/Mastercraft-Lighting/pull/68#discussion_r51459094"},"pull_request":{"href":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/pulls/68"}}},"pull_request":{"url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/pulls/68","id":57872657,"html_url":"https://github.com/MastercraftLighting/Mastercraft-Lighting/pull/68","diff_url":"https://github.com/MastercraftLighting/Mastercraft-Lighting/pull/68.diff","patch_url":"https://github.com/MastercraftLighting/Mastercraft-Lighting/pull/68.patch","issue_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/issues/68","number":68,"state":"open","locked":false,"title":"so I can leave comments. do not merge","user":{"login":"b0uma","id":4597727,"avatar_url":"https://avatars.githubusercontent.com/u/4597727?v=3","gravatar_id":"","url":"https://api.github.com/users/b0uma","html_url":"https://github.com/b0uma","followers_url":"https://api.github.com/users/b0uma/followers","following_url":"https://api.github.com/users/b0uma/following{/other_user}","gists_url":"https://api.github.com/users/b0uma/gists{/gist_id}","starred_url":"https://api.github.com/users/b0uma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/b0uma/subscriptions","organizations_url":"https://api.github.com/users/b0uma/orgs","repos_url":"https://api.github.com/users/b0uma/repos","events_url":"https://api.github.com/users/b0uma/events{/privacy}","received_events_url":"https://api.github.com/users/b0uma/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-01T17:34:23Z","updated_at":"2016-02-01T18:33:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c1d79f338ba4fe39d936543f03a434e6113a5673","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/pulls/68/commits","review_comments_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/pulls/68/comments","review_comment_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/issues/68/comments","statuses_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/statuses/63674f96657a64acae6c9e00c1cd7e040042f570","head":{"label":"MastercraftLighting:staging","ref":"staging","sha":"63674f96657a64acae6c9e00c1cd7e040042f570","user":{"login":"MastercraftLighting","id":17010492,"avatar_url":"https://avatars.githubusercontent.com/u/17010492?v=3","gravatar_id":"","url":"https://api.github.com/users/MastercraftLighting","html_url":"https://github.com/MastercraftLighting","followers_url":"https://api.github.com/users/MastercraftLighting/followers","following_url":"https://api.github.com/users/MastercraftLighting/following{/other_user}","gists_url":"https://api.github.com/users/MastercraftLighting/gists{/gist_id}","starred_url":"https://api.github.com/users/MastercraftLighting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MastercraftLighting/subscriptions","organizations_url":"https://api.github.com/users/MastercraftLighting/orgs","repos_url":"https://api.github.com/users/MastercraftLighting/repos","events_url":"https://api.github.com/users/MastercraftLighting/events{/privacy}","received_events_url":"https://api.github.com/users/MastercraftLighting/received_events","type":"Organization","site_admin":false},"repo":{"id":50701818,"name":"Mastercraft-Lighting","full_name":"MastercraftLighting/Mastercraft-Lighting","owner":{"login":"MastercraftLighting","id":17010492,"avatar_url":"https://avatars.githubusercontent.com/u/17010492?v=3","gravatar_id":"","url":"https://api.github.com/users/MastercraftLighting","html_url":"https://github.com/MastercraftLighting","followers_url":"https://api.github.com/users/MastercraftLighting/followers","following_url":"https://api.github.com/users/MastercraftLighting/following{/other_user}","gists_url":"https://api.github.com/users/MastercraftLighting/gists{/gist_id}","starred_url":"https://api.github.com/users/MastercraftLighting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MastercraftLighting/subscriptions","organizations_url":"https://api.github.com/users/MastercraftLighting/orgs","repos_url":"https://api.github.com/users/MastercraftLighting/repos","events_url":"https://api.github.com/users/MastercraftLighting/events{/privacy}","received_events_url":"https://api.github.com/users/MastercraftLighting/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MastercraftLighting/Mastercraft-Lighting","description":"","fork":false,"url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting","forks_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/forks","keys_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/teams","hooks_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/hooks","issue_events_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/issues/events{/number}","events_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/events","assignees_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/assignees{/user}","branches_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/branches{/branch}","tags_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/tags","blobs_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/git/refs{/sha}","trees_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/statuses/{sha}","languages_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/languages","stargazers_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/stargazers","contributors_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/contributors","subscribers_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/subscribers","subscription_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/subscription","commits_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/commits{/sha}","git_commits_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/git/commits{/sha}","comments_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/comments{/number}","issue_comment_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/issues/comments{/number}","contents_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/contents/{+path}","compare_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/merges","archive_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/downloads","issues_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/issues{/number}","pulls_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/pulls{/number}","milestones_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/milestones{/number}","notifications_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/labels{/name}","releases_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/releases{/id}","deployments_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/deployments","created_at":"2016-01-30T01:03:58Z","updated_at":"2016-02-01T17:40:33Z","pushed_at":"2016-02-01T18:22:50Z","git_url":"git://github.com/MastercraftLighting/Mastercraft-Lighting.git","ssh_url":"git@github.com:MastercraftLighting/Mastercraft-Lighting.git","clone_url":"https://github.com/MastercraftLighting/Mastercraft-Lighting.git","svn_url":"https://github.com/MastercraftLighting/Mastercraft-Lighting","homepage":null,"size":11711,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"MastercraftLighting:master","ref":"master","sha":"b1880c41fb5b512ee49af738c5e9c69006173510","user":{"login":"MastercraftLighting","id":17010492,"avatar_url":"https://avatars.githubusercontent.com/u/17010492?v=3","gravatar_id":"","url":"https://api.github.com/users/MastercraftLighting","html_url":"https://github.com/MastercraftLighting","followers_url":"https://api.github.com/users/MastercraftLighting/followers","following_url":"https://api.github.com/users/MastercraftLighting/following{/other_user}","gists_url":"https://api.github.com/users/MastercraftLighting/gists{/gist_id}","starred_url":"https://api.github.com/users/MastercraftLighting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MastercraftLighting/subscriptions","organizations_url":"https://api.github.com/users/MastercraftLighting/orgs","repos_url":"https://api.github.com/users/MastercraftLighting/repos","events_url":"https://api.github.com/users/MastercraftLighting/events{/privacy}","received_events_url":"https://api.github.com/users/MastercraftLighting/received_events","type":"Organization","site_admin":false},"repo":{"id":50701818,"name":"Mastercraft-Lighting","full_name":"MastercraftLighting/Mastercraft-Lighting","owner":{"login":"MastercraftLighting","id":17010492,"avatar_url":"https://avatars.githubusercontent.com/u/17010492?v=3","gravatar_id":"","url":"https://api.github.com/users/MastercraftLighting","html_url":"https://github.com/MastercraftLighting","followers_url":"https://api.github.com/users/MastercraftLighting/followers","following_url":"https://api.github.com/users/MastercraftLighting/following{/other_user}","gists_url":"https://api.github.com/users/MastercraftLighting/gists{/gist_id}","starred_url":"https://api.github.com/users/MastercraftLighting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MastercraftLighting/subscriptions","organizations_url":"https://api.github.com/users/MastercraftLighting/orgs","repos_url":"https://api.github.com/users/MastercraftLighting/repos","events_url":"https://api.github.com/users/MastercraftLighting/events{/privacy}","received_events_url":"https://api.github.com/users/MastercraftLighting/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MastercraftLighting/Mastercraft-Lighting","description":"","fork":false,"url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting","forks_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/forks","keys_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/teams","hooks_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/hooks","issue_events_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/issues/events{/number}","events_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/events","assignees_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/assignees{/user}","branches_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/branches{/branch}","tags_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/tags","blobs_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/git/refs{/sha}","trees_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/statuses/{sha}","languages_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/languages","stargazers_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/stargazers","contributors_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/contributors","subscribers_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/subscribers","subscription_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/subscription","commits_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/commits{/sha}","git_commits_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/git/commits{/sha}","comments_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/comments{/number}","issue_comment_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/issues/comments{/number}","contents_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/contents/{+path}","compare_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/merges","archive_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/downloads","issues_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/issues{/number}","pulls_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/pulls{/number}","milestones_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/milestones{/number}","notifications_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/labels{/name}","releases_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/releases{/id}","deployments_url":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/deployments","created_at":"2016-01-30T01:03:58Z","updated_at":"2016-02-01T17:40:33Z","pushed_at":"2016-02-01T18:22:50Z","git_url":"git://github.com/MastercraftLighting/Mastercraft-Lighting.git","ssh_url":"git@github.com:MastercraftLighting/Mastercraft-Lighting.git","clone_url":"https://github.com/MastercraftLighting/Mastercraft-Lighting.git","svn_url":"https://github.com/MastercraftLighting/Mastercraft-Lighting","homepage":null,"size":11711,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/pulls/68"},"html":{"href":"https://github.com/MastercraftLighting/Mastercraft-Lighting/pull/68"},"issue":{"href":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/issues/68"},"comments":{"href":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/issues/68/comments"},"review_comments":{"href":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/pulls/68/comments"},"review_comment":{"href":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/pulls/68/commits"},"statuses":{"href":"https://api.github.com/repos/MastercraftLighting/Mastercraft-Lighting/statuses/63674f96657a64acae6c9e00c1cd7e040042f570"}}}}