{"action":"created","comment":{"url":"https://api.github.com/repos/hpi-swt2/workshop-portal/pulls/comments/97202114","pull_request_review_id":17810436,"id":97202114,"diff_hunk":"@@ -13,4 +13,21 @@ jQuery(function() {\n             }\n         }\n     });\n-});\n\\ No newline at end of file\n+});\n+\n+function loadTemplate(elem) {","path":"app/assets/javascripts/emails.js","position":8,"original_position":8,"commit_id":"8cf61307ab3d67e661eccda6a65023c3ccaaadb2","original_commit_id":"8cf61307ab3d67e661eccda6a65023c3ccaaadb2","user":{"login":"Lando-L","id":11271067,"avatar_url":"https://avatars.githubusercontent.com/u/11271067?v=3","gravatar_id":"","url":"https://api.github.com/users/Lando-L","html_url":"https://github.com/Lando-L","followers_url":"https://api.github.com/users/Lando-L/followers","following_url":"https://api.github.com/users/Lando-L/following{/other_user}","gists_url":"https://api.github.com/users/Lando-L/gists{/gist_id}","starred_url":"https://api.github.com/users/Lando-L/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lando-L/subscriptions","organizations_url":"https://api.github.com/users/Lando-L/orgs","repos_url":"https://api.github.com/users/Lando-L/repos","events_url":"https://api.github.com/users/Lando-L/events{/privacy}","received_events_url":"https://api.github.com/users/Lando-L/received_events","type":"User","site_admin":false},"body":"Anstatt die Funktion ins Html reinzuschreiben würde ich mehr jQuery Funktionen nutzen und so vorgehen:\r\n```\r\n$('.email-template.list-group-item').click(function() {\r\n  var subject = $(this).find('template-subject')[0].text()\r\n  var content = ...\r\n});\r\n```","created_at":"2017-01-21T17:08:03Z","updated_at":"2017-01-21T17:08:07Z","html_url":"https://github.com/hpi-swt2/workshop-portal/pull/375#discussion_r97202114","pull_request_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/pulls/375","_links":{"self":{"href":"https://api.github.com/repos/hpi-swt2/workshop-portal/pulls/comments/97202114"},"html":{"href":"https://github.com/hpi-swt2/workshop-portal/pull/375#discussion_r97202114"},"pull_request":{"href":"https://api.github.com/repos/hpi-swt2/workshop-portal/pulls/375"}}},"pull_request":{"url":"https://api.github.com/repos/hpi-swt2/workshop-portal/pulls/375","id":102582266,"html_url":"https://github.com/hpi-swt2/workshop-portal/pull/375","diff_url":"https://github.com/hpi-swt2/workshop-portal/pull/375.diff","patch_url":"https://github.com/hpi-swt2/workshop-portal/pull/375.patch","issue_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/issues/375","number":375,"state":"open","locked":false,"title":"53 3.13 load email drafts","user":{"login":"TimBasel","id":9056699,"avatar_url":"https://avatars.githubusercontent.com/u/9056699?v=3","gravatar_id":"","url":"https://api.github.com/users/TimBasel","html_url":"https://github.com/TimBasel","followers_url":"https://api.github.com/users/TimBasel/followers","following_url":"https://api.github.com/users/TimBasel/following{/other_user}","gists_url":"https://api.github.com/users/TimBasel/gists{/gist_id}","starred_url":"https://api.github.com/users/TimBasel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimBasel/subscriptions","organizations_url":"https://api.github.com/users/TimBasel/orgs","repos_url":"https://api.github.com/users/TimBasel/repos","events_url":"https://api.github.com/users/TimBasel/events{/privacy}","received_events_url":"https://api.github.com/users/TimBasel/received_events","type":"User","site_admin":false},"body":"Load Emails Templates\r\n\r\n- Click on Template sets the hide_recipients radio buttons, subject and content field with template content\r\n- TODO: Add Test for copy functionality \n","created_at":"2017-01-21T13:13:51Z","updated_at":"2017-01-21T17:08:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"31f1b994ed5c53a759bd03a4c3c42f0775b7b875","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/pulls/375/commits","review_comments_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/pulls/375/comments","review_comment_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/issues/375/comments","statuses_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/statuses/8cf61307ab3d67e661eccda6a65023c3ccaaadb2","head":{"label":"hpi-swt2:53_3.13_LoadEmailDrafts","ref":"53_3.13_LoadEmailDrafts","sha":"8cf61307ab3d67e661eccda6a65023c3ccaaadb2","user":{"login":"hpi-swt2","id":6618414,"avatar_url":"https://avatars.githubusercontent.com/u/6618414?v=3","gravatar_id":"","url":"https://api.github.com/users/hpi-swt2","html_url":"https://github.com/hpi-swt2","followers_url":"https://api.github.com/users/hpi-swt2/followers","following_url":"https://api.github.com/users/hpi-swt2/following{/other_user}","gists_url":"https://api.github.com/users/hpi-swt2/gists{/gist_id}","starred_url":"https://api.github.com/users/hpi-swt2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hpi-swt2/subscriptions","organizations_url":"https://api.github.com/users/hpi-swt2/orgs","repos_url":"https://api.github.com/users/hpi-swt2/repos","events_url":"https://api.github.com/users/hpi-swt2/events{/privacy}","received_events_url":"https://api.github.com/users/hpi-swt2/received_events","type":"Organization","site_admin":false},"repo":{"id":66932314,"name":"workshop-portal","full_name":"hpi-swt2/workshop-portal","owner":{"login":"hpi-swt2","id":6618414,"avatar_url":"https://avatars.githubusercontent.com/u/6618414?v=3","gravatar_id":"","url":"https://api.github.com/users/hpi-swt2","html_url":"https://github.com/hpi-swt2","followers_url":"https://api.github.com/users/hpi-swt2/followers","following_url":"https://api.github.com/users/hpi-swt2/following{/other_user}","gists_url":"https://api.github.com/users/hpi-swt2/gists{/gist_id}","starred_url":"https://api.github.com/users/hpi-swt2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hpi-swt2/subscriptions","organizations_url":"https://api.github.com/users/hpi-swt2/orgs","repos_url":"https://api.github.com/users/hpi-swt2/repos","events_url":"https://api.github.com/users/hpi-swt2/events{/privacy}","received_events_url":"https://api.github.com/users/hpi-swt2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hpi-swt2/workshop-portal","description":"A Ruby on Rails app to manage workshops","fork":false,"url":"https://api.github.com/repos/hpi-swt2/workshop-portal","forks_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/forks","keys_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/teams","hooks_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/hooks","issue_events_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/issues/events{/number}","events_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/events","assignees_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/assignees{/user}","branches_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/branches{/branch}","tags_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/tags","blobs_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/git/refs{/sha}","trees_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/statuses/{sha}","languages_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/languages","stargazers_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/stargazers","contributors_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/contributors","subscribers_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/subscribers","subscription_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/subscription","commits_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/commits{/sha}","git_commits_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/git/commits{/sha}","comments_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/comments{/number}","issue_comment_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/issues/comments{/number}","contents_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/contents/{+path}","compare_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/merges","archive_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/downloads","issues_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/issues{/number}","pulls_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/pulls{/number}","milestones_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/milestones{/number}","notifications_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/labels{/name}","releases_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/releases{/id}","deployments_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/deployments","created_at":"2016-08-30T10:50:06Z","updated_at":"2017-01-21T15:10:03Z","pushed_at":"2017-01-21T16:41:09Z","git_url":"git://github.com/hpi-swt2/workshop-portal.git","ssh_url":"git@github.com:hpi-swt2/workshop-portal.git","clone_url":"https://github.com/hpi-swt2/workshop-portal.git","svn_url":"https://github.com/hpi-swt2/workshop-portal","homepage":"","size":20741,"stargazers_count":10,"watchers_count":10,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":108,"forks":1,"open_issues":108,"watchers":10,"default_branch":"dev"}},"base":{"label":"hpi-swt2:dev","ref":"dev","sha":"5e12a7d041a4019d84bd2d75b3b043fac7931716","user":{"login":"hpi-swt2","id":6618414,"avatar_url":"https://avatars.githubusercontent.com/u/6618414?v=3","gravatar_id":"","url":"https://api.github.com/users/hpi-swt2","html_url":"https://github.com/hpi-swt2","followers_url":"https://api.github.com/users/hpi-swt2/followers","following_url":"https://api.github.com/users/hpi-swt2/following{/other_user}","gists_url":"https://api.github.com/users/hpi-swt2/gists{/gist_id}","starred_url":"https://api.github.com/users/hpi-swt2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hpi-swt2/subscriptions","organizations_url":"https://api.github.com/users/hpi-swt2/orgs","repos_url":"https://api.github.com/users/hpi-swt2/repos","events_url":"https://api.github.com/users/hpi-swt2/events{/privacy}","received_events_url":"https://api.github.com/users/hpi-swt2/received_events","type":"Organization","site_admin":false},"repo":{"id":66932314,"name":"workshop-portal","full_name":"hpi-swt2/workshop-portal","owner":{"login":"hpi-swt2","id":6618414,"avatar_url":"https://avatars.githubusercontent.com/u/6618414?v=3","gravatar_id":"","url":"https://api.github.com/users/hpi-swt2","html_url":"https://github.com/hpi-swt2","followers_url":"https://api.github.com/users/hpi-swt2/followers","following_url":"https://api.github.com/users/hpi-swt2/following{/other_user}","gists_url":"https://api.github.com/users/hpi-swt2/gists{/gist_id}","starred_url":"https://api.github.com/users/hpi-swt2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hpi-swt2/subscriptions","organizations_url":"https://api.github.com/users/hpi-swt2/orgs","repos_url":"https://api.github.com/users/hpi-swt2/repos","events_url":"https://api.github.com/users/hpi-swt2/events{/privacy}","received_events_url":"https://api.github.com/users/hpi-swt2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hpi-swt2/workshop-portal","description":"A Ruby on Rails app to manage workshops","fork":false,"url":"https://api.github.com/repos/hpi-swt2/workshop-portal","forks_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/forks","keys_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/teams","hooks_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/hooks","issue_events_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/issues/events{/number}","events_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/events","assignees_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/assignees{/user}","branches_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/branches{/branch}","tags_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/tags","blobs_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/git/refs{/sha}","trees_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/statuses/{sha}","languages_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/languages","stargazers_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/stargazers","contributors_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/contributors","subscribers_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/subscribers","subscription_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/subscription","commits_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/commits{/sha}","git_commits_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/git/commits{/sha}","comments_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/comments{/number}","issue_comment_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/issues/comments{/number}","contents_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/contents/{+path}","compare_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/merges","archive_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/downloads","issues_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/issues{/number}","pulls_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/pulls{/number}","milestones_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/milestones{/number}","notifications_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/labels{/name}","releases_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/releases{/id}","deployments_url":"https://api.github.com/repos/hpi-swt2/workshop-portal/deployments","created_at":"2016-08-30T10:50:06Z","updated_at":"2017-01-21T15:10:03Z","pushed_at":"2017-01-21T16:41:09Z","git_url":"git://github.com/hpi-swt2/workshop-portal.git","ssh_url":"git@github.com:hpi-swt2/workshop-portal.git","clone_url":"https://github.com/hpi-swt2/workshop-portal.git","svn_url":"https://github.com/hpi-swt2/workshop-portal","homepage":"","size":20741,"stargazers_count":10,"watchers_count":10,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":108,"forks":1,"open_issues":108,"watchers":10,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/hpi-swt2/workshop-portal/pulls/375"},"html":{"href":"https://github.com/hpi-swt2/workshop-portal/pull/375"},"issue":{"href":"https://api.github.com/repos/hpi-swt2/workshop-portal/issues/375"},"comments":{"href":"https://api.github.com/repos/hpi-swt2/workshop-portal/issues/375/comments"},"review_comments":{"href":"https://api.github.com/repos/hpi-swt2/workshop-portal/pulls/375/comments"},"review_comment":{"href":"https://api.github.com/repos/hpi-swt2/workshop-portal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hpi-swt2/workshop-portal/pulls/375/commits"},"statuses":{"href":"https://api.github.com/repos/hpi-swt2/workshop-portal/statuses/8cf61307ab3d67e661eccda6a65023c3ccaaadb2"}}}}
{"actor":{"display_login":"Lando-L"}}