{"action":"created","comment":{"url":"https://api.github.com/repos/paradoxical-io/francois/pulls/comments/56589061","id":56589061,"diff_hunk":"@@ -77,7 +78,35 @@ declare module Foundation {\n }\n \n @Component({\n-    templateUrl: '/assets/francois/templates-create.html',\n+    templateUrl: Consts.basePath + '/template-create.html',\n+    directives: [FORM_DIRECTIVES, TopNav, ROUTER_DIRECTIVES, NgFor, NgIf, CORE_DIRECTIVES],\n+})\n+export class CreateTemplate {\n+\n+    public templateName:string;\n+\n+    public isCreateable:boolean = true;\n+    public createSucceeded:boolean = false;\n+\n+    constructor(private francoisApi:FrancoisApi) {\n+\n+    }\n+\n+    createTemplate() {\n+        this.isCreateable = false;\n+        this.francoisApi.createTemplate(this.templateName)\n+            .subscribe(r => {\n+                console.log(r);\n+                this.createSucceeded = true;\n+            }, oops => {","path":"core/src/main/resources/assets/francois/templates.ts","position":46,"original_position":46,"commit_id":"afbacafe76ce52f28cc406d6e31ddbd97ced068e","original_commit_id":"0d14e332b92aef899f82e6bd008c7a2daa605c39","user":{"login":"jakeswenson","id":1854799,"avatar_url":"https://avatars.githubusercontent.com/u/1854799?v=3","gravatar_id":"","url":"https://api.github.com/users/jakeswenson","html_url":"https://github.com/jakeswenson","followers_url":"https://api.github.com/users/jakeswenson/followers","following_url":"https://api.github.com/users/jakeswenson/following{/other_user}","gists_url":"https://api.github.com/users/jakeswenson/gists{/gist_id}","starred_url":"https://api.github.com/users/jakeswenson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakeswenson/subscriptions","organizations_url":"https://api.github.com/users/jakeswenson/orgs","repos_url":"https://api.github.com/users/jakeswenson/repos","events_url":"https://api.github.com/users/jakeswenson/events{/privacy}","received_events_url":"https://api.github.com/users/jakeswenson/received_events","type":"User","site_admin":false},"body":":+1: :tongue: ","created_at":"2016-03-17T22:34:57Z","updated_at":"2016-03-17T22:34:57Z","html_url":"https://github.com/paradoxical-io/francois/pull/6#discussion_r56589061","pull_request_url":"https://api.github.com/repos/paradoxical-io/francois/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/paradoxical-io/francois/pulls/comments/56589061"},"html":{"href":"https://github.com/paradoxical-io/francois/pull/6#discussion_r56589061"},"pull_request":{"href":"https://api.github.com/repos/paradoxical-io/francois/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/paradoxical-io/francois/pulls/6","id":63292796,"html_url":"https://github.com/paradoxical-io/francois/pull/6","diff_url":"https://github.com/paradoxical-io/francois/pull/6.diff","patch_url":"https://github.com/paradoxical-io/francois/pull/6.patch","issue_url":"https://api.github.com/repos/paradoxical-io/francois/issues/6","number":6,"state":"open","locked":false,"title":"Feature/add default templates","user":{"login":"devshorts","id":1799346,"avatar_url":"https://avatars.githubusercontent.com/u/1799346?v=3","gravatar_id":"","url":"https://api.github.com/users/devshorts","html_url":"https://github.com/devshorts","followers_url":"https://api.github.com/users/devshorts/followers","following_url":"https://api.github.com/users/devshorts/following{/other_user}","gists_url":"https://api.github.com/users/devshorts/gists{/gist_id}","starred_url":"https://api.github.com/users/devshorts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devshorts/subscriptions","organizations_url":"https://api.github.com/users/devshorts/orgs","repos_url":"https://api.github.com/users/devshorts/repos","events_url":"https://api.github.com/users/devshorts/events{/privacy}","received_events_url":"https://api.github.com/users/devshorts/received_events","type":"User","site_admin":false},"body":"Also addresses #1 ","created_at":"2016-03-17T21:07:01Z","updated_at":"2016-03-17T22:34:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"29346bf8ecf362d578f2e488a6e19fb8231b5b54","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/paradoxical-io/francois/pulls/6/commits","review_comments_url":"https://api.github.com/repos/paradoxical-io/francois/pulls/6/comments","review_comment_url":"https://api.github.com/repos/paradoxical-io/francois/pulls/comments{/number}","comments_url":"https://api.github.com/repos/paradoxical-io/francois/issues/6/comments","statuses_url":"https://api.github.com/repos/paradoxical-io/francois/statuses/afbacafe76ce52f28cc406d6e31ddbd97ced068e","head":{"label":"paradoxical-io:feature/add-default-templates","ref":"feature/add-default-templates","sha":"afbacafe76ce52f28cc406d6e31ddbd97ced068e","user":{"login":"paradoxical-io","id":16109629,"avatar_url":"https://avatars.githubusercontent.com/u/16109629?v=3","gravatar_id":"","url":"https://api.github.com/users/paradoxical-io","html_url":"https://github.com/paradoxical-io","followers_url":"https://api.github.com/users/paradoxical-io/followers","following_url":"https://api.github.com/users/paradoxical-io/following{/other_user}","gists_url":"https://api.github.com/users/paradoxical-io/gists{/gist_id}","starred_url":"https://api.github.com/users/paradoxical-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paradoxical-io/subscriptions","organizations_url":"https://api.github.com/users/paradoxical-io/orgs","repos_url":"https://api.github.com/users/paradoxical-io/repos","events_url":"https://api.github.com/users/paradoxical-io/events{/privacy}","received_events_url":"https://api.github.com/users/paradoxical-io/received_events","type":"Organization","site_admin":false},"repo":{"id":47244616,"name":"francois","full_name":"paradoxical-io/francois","owner":{"login":"paradoxical-io","id":16109629,"avatar_url":"https://avatars.githubusercontent.com/u/16109629?v=3","gravatar_id":"","url":"https://api.github.com/users/paradoxical-io","html_url":"https://github.com/paradoxical-io","followers_url":"https://api.github.com/users/paradoxical-io/followers","following_url":"https://api.github.com/users/paradoxical-io/following{/other_user}","gists_url":"https://api.github.com/users/paradoxical-io/gists{/gist_id}","starred_url":"https://api.github.com/users/paradoxical-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paradoxical-io/subscriptions","organizations_url":"https://api.github.com/users/paradoxical-io/orgs","repos_url":"https://api.github.com/users/paradoxical-io/repos","events_url":"https://api.github.com/users/paradoxical-io/events{/privacy}","received_events_url":"https://api.github.com/users/paradoxical-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/paradoxical-io/francois","description":"Keep your Jenkins jobs in sync to a template with françois","fork":false,"url":"https://api.github.com/repos/paradoxical-io/francois","forks_url":"https://api.github.com/repos/paradoxical-io/francois/forks","keys_url":"https://api.github.com/repos/paradoxical-io/francois/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paradoxical-io/francois/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paradoxical-io/francois/teams","hooks_url":"https://api.github.com/repos/paradoxical-io/francois/hooks","issue_events_url":"https://api.github.com/repos/paradoxical-io/francois/issues/events{/number}","events_url":"https://api.github.com/repos/paradoxical-io/francois/events","assignees_url":"https://api.github.com/repos/paradoxical-io/francois/assignees{/user}","branches_url":"https://api.github.com/repos/paradoxical-io/francois/branches{/branch}","tags_url":"https://api.github.com/repos/paradoxical-io/francois/tags","blobs_url":"https://api.github.com/repos/paradoxical-io/francois/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paradoxical-io/francois/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paradoxical-io/francois/git/refs{/sha}","trees_url":"https://api.github.com/repos/paradoxical-io/francois/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paradoxical-io/francois/statuses/{sha}","languages_url":"https://api.github.com/repos/paradoxical-io/francois/languages","stargazers_url":"https://api.github.com/repos/paradoxical-io/francois/stargazers","contributors_url":"https://api.github.com/repos/paradoxical-io/francois/contributors","subscribers_url":"https://api.github.com/repos/paradoxical-io/francois/subscribers","subscription_url":"https://api.github.com/repos/paradoxical-io/francois/subscription","commits_url":"https://api.github.com/repos/paradoxical-io/francois/commits{/sha}","git_commits_url":"https://api.github.com/repos/paradoxical-io/francois/git/commits{/sha}","comments_url":"https://api.github.com/repos/paradoxical-io/francois/comments{/number}","issue_comment_url":"https://api.github.com/repos/paradoxical-io/francois/issues/comments{/number}","contents_url":"https://api.github.com/repos/paradoxical-io/francois/contents/{+path}","compare_url":"https://api.github.com/repos/paradoxical-io/francois/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paradoxical-io/francois/merges","archive_url":"https://api.github.com/repos/paradoxical-io/francois/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paradoxical-io/francois/downloads","issues_url":"https://api.github.com/repos/paradoxical-io/francois/issues{/number}","pulls_url":"https://api.github.com/repos/paradoxical-io/francois/pulls{/number}","milestones_url":"https://api.github.com/repos/paradoxical-io/francois/milestones{/number}","notifications_url":"https://api.github.com/repos/paradoxical-io/francois/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paradoxical-io/francois/labels{/name}","releases_url":"https://api.github.com/repos/paradoxical-io/francois/releases{/id}","deployments_url":"https://api.github.com/repos/paradoxical-io/francois/deployments","created_at":"2015-12-02T07:29:55Z","updated_at":"2016-02-16T17:03:13Z","pushed_at":"2016-03-17T21:58:00Z","git_url":"git://github.com/paradoxical-io/francois.git","ssh_url":"git@github.com:paradoxical-io/francois.git","clone_url":"https://github.com/paradoxical-io/francois.git","svn_url":"https://github.com/paradoxical-io/francois","homepage":"","size":740,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":3,"default_branch":"master"}},"base":{"label":"paradoxical-io:master","ref":"master","sha":"a375f242a2aa49ca6bbf4dcc12c90c7151eaa805","user":{"login":"paradoxical-io","id":16109629,"avatar_url":"https://avatars.githubusercontent.com/u/16109629?v=3","gravatar_id":"","url":"https://api.github.com/users/paradoxical-io","html_url":"https://github.com/paradoxical-io","followers_url":"https://api.github.com/users/paradoxical-io/followers","following_url":"https://api.github.com/users/paradoxical-io/following{/other_user}","gists_url":"https://api.github.com/users/paradoxical-io/gists{/gist_id}","starred_url":"https://api.github.com/users/paradoxical-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paradoxical-io/subscriptions","organizations_url":"https://api.github.com/users/paradoxical-io/orgs","repos_url":"https://api.github.com/users/paradoxical-io/repos","events_url":"https://api.github.com/users/paradoxical-io/events{/privacy}","received_events_url":"https://api.github.com/users/paradoxical-io/received_events","type":"Organization","site_admin":false},"repo":{"id":47244616,"name":"francois","full_name":"paradoxical-io/francois","owner":{"login":"paradoxical-io","id":16109629,"avatar_url":"https://avatars.githubusercontent.com/u/16109629?v=3","gravatar_id":"","url":"https://api.github.com/users/paradoxical-io","html_url":"https://github.com/paradoxical-io","followers_url":"https://api.github.com/users/paradoxical-io/followers","following_url":"https://api.github.com/users/paradoxical-io/following{/other_user}","gists_url":"https://api.github.com/users/paradoxical-io/gists{/gist_id}","starred_url":"https://api.github.com/users/paradoxical-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paradoxical-io/subscriptions","organizations_url":"https://api.github.com/users/paradoxical-io/orgs","repos_url":"https://api.github.com/users/paradoxical-io/repos","events_url":"https://api.github.com/users/paradoxical-io/events{/privacy}","received_events_url":"https://api.github.com/users/paradoxical-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/paradoxical-io/francois","description":"Keep your Jenkins jobs in sync to a template with françois","fork":false,"url":"https://api.github.com/repos/paradoxical-io/francois","forks_url":"https://api.github.com/repos/paradoxical-io/francois/forks","keys_url":"https://api.github.com/repos/paradoxical-io/francois/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paradoxical-io/francois/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paradoxical-io/francois/teams","hooks_url":"https://api.github.com/repos/paradoxical-io/francois/hooks","issue_events_url":"https://api.github.com/repos/paradoxical-io/francois/issues/events{/number}","events_url":"https://api.github.com/repos/paradoxical-io/francois/events","assignees_url":"https://api.github.com/repos/paradoxical-io/francois/assignees{/user}","branches_url":"https://api.github.com/repos/paradoxical-io/francois/branches{/branch}","tags_url":"https://api.github.com/repos/paradoxical-io/francois/tags","blobs_url":"https://api.github.com/repos/paradoxical-io/francois/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paradoxical-io/francois/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paradoxical-io/francois/git/refs{/sha}","trees_url":"https://api.github.com/repos/paradoxical-io/francois/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paradoxical-io/francois/statuses/{sha}","languages_url":"https://api.github.com/repos/paradoxical-io/francois/languages","stargazers_url":"https://api.github.com/repos/paradoxical-io/francois/stargazers","contributors_url":"https://api.github.com/repos/paradoxical-io/francois/contributors","subscribers_url":"https://api.github.com/repos/paradoxical-io/francois/subscribers","subscription_url":"https://api.github.com/repos/paradoxical-io/francois/subscription","commits_url":"https://api.github.com/repos/paradoxical-io/francois/commits{/sha}","git_commits_url":"https://api.github.com/repos/paradoxical-io/francois/git/commits{/sha}","comments_url":"https://api.github.com/repos/paradoxical-io/francois/comments{/number}","issue_comment_url":"https://api.github.com/repos/paradoxical-io/francois/issues/comments{/number}","contents_url":"https://api.github.com/repos/paradoxical-io/francois/contents/{+path}","compare_url":"https://api.github.com/repos/paradoxical-io/francois/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paradoxical-io/francois/merges","archive_url":"https://api.github.com/repos/paradoxical-io/francois/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paradoxical-io/francois/downloads","issues_url":"https://api.github.com/repos/paradoxical-io/francois/issues{/number}","pulls_url":"https://api.github.com/repos/paradoxical-io/francois/pulls{/number}","milestones_url":"https://api.github.com/repos/paradoxical-io/francois/milestones{/number}","notifications_url":"https://api.github.com/repos/paradoxical-io/francois/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paradoxical-io/francois/labels{/name}","releases_url":"https://api.github.com/repos/paradoxical-io/francois/releases{/id}","deployments_url":"https://api.github.com/repos/paradoxical-io/francois/deployments","created_at":"2015-12-02T07:29:55Z","updated_at":"2016-02-16T17:03:13Z","pushed_at":"2016-03-17T21:58:00Z","git_url":"git://github.com/paradoxical-io/francois.git","ssh_url":"git@github.com:paradoxical-io/francois.git","clone_url":"https://github.com/paradoxical-io/francois.git","svn_url":"https://github.com/paradoxical-io/francois","homepage":"","size":740,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/paradoxical-io/francois/pulls/6"},"html":{"href":"https://github.com/paradoxical-io/francois/pull/6"},"issue":{"href":"https://api.github.com/repos/paradoxical-io/francois/issues/6"},"comments":{"href":"https://api.github.com/repos/paradoxical-io/francois/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/paradoxical-io/francois/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/paradoxical-io/francois/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/paradoxical-io/francois/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/paradoxical-io/francois/statuses/afbacafe76ce52f28cc406d6e31ddbd97ced068e"}}}}