{"action":"created","comment":{"url":"https://api.github.com/repos/solute/pyramid_epfl/pulls/comments/33938873","id":33938873,"diff_hunk":"@@ -0,0 +1,25 @@\n+<div id=\"{{ compo.cid }}\" epflid=\"{{ compo.cid }}\" class=\"epfl-colorpicker\">\n+    <div class=\"clearfix\"></div>\n+    {% for val in compo.value_options %}\n+        {% if val[\"type\"] == 0 %}\n+            <div class=\"epfl-colorpicker-colorfield pull-left\"\n+                 style=\"background-color: {{ val[\"data\"] }}\"\n+                 data-toggle=\"tooltip\"\n+                 data-placement=\"top\"\n+                 title=\"{{ val[\"data\"]  }} {% if val[\"text\"]  is defined %}{{ val[\"text\"]  }}{% endif %}\"\n+                 data-value=\"{{ val[\"data\"] }}\">\n+            {% if compo.value != None and val in compo.value %}<i class=\"fa fa-check fa-lg text-primary\"></i>{% endif %}\n+            </div>\n+        {% else %}\n+            <div class=\"epfl-colorpicker-specialfield pull-left text-center\"\n+                 data-toggle=\"tooltip\"\n+                 data-placement=\"top\"\n+                 title=\"{{ val[\"data\"]  }} {% if val[\"text\"]  is defined %}{{ val[\"text\"]  }}{% endif %}\"","path":"solute/epfl/components/colorpicker/colorpicker.html","position":17,"original_position":17,"commit_id":"75e1ebd3b1c35c5ffd6aefc69f043a4b035b9aa2","original_commit_id":"75e1ebd3b1c35c5ffd6aefc69f043a4b035b9aa2","user":{"login":"JustusW","id":1852088,"avatar_url":"https://avatars.githubusercontent.com/u/1852088?v=3","gravatar_id":"","url":"https://api.github.com/users/JustusW","html_url":"https://github.com/JustusW","followers_url":"https://api.github.com/users/JustusW/followers","following_url":"https://api.github.com/users/JustusW/following{/other_user}","gists_url":"https://api.github.com/users/JustusW/gists{/gist_id}","starred_url":"https://api.github.com/users/JustusW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JustusW/subscriptions","organizations_url":"https://api.github.com/users/JustusW/orgs","repos_url":"https://api.github.com/users/JustusW/repos","events_url":"https://api.github.com/users/JustusW/events{/privacy}","received_events_url":"https://api.github.com/users/JustusW/received_events","type":"User","site_admin":false},"body":"Use inline if.","created_at":"2015-07-06T14:25:50Z","updated_at":"2015-07-06T14:25:50Z","html_url":"https://github.com/solute/pyramid_epfl/pull/60#discussion_r33938873","pull_request_url":"https://api.github.com/repos/solute/pyramid_epfl/pulls/60","_links":{"self":{"href":"https://api.github.com/repos/solute/pyramid_epfl/pulls/comments/33938873"},"html":{"href":"https://github.com/solute/pyramid_epfl/pull/60#discussion_r33938873"},"pull_request":{"href":"https://api.github.com/repos/solute/pyramid_epfl/pulls/60"}}},"pull_request":{"url":"https://api.github.com/repos/solute/pyramid_epfl/pulls/60","id":39269800,"html_url":"https://github.com/solute/pyramid_epfl/pull/60","diff_url":"https://github.com/solute/pyramid_epfl/pull/60.diff","patch_url":"https://github.com/solute/pyramid_epfl/pull/60.patch","issue_url":"https://api.github.com/repos/solute/pyramid_epfl/issues/60","number":60,"state":"open","locked":false,"title":"Colorpicker","user":{"login":"mstipcevic","id":1439685,"avatar_url":"https://avatars.githubusercontent.com/u/1439685?v=3","gravatar_id":"","url":"https://api.github.com/users/mstipcevic","html_url":"https://github.com/mstipcevic","followers_url":"https://api.github.com/users/mstipcevic/followers","following_url":"https://api.github.com/users/mstipcevic/following{/other_user}","gists_url":"https://api.github.com/users/mstipcevic/gists{/gist_id}","starred_url":"https://api.github.com/users/mstipcevic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mstipcevic/subscriptions","organizations_url":"https://api.github.com/users/mstipcevic/orgs","repos_url":"https://api.github.com/users/mstipcevic/repos","events_url":"https://api.github.com/users/mstipcevic/events{/privacy}","received_events_url":"https://api.github.com/users/mstipcevic/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-06T13:55:18Z","updated_at":"2015-07-06T14:25:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4d72f7e02743982506d29aa88cf4fdd01bc98de5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/solute/pyramid_epfl/pulls/60/commits","review_comments_url":"https://api.github.com/repos/solute/pyramid_epfl/pulls/60/comments","review_comment_url":"https://api.github.com/repos/solute/pyramid_epfl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/solute/pyramid_epfl/issues/60/comments","statuses_url":"https://api.github.com/repos/solute/pyramid_epfl/statuses/75e1ebd3b1c35c5ffd6aefc69f043a4b035b9aa2","head":{"label":"solute:colorpicker","ref":"colorpicker","sha":"75e1ebd3b1c35c5ffd6aefc69f043a4b035b9aa2","user":{"login":"solute","id":557154,"avatar_url":"https://avatars.githubusercontent.com/u/557154?v=3","gravatar_id":"","url":"https://api.github.com/users/solute","html_url":"https://github.com/solute","followers_url":"https://api.github.com/users/solute/followers","following_url":"https://api.github.com/users/solute/following{/other_user}","gists_url":"https://api.github.com/users/solute/gists{/gist_id}","starred_url":"https://api.github.com/users/solute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solute/subscriptions","organizations_url":"https://api.github.com/users/solute/orgs","repos_url":"https://api.github.com/users/solute/repos","events_url":"https://api.github.com/users/solute/events{/privacy}","received_events_url":"https://api.github.com/users/solute/received_events","type":"Organization","site_admin":false},"repo":{"id":17905989,"name":"pyramid_epfl","full_name":"solute/pyramid_epfl","owner":{"login":"solute","id":557154,"avatar_url":"https://avatars.githubusercontent.com/u/557154?v=3","gravatar_id":"","url":"https://api.github.com/users/solute","html_url":"https://github.com/solute","followers_url":"https://api.github.com/users/solute/followers","following_url":"https://api.github.com/users/solute/following{/other_user}","gists_url":"https://api.github.com/users/solute/gists{/gist_id}","starred_url":"https://api.github.com/users/solute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solute/subscriptions","organizations_url":"https://api.github.com/users/solute/orgs","repos_url":"https://api.github.com/users/solute/repos","events_url":"https://api.github.com/users/solute/events{/privacy}","received_events_url":"https://api.github.com/users/solute/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/solute/pyramid_epfl","description":"EPFL Python Frontend Logic for Pyramid","fork":false,"url":"https://api.github.com/repos/solute/pyramid_epfl","forks_url":"https://api.github.com/repos/solute/pyramid_epfl/forks","keys_url":"https://api.github.com/repos/solute/pyramid_epfl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/solute/pyramid_epfl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/solute/pyramid_epfl/teams","hooks_url":"https://api.github.com/repos/solute/pyramid_epfl/hooks","issue_events_url":"https://api.github.com/repos/solute/pyramid_epfl/issues/events{/number}","events_url":"https://api.github.com/repos/solute/pyramid_epfl/events","assignees_url":"https://api.github.com/repos/solute/pyramid_epfl/assignees{/user}","branches_url":"https://api.github.com/repos/solute/pyramid_epfl/branches{/branch}","tags_url":"https://api.github.com/repos/solute/pyramid_epfl/tags","blobs_url":"https://api.github.com/repos/solute/pyramid_epfl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/solute/pyramid_epfl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/solute/pyramid_epfl/git/refs{/sha}","trees_url":"https://api.github.com/repos/solute/pyramid_epfl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/solute/pyramid_epfl/statuses/{sha}","languages_url":"https://api.github.com/repos/solute/pyramid_epfl/languages","stargazers_url":"https://api.github.com/repos/solute/pyramid_epfl/stargazers","contributors_url":"https://api.github.com/repos/solute/pyramid_epfl/contributors","subscribers_url":"https://api.github.com/repos/solute/pyramid_epfl/subscribers","subscription_url":"https://api.github.com/repos/solute/pyramid_epfl/subscription","commits_url":"https://api.github.com/repos/solute/pyramid_epfl/commits{/sha}","git_commits_url":"https://api.github.com/repos/solute/pyramid_epfl/git/commits{/sha}","comments_url":"https://api.github.com/repos/solute/pyramid_epfl/comments{/number}","issue_comment_url":"https://api.github.com/repos/solute/pyramid_epfl/issues/comments{/number}","contents_url":"https://api.github.com/repos/solute/pyramid_epfl/contents/{+path}","compare_url":"https://api.github.com/repos/solute/pyramid_epfl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/solute/pyramid_epfl/merges","archive_url":"https://api.github.com/repos/solute/pyramid_epfl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/solute/pyramid_epfl/downloads","issues_url":"https://api.github.com/repos/solute/pyramid_epfl/issues{/number}","pulls_url":"https://api.github.com/repos/solute/pyramid_epfl/pulls{/number}","milestones_url":"https://api.github.com/repos/solute/pyramid_epfl/milestones{/number}","notifications_url":"https://api.github.com/repos/solute/pyramid_epfl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/solute/pyramid_epfl/labels{/name}","releases_url":"https://api.github.com/repos/solute/pyramid_epfl/releases{/id}","created_at":"2014-03-19T13:56:00Z","updated_at":"2015-06-26T13:12:54Z","pushed_at":"2015-07-06T13:55:18Z","git_url":"git://github.com/solute/pyramid_epfl.git","ssh_url":"git@github.com:solute/pyramid_epfl.git","clone_url":"https://github.com/solute/pyramid_epfl.git","svn_url":"https://github.com/solute/pyramid_epfl","homepage":null,"size":8038,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":1,"forks":5,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"solute:master","ref":"master","sha":"2aacb0b71d0adfc89bc8bb9125f949431c243f34","user":{"login":"solute","id":557154,"avatar_url":"https://avatars.githubusercontent.com/u/557154?v=3","gravatar_id":"","url":"https://api.github.com/users/solute","html_url":"https://github.com/solute","followers_url":"https://api.github.com/users/solute/followers","following_url":"https://api.github.com/users/solute/following{/other_user}","gists_url":"https://api.github.com/users/solute/gists{/gist_id}","starred_url":"https://api.github.com/users/solute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solute/subscriptions","organizations_url":"https://api.github.com/users/solute/orgs","repos_url":"https://api.github.com/users/solute/repos","events_url":"https://api.github.com/users/solute/events{/privacy}","received_events_url":"https://api.github.com/users/solute/received_events","type":"Organization","site_admin":false},"repo":{"id":17905989,"name":"pyramid_epfl","full_name":"solute/pyramid_epfl","owner":{"login":"solute","id":557154,"avatar_url":"https://avatars.githubusercontent.com/u/557154?v=3","gravatar_id":"","url":"https://api.github.com/users/solute","html_url":"https://github.com/solute","followers_url":"https://api.github.com/users/solute/followers","following_url":"https://api.github.com/users/solute/following{/other_user}","gists_url":"https://api.github.com/users/solute/gists{/gist_id}","starred_url":"https://api.github.com/users/solute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solute/subscriptions","organizations_url":"https://api.github.com/users/solute/orgs","repos_url":"https://api.github.com/users/solute/repos","events_url":"https://api.github.com/users/solute/events{/privacy}","received_events_url":"https://api.github.com/users/solute/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/solute/pyramid_epfl","description":"EPFL Python Frontend Logic for Pyramid","fork":false,"url":"https://api.github.com/repos/solute/pyramid_epfl","forks_url":"https://api.github.com/repos/solute/pyramid_epfl/forks","keys_url":"https://api.github.com/repos/solute/pyramid_epfl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/solute/pyramid_epfl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/solute/pyramid_epfl/teams","hooks_url":"https://api.github.com/repos/solute/pyramid_epfl/hooks","issue_events_url":"https://api.github.com/repos/solute/pyramid_epfl/issues/events{/number}","events_url":"https://api.github.com/repos/solute/pyramid_epfl/events","assignees_url":"https://api.github.com/repos/solute/pyramid_epfl/assignees{/user}","branches_url":"https://api.github.com/repos/solute/pyramid_epfl/branches{/branch}","tags_url":"https://api.github.com/repos/solute/pyramid_epfl/tags","blobs_url":"https://api.github.com/repos/solute/pyramid_epfl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/solute/pyramid_epfl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/solute/pyramid_epfl/git/refs{/sha}","trees_url":"https://api.github.com/repos/solute/pyramid_epfl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/solute/pyramid_epfl/statuses/{sha}","languages_url":"https://api.github.com/repos/solute/pyramid_epfl/languages","stargazers_url":"https://api.github.com/repos/solute/pyramid_epfl/stargazers","contributors_url":"https://api.github.com/repos/solute/pyramid_epfl/contributors","subscribers_url":"https://api.github.com/repos/solute/pyramid_epfl/subscribers","subscription_url":"https://api.github.com/repos/solute/pyramid_epfl/subscription","commits_url":"https://api.github.com/repos/solute/pyramid_epfl/commits{/sha}","git_commits_url":"https://api.github.com/repos/solute/pyramid_epfl/git/commits{/sha}","comments_url":"https://api.github.com/repos/solute/pyramid_epfl/comments{/number}","issue_comment_url":"https://api.github.com/repos/solute/pyramid_epfl/issues/comments{/number}","contents_url":"https://api.github.com/repos/solute/pyramid_epfl/contents/{+path}","compare_url":"https://api.github.com/repos/solute/pyramid_epfl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/solute/pyramid_epfl/merges","archive_url":"https://api.github.com/repos/solute/pyramid_epfl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/solute/pyramid_epfl/downloads","issues_url":"https://api.github.com/repos/solute/pyramid_epfl/issues{/number}","pulls_url":"https://api.github.com/repos/solute/pyramid_epfl/pulls{/number}","milestones_url":"https://api.github.com/repos/solute/pyramid_epfl/milestones{/number}","notifications_url":"https://api.github.com/repos/solute/pyramid_epfl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/solute/pyramid_epfl/labels{/name}","releases_url":"https://api.github.com/repos/solute/pyramid_epfl/releases{/id}","created_at":"2014-03-19T13:56:00Z","updated_at":"2015-06-26T13:12:54Z","pushed_at":"2015-07-06T13:55:18Z","git_url":"git://github.com/solute/pyramid_epfl.git","ssh_url":"git@github.com:solute/pyramid_epfl.git","clone_url":"https://github.com/solute/pyramid_epfl.git","svn_url":"https://github.com/solute/pyramid_epfl","homepage":null,"size":8038,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":1,"forks":5,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/solute/pyramid_epfl/pulls/60"},"html":{"href":"https://github.com/solute/pyramid_epfl/pull/60"},"issue":{"href":"https://api.github.com/repos/solute/pyramid_epfl/issues/60"},"comments":{"href":"https://api.github.com/repos/solute/pyramid_epfl/issues/60/comments"},"review_comments":{"href":"https://api.github.com/repos/solute/pyramid_epfl/pulls/60/comments"},"review_comment":{"href":"https://api.github.com/repos/solute/pyramid_epfl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/solute/pyramid_epfl/pulls/60/commits"},"statuses":{"href":"https://api.github.com/repos/solute/pyramid_epfl/statuses/75e1ebd3b1c35c5ffd6aefc69f043a4b035b9aa2"}}}}