{"action":"created","comment":{"url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/pulls/comments/104048373","pull_request_review_id":24863065,"id":104048373,"diff_hunk":"@@ -3,35 +3,24 @@ module.exports = function(options) {\n \n   options.title = 'Manufacturers - Open Fixture Library';\n \n-  let str = require('../partials/header')(options);\n+  let str = require('../includes/header')(options);\n \n   str += '<h1>Manufacturers</h1>';\n \n-  for (man in manufacturers) {\n+  str += '<div class=\"manufacturers\">';\n+  for (man in register.manufacturers) {\n     const manufacturer = manufacturers[man];\n-    const num = (man in register.manufacturers) ? register.manufacturers[man].length : 0;\n+    const num = register.manufacturers[man].length;\n     const numFixtures = `${num} fixture${num == 1 ? '' : 's'}`;\n \n-    str += '<section class=\"manufacturer\">';\n-    str += '<h2>' + (num > 0 ? `<a href=\"${man}\">${manufacturer.name}</a>` : manufacturer.name) + '</h2>';\n-\n-    if ('website' in manufacturer) {\n-      str += `<div class=\"website\"><a href=\"${manufacturer.website}\">Website</a></div>`;\n-    }\n-    if ('comment' in manufacturer) {\n-      str += `<p class=\"comment\">${manufacturer.comment}</p>`;\n-    }\n-\n-    str += '<div class=\"fixtures\">' + numFixtures;\n-    if (num > 0) {\n-      str += ` - <a href=\"/${man}\">View them</a>`;\n-    }\n-    str += '</div>';\n-\n-    str += '</section>';\n+    str += `<a href=\"${encodeURIComponent(man)}\" class=\"card\">`;","path":"views/pages/manufacturers.js","position":34,"original_position":34,"commit_id":"253807718f6bb5d5463b1efa88df326cab7b8529","original_commit_id":"253807718f6bb5d5463b1efa88df326cab7b8529","user":{"login":"fxedel","id":7782229,"avatar_url":"https://avatars0.githubusercontent.com/u/7782229?v=3","gravatar_id":"","url":"https://api.github.com/users/fxedel","html_url":"https://github.com/fxedel","followers_url":"https://api.github.com/users/fxedel/followers","following_url":"https://api.github.com/users/fxedel/following{/other_user}","gists_url":"https://api.github.com/users/fxedel/gists{/gist_id}","starred_url":"https://api.github.com/users/fxedel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxedel/subscriptions","organizations_url":"https://api.github.com/users/fxedel/orgs","repos_url":"https://api.github.com/users/fxedel/repos","events_url":"https://api.github.com/users/fxedel/events{/privacy}","received_events_url":"https://api.github.com/users/fxedel/received_events","type":"User","site_admin":false},"body":"remove encodeURIComponent for manufacturers","created_at":"2017-03-02T22:38:56Z","updated_at":"2017-03-02T22:38:56Z","html_url":"https://github.com/FloEdelmann/open-fixture-library/pull/32#discussion_r104048373","pull_request_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/FloEdelmann/open-fixture-library/pulls/comments/104048373"},"html":{"href":"https://github.com/FloEdelmann/open-fixture-library/pull/32#discussion_r104048373"},"pull_request":{"href":"https://api.github.com/repos/FloEdelmann/open-fixture-library/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/pulls/32","id":108559885,"html_url":"https://github.com/FloEdelmann/open-fixture-library/pull/32","diff_url":"https://github.com/FloEdelmann/open-fixture-library/pull/32.diff","patch_url":"https://github.com/FloEdelmann/open-fixture-library/pull/32.patch","issue_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/issues/32","number":32,"state":"open","locked":false,"title":"WIP: Improve UI","user":{"login":"fxedel","id":7782229,"avatar_url":"https://avatars0.githubusercontent.com/u/7782229?v=3","gravatar_id":"","url":"https://api.github.com/users/fxedel","html_url":"https://github.com/fxedel","followers_url":"https://api.github.com/users/fxedel/followers","following_url":"https://api.github.com/users/fxedel/following{/other_user}","gists_url":"https://api.github.com/users/fxedel/gists{/gist_id}","starred_url":"https://api.github.com/users/fxedel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxedel/subscriptions","organizations_url":"https://api.github.com/users/fxedel/orgs","repos_url":"https://api.github.com/users/fxedel/repos","events_url":"https://api.github.com/users/fxedel/events{/privacy}","received_events_url":"https://api.github.com/users/fxedel/received_events","type":"User","site_admin":false},"body":"#18 ","created_at":"2017-03-01T15:21:23Z","updated_at":"2017-03-02T22:38:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7cc6be322e8f92e02b76acdf1bdabfcb48da6861","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/pulls/32/commits","review_comments_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/pulls/32/comments","review_comment_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/issues/32/comments","statuses_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/statuses/253807718f6bb5d5463b1efa88df326cab7b8529","head":{"label":"FloEdelmann:muilga","ref":"muilga","sha":"253807718f6bb5d5463b1efa88df326cab7b8529","user":{"login":"FloEdelmann","id":202916,"avatar_url":"https://avatars2.githubusercontent.com/u/202916?v=3","gravatar_id":"","url":"https://api.github.com/users/FloEdelmann","html_url":"https://github.com/FloEdelmann","followers_url":"https://api.github.com/users/FloEdelmann/followers","following_url":"https://api.github.com/users/FloEdelmann/following{/other_user}","gists_url":"https://api.github.com/users/FloEdelmann/gists{/gist_id}","starred_url":"https://api.github.com/users/FloEdelmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FloEdelmann/subscriptions","organizations_url":"https://api.github.com/users/FloEdelmann/orgs","repos_url":"https://api.github.com/users/FloEdelmann/repos","events_url":"https://api.github.com/users/FloEdelmann/events{/privacy}","received_events_url":"https://api.github.com/users/FloEdelmann/received_events","type":"User","site_admin":false},"repo":{"id":82906506,"name":"open-fixture-library","full_name":"FloEdelmann/open-fixture-library","owner":{"login":"FloEdelmann","id":202916,"avatar_url":"https://avatars2.githubusercontent.com/u/202916?v=3","gravatar_id":"","url":"https://api.github.com/users/FloEdelmann","html_url":"https://github.com/FloEdelmann","followers_url":"https://api.github.com/users/FloEdelmann/followers","following_url":"https://api.github.com/users/FloEdelmann/following{/other_user}","gists_url":"https://api.github.com/users/FloEdelmann/gists{/gist_id}","starred_url":"https://api.github.com/users/FloEdelmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FloEdelmann/subscriptions","organizations_url":"https://api.github.com/users/FloEdelmann/orgs","repos_url":"https://api.github.com/users/FloEdelmann/repos","events_url":"https://api.github.com/users/FloEdelmann/events{/privacy}","received_events_url":"https://api.github.com/users/FloEdelmann/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/FloEdelmann/open-fixture-library","description":"An open source library for lighting technology's fixture definition files.","fork":false,"url":"https://api.github.com/repos/FloEdelmann/open-fixture-library","forks_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/forks","keys_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/teams","hooks_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/hooks","issue_events_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/issues/events{/number}","events_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/events","assignees_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/assignees{/user}","branches_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/branches{/branch}","tags_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/tags","blobs_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/git/refs{/sha}","trees_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/statuses/{sha}","languages_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/languages","stargazers_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/stargazers","contributors_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/contributors","subscribers_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/subscribers","subscription_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/subscription","commits_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/commits{/sha}","git_commits_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/git/commits{/sha}","comments_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/comments{/number}","issue_comment_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/issues/comments{/number}","contents_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/contents/{+path}","compare_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/merges","archive_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/downloads","issues_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/issues{/number}","pulls_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/pulls{/number}","milestones_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/milestones{/number}","notifications_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/labels{/name}","releases_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/releases{/id}","deployments_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/deployments","created_at":"2017-02-23T08:55:02Z","updated_at":"2017-02-27T20:37:20Z","pushed_at":"2017-03-02T18:03:01Z","git_url":"git://github.com/FloEdelmann/open-fixture-library.git","ssh_url":"git@github.com:FloEdelmann/open-fixture-library.git","clone_url":"https://github.com/FloEdelmann/open-fixture-library.git","svn_url":"https://github.com/FloEdelmann/open-fixture-library","homepage":"https://open-fixture-library.herokuapp.com/","size":4311,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":2,"default_branch":"master"}},"base":{"label":"FloEdelmann:master","ref":"master","sha":"9a513d12278c22eeba2bb06b06fa19e01b0d4f0a","user":{"login":"FloEdelmann","id":202916,"avatar_url":"https://avatars2.githubusercontent.com/u/202916?v=3","gravatar_id":"","url":"https://api.github.com/users/FloEdelmann","html_url":"https://github.com/FloEdelmann","followers_url":"https://api.github.com/users/FloEdelmann/followers","following_url":"https://api.github.com/users/FloEdelmann/following{/other_user}","gists_url":"https://api.github.com/users/FloEdelmann/gists{/gist_id}","starred_url":"https://api.github.com/users/FloEdelmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FloEdelmann/subscriptions","organizations_url":"https://api.github.com/users/FloEdelmann/orgs","repos_url":"https://api.github.com/users/FloEdelmann/repos","events_url":"https://api.github.com/users/FloEdelmann/events{/privacy}","received_events_url":"https://api.github.com/users/FloEdelmann/received_events","type":"User","site_admin":false},"repo":{"id":82906506,"name":"open-fixture-library","full_name":"FloEdelmann/open-fixture-library","owner":{"login":"FloEdelmann","id":202916,"avatar_url":"https://avatars2.githubusercontent.com/u/202916?v=3","gravatar_id":"","url":"https://api.github.com/users/FloEdelmann","html_url":"https://github.com/FloEdelmann","followers_url":"https://api.github.com/users/FloEdelmann/followers","following_url":"https://api.github.com/users/FloEdelmann/following{/other_user}","gists_url":"https://api.github.com/users/FloEdelmann/gists{/gist_id}","starred_url":"https://api.github.com/users/FloEdelmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FloEdelmann/subscriptions","organizations_url":"https://api.github.com/users/FloEdelmann/orgs","repos_url":"https://api.github.com/users/FloEdelmann/repos","events_url":"https://api.github.com/users/FloEdelmann/events{/privacy}","received_events_url":"https://api.github.com/users/FloEdelmann/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/FloEdelmann/open-fixture-library","description":"An open source library for lighting technology's fixture definition files.","fork":false,"url":"https://api.github.com/repos/FloEdelmann/open-fixture-library","forks_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/forks","keys_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/teams","hooks_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/hooks","issue_events_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/issues/events{/number}","events_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/events","assignees_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/assignees{/user}","branches_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/branches{/branch}","tags_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/tags","blobs_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/git/refs{/sha}","trees_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/statuses/{sha}","languages_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/languages","stargazers_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/stargazers","contributors_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/contributors","subscribers_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/subscribers","subscription_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/subscription","commits_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/commits{/sha}","git_commits_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/git/commits{/sha}","comments_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/comments{/number}","issue_comment_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/issues/comments{/number}","contents_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/contents/{+path}","compare_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/merges","archive_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/downloads","issues_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/issues{/number}","pulls_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/pulls{/number}","milestones_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/milestones{/number}","notifications_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/labels{/name}","releases_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/releases{/id}","deployments_url":"https://api.github.com/repos/FloEdelmann/open-fixture-library/deployments","created_at":"2017-02-23T08:55:02Z","updated_at":"2017-02-27T20:37:20Z","pushed_at":"2017-03-02T18:03:01Z","git_url":"git://github.com/FloEdelmann/open-fixture-library.git","ssh_url":"git@github.com:FloEdelmann/open-fixture-library.git","clone_url":"https://github.com/FloEdelmann/open-fixture-library.git","svn_url":"https://github.com/FloEdelmann/open-fixture-library","homepage":"https://open-fixture-library.herokuapp.com/","size":4311,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FloEdelmann/open-fixture-library/pulls/32"},"html":{"href":"https://github.com/FloEdelmann/open-fixture-library/pull/32"},"issue":{"href":"https://api.github.com/repos/FloEdelmann/open-fixture-library/issues/32"},"comments":{"href":"https://api.github.com/repos/FloEdelmann/open-fixture-library/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/FloEdelmann/open-fixture-library/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/FloEdelmann/open-fixture-library/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FloEdelmann/open-fixture-library/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/FloEdelmann/open-fixture-library/statuses/253807718f6bb5d5463b1efa88df326cab7b8529"}}}}
{"actor":{"display_login":"fxedel"}}