{"action":"created","comment":{"url":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls/comments/47184570","id":47184570,"diff_hunk":"@@ -0,0 +1,91 @@\n+<%# modal for change schedule %>\n+<div id=\"create_security_group_modal\" class=\"modal fade\" role=\"dialog\" aria-hidden=\"true\"\n+     xmlns:v-bind=\"http://www.w3.org/1999/xhtml\">\n+  <div class=\"modal-dialog modal-lg\">\n+    <div class=\"modal-content\">\n+      <div class=\"modal-header bg-primary\">\n+        <button class=\"close\" data-dismiss=\"modal\" aria-hidden=\"true\">&times;</button>\n+        <h4 class=\"panel-title\"><%= t 'security_groups.btn.create' %></h4>\n+      </div>\n+      <div class=\"modal-body\">\n+        <div class=\"form-group\">\n+          <label class=\"control-label\"><%= t 'security_groups.group_name' %></label>\n+          <input class=\"form-control\" type=\"text\" v-model=\"group_name\" required>\n+        </div>\n+        <div class=\"form-group\">\n+          <label class=\"control-label\"><%= t 'security_groups.description' %></label>\n+          <input class=\"form-control\" type=\"text\" v-model=\"description\" required>\n+        </div>\n+        <div class=\"form-group\">\n+          <label class=\"control-label\">Name</label>\n+          <input class=\"form-control\" type=\"text\" v-model=\"name\">\n+        </div>\n+        <div class=\"form-group\">\n+          <label class=\"control-label\">VPC</label>\n+          <select class=\"form-control\" v-model=\"vpc\" required>\n+            <option v-for=\"v in vpcs\" v-bind:value=\"v.vpc_id\">{{v.name}}</option>\n+          </select>\n+          <%= t 'security_groups.denotes' %>\n+        </div>\n+\n+        <!--<div class=\"form-group\">-->\n+          <!--<label class=\"control-label\">Attach to: </label>-->\n+          <!--<select class=\"form-control\" v-model=\"physical_id\">-->\n+            <!--<option v-for=\"v in ec2_instances\" v-bind:value=\"v.physical_id\">{{v.screen_name}} / {{v.physical_id}}</option>-->\n+          <!--</select>-->\n+          <!--(optional)-->\n+        <!--</div>-->\n+\n+        <!--<ul class=\"nav nav-tabs\">-->\n+          <!--<li class=\"active\"><a href=\"#inbound\" data-toggle=\"tab\" aria-expanded=\"true\">Inbound</a></li>-->\n+          <!--<li class=\"\"><a href=\"#outbound\" data-toggle=\"tab\" aria-expanded=\"false\">Outbound</a></li>-->\n+        <!--</ul>-->\n+        <!---->\n+        <!--<div id=\"myTabContent\" class=\"tab-content\">-->\n+          <!--<div class=\"tab-pane fade active in\" id=\"inbound\">-->\n+            <!--<table class=\"table table-condensed\">-->\n+              <!--<tr>-->\n+                <!--<th>Type</th>-->\n+                <!--<th>Protocol</th>-->\n+                <!--<th>Range</th>-->\n+                <!--<th>Source</th>-->\n+              <!--</tr>-->\n+              <!--<tr v-for=\"ib in inbound\" track-by=\"$index\">-->\n+                <!--<td>-->\n+                  <!--<select class=\"form-control\" v-model=\"type[$index]\">-->\n+                    <!--<option v-for=\"(k,i) in ib\" v-bind:value=\"k\">{{i.type}}</option>-->\n+                  <!--</select>-->\n+                <!--</td>-->\n+                <!--<td>{{inbound[$index][type[$index]].protocol}}</td>-->\n+                <!--<td>{{inbound[$index][type[$index]].port}}</td>-->\n+                <!--<td>{{inbound[$index][type[$index]].source}}</td>-->\n+              <!--</tr>-->\n+            <!--</table>-->\n+            <!--<button @click=\"add_rule('inbound')\" class=\"btn btn-xs btn-default\">Add rule</button>-->\n+          <!--</div>-->\n+          <!--<div class=\"tab-pane fade\" id=\"outbound\">-->\n+            <!--<table class=\"table table-condensed\">-->\n+              <!--<tr>-->\n+                <!--<th>Type</th>-->\n+                <!--<th>Protocol</th>-->\n+                <!--<th>Range</th>-->\n+                <!--<th>Source</th>-->\n+              <!--</tr>-->\n+            <!--</table>-->\n+            <!--<button class=\"btn btn-xs btn-default\">Add rule</button>-->\n+          <!--</div>-->\n+        <!--</div>-->","path":"app/views/infrastructures/modal/_create_security_group_modal.html.erb","position":77,"original_position":77,"commit_id":"db4b4dc74b54f20a7cc7f56eb48be9f04d0a0559","original_commit_id":"db4b4dc74b54f20a7cc7f56eb48be9f04d0a0559","user":{"login":"Joeper214","id":2352389,"avatar_url":"https://avatars.githubusercontent.com/u/2352389?v=3","gravatar_id":"","url":"https://api.github.com/users/Joeper214","html_url":"https://github.com/Joeper214","followers_url":"https://api.github.com/users/Joeper214/followers","following_url":"https://api.github.com/users/Joeper214/following{/other_user}","gists_url":"https://api.github.com/users/Joeper214/gists{/gist_id}","starred_url":"https://api.github.com/users/Joeper214/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Joeper214/subscriptions","organizations_url":"https://api.github.com/users/Joeper214/orgs","repos_url":"https://api.github.com/users/Joeper214/repos","events_url":"https://api.github.com/users/Joeper214/events{/privacy}","received_events_url":"https://api.github.com/users/Joeper214/received_events","type":"User","site_admin":false},"body":"I commented it because that feature is still WIP. ","created_at":"2015-12-10T03:08:22Z","updated_at":"2015-12-10T03:08:22Z","html_url":"https://github.com/skyarch-networks/skyhopper/pull/133#discussion_r47184570","pull_request_url":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls/133","_links":{"self":{"href":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls/comments/47184570"},"html":{"href":"https://github.com/skyarch-networks/skyhopper/pull/133#discussion_r47184570"},"pull_request":{"href":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls/133"}}},"pull_request":{"url":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls/133","id":52211604,"html_url":"https://github.com/skyarch-networks/skyhopper/pull/133","diff_url":"https://github.com/skyarch-networks/skyhopper/pull/133.diff","patch_url":"https://github.com/skyarch-networks/skyhopper/pull/133.patch","issue_url":"https://api.github.com/repos/skyarch-networks/skyhopper/issues/133","number":133,"state":"open","locked":false,"title":"Security groups create","user":{"login":"Joeper214","id":2352389,"avatar_url":"https://avatars.githubusercontent.com/u/2352389?v=3","gravatar_id":"","url":"https://api.github.com/users/Joeper214","html_url":"https://github.com/Joeper214","followers_url":"https://api.github.com/users/Joeper214/followers","following_url":"https://api.github.com/users/Joeper214/following{/other_user}","gists_url":"https://api.github.com/users/Joeper214/gists{/gist_id}","starred_url":"https://api.github.com/users/Joeper214/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Joeper214/subscriptions","organizations_url":"https://api.github.com/users/Joeper214/orgs","repos_url":"https://api.github.com/users/Joeper214/repos","events_url":"https://api.github.com/users/Joeper214/events{/privacy}","received_events_url":"https://api.github.com/users/Joeper214/received_events","type":"User","site_admin":false},"body":"Next Goal for #130 \r\n\r\n### Goal \r\n- [x] Create security groups tabpane\r\n- [x] display security group list in tabpane\r\n- [x] Create modal for creating security group\r\n- [x] Saving created security group to backend\r\n- [x] refetch seurity group list and messaging when success or not\r\n- [x] iT18N\r\n ","created_at":"2015-12-01T03:22:15Z","updated_at":"2015-12-10T03:08:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"809657b0eafa00a0fe8224fa25ed6730b1bd4dba","assignee":{"login":"pocke","id":4361134,"avatar_url":"https://avatars.githubusercontent.com/u/4361134?v=3","gravatar_id":"","url":"https://api.github.com/users/pocke","html_url":"https://github.com/pocke","followers_url":"https://api.github.com/users/pocke/followers","following_url":"https://api.github.com/users/pocke/following{/other_user}","gists_url":"https://api.github.com/users/pocke/gists{/gist_id}","starred_url":"https://api.github.com/users/pocke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pocke/subscriptions","organizations_url":"https://api.github.com/users/pocke/orgs","repos_url":"https://api.github.com/users/pocke/repos","events_url":"https://api.github.com/users/pocke/events{/privacy}","received_events_url":"https://api.github.com/users/pocke/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls/133/commits","review_comments_url":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls/133/comments","review_comment_url":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls/comments{/number}","comments_url":"https://api.github.com/repos/skyarch-networks/skyhopper/issues/133/comments","statuses_url":"https://api.github.com/repos/skyarch-networks/skyhopper/statuses/db4b4dc74b54f20a7cc7f56eb48be9f04d0a0559","head":{"label":"skyarch-networks:sec_group_new","ref":"sec_group_new","sha":"db4b4dc74b54f20a7cc7f56eb48be9f04d0a0559","user":{"login":"skyarch-networks","id":10970571,"avatar_url":"https://avatars.githubusercontent.com/u/10970571?v=3","gravatar_id":"","url":"https://api.github.com/users/skyarch-networks","html_url":"https://github.com/skyarch-networks","followers_url":"https://api.github.com/users/skyarch-networks/followers","following_url":"https://api.github.com/users/skyarch-networks/following{/other_user}","gists_url":"https://api.github.com/users/skyarch-networks/gists{/gist_id}","starred_url":"https://api.github.com/users/skyarch-networks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skyarch-networks/subscriptions","organizations_url":"https://api.github.com/users/skyarch-networks/orgs","repos_url":"https://api.github.com/users/skyarch-networks/repos","events_url":"https://api.github.com/users/skyarch-networks/events{/privacy}","received_events_url":"https://api.github.com/users/skyarch-networks/received_events","type":"User","site_admin":false},"repo":{"id":31754199,"name":"skyhopper","full_name":"skyarch-networks/skyhopper","owner":{"login":"skyarch-networks","id":10970571,"avatar_url":"https://avatars.githubusercontent.com/u/10970571?v=3","gravatar_id":"","url":"https://api.github.com/users/skyarch-networks","html_url":"https://github.com/skyarch-networks","followers_url":"https://api.github.com/users/skyarch-networks/followers","following_url":"https://api.github.com/users/skyarch-networks/following{/other_user}","gists_url":"https://api.github.com/users/skyarch-networks/gists{/gist_id}","starred_url":"https://api.github.com/users/skyarch-networks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skyarch-networks/subscriptions","organizations_url":"https://api.github.com/users/skyarch-networks/orgs","repos_url":"https://api.github.com/users/skyarch-networks/repos","events_url":"https://api.github.com/users/skyarch-networks/events{/privacy}","received_events_url":"https://api.github.com/users/skyarch-networks/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/skyarch-networks/skyhopper","description":"システム自動構築ツール","fork":false,"url":"https://api.github.com/repos/skyarch-networks/skyhopper","forks_url":"https://api.github.com/repos/skyarch-networks/skyhopper/forks","keys_url":"https://api.github.com/repos/skyarch-networks/skyhopper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/skyarch-networks/skyhopper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/skyarch-networks/skyhopper/teams","hooks_url":"https://api.github.com/repos/skyarch-networks/skyhopper/hooks","issue_events_url":"https://api.github.com/repos/skyarch-networks/skyhopper/issues/events{/number}","events_url":"https://api.github.com/repos/skyarch-networks/skyhopper/events","assignees_url":"https://api.github.com/repos/skyarch-networks/skyhopper/assignees{/user}","branches_url":"https://api.github.com/repos/skyarch-networks/skyhopper/branches{/branch}","tags_url":"https://api.github.com/repos/skyarch-networks/skyhopper/tags","blobs_url":"https://api.github.com/repos/skyarch-networks/skyhopper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/skyarch-networks/skyhopper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/skyarch-networks/skyhopper/git/refs{/sha}","trees_url":"https://api.github.com/repos/skyarch-networks/skyhopper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/skyarch-networks/skyhopper/statuses/{sha}","languages_url":"https://api.github.com/repos/skyarch-networks/skyhopper/languages","stargazers_url":"https://api.github.com/repos/skyarch-networks/skyhopper/stargazers","contributors_url":"https://api.github.com/repos/skyarch-networks/skyhopper/contributors","subscribers_url":"https://api.github.com/repos/skyarch-networks/skyhopper/subscribers","subscription_url":"https://api.github.com/repos/skyarch-networks/skyhopper/subscription","commits_url":"https://api.github.com/repos/skyarch-networks/skyhopper/commits{/sha}","git_commits_url":"https://api.github.com/repos/skyarch-networks/skyhopper/git/commits{/sha}","comments_url":"https://api.github.com/repos/skyarch-networks/skyhopper/comments{/number}","issue_comment_url":"https://api.github.com/repos/skyarch-networks/skyhopper/issues/comments{/number}","contents_url":"https://api.github.com/repos/skyarch-networks/skyhopper/contents/{+path}","compare_url":"https://api.github.com/repos/skyarch-networks/skyhopper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/skyarch-networks/skyhopper/merges","archive_url":"https://api.github.com/repos/skyarch-networks/skyhopper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/skyarch-networks/skyhopper/downloads","issues_url":"https://api.github.com/repos/skyarch-networks/skyhopper/issues{/number}","pulls_url":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls{/number}","milestones_url":"https://api.github.com/repos/skyarch-networks/skyhopper/milestones{/number}","notifications_url":"https://api.github.com/repos/skyarch-networks/skyhopper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/skyarch-networks/skyhopper/labels{/name}","releases_url":"https://api.github.com/repos/skyarch-networks/skyhopper/releases{/id}","created_at":"2015-03-06T05:30:44Z","updated_at":"2015-12-09T06:47:16Z","pushed_at":"2015-12-10T02:47:04Z","git_url":"git://github.com/skyarch-networks/skyhopper.git","ssh_url":"git@github.com:skyarch-networks/skyhopper.git","clone_url":"https://github.com/skyarch-networks/skyhopper.git","svn_url":"https://github.com/skyarch-networks/skyhopper","homepage":"","size":6082,"stargazers_count":18,"watchers_count":18,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":18,"default_branch":"master"}},"base":{"label":"skyarch-networks:develop","ref":"develop","sha":"8a092669056c6c1d833e2ac198f3c4fe9080ee2d","user":{"login":"skyarch-networks","id":10970571,"avatar_url":"https://avatars.githubusercontent.com/u/10970571?v=3","gravatar_id":"","url":"https://api.github.com/users/skyarch-networks","html_url":"https://github.com/skyarch-networks","followers_url":"https://api.github.com/users/skyarch-networks/followers","following_url":"https://api.github.com/users/skyarch-networks/following{/other_user}","gists_url":"https://api.github.com/users/skyarch-networks/gists{/gist_id}","starred_url":"https://api.github.com/users/skyarch-networks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skyarch-networks/subscriptions","organizations_url":"https://api.github.com/users/skyarch-networks/orgs","repos_url":"https://api.github.com/users/skyarch-networks/repos","events_url":"https://api.github.com/users/skyarch-networks/events{/privacy}","received_events_url":"https://api.github.com/users/skyarch-networks/received_events","type":"User","site_admin":false},"repo":{"id":31754199,"name":"skyhopper","full_name":"skyarch-networks/skyhopper","owner":{"login":"skyarch-networks","id":10970571,"avatar_url":"https://avatars.githubusercontent.com/u/10970571?v=3","gravatar_id":"","url":"https://api.github.com/users/skyarch-networks","html_url":"https://github.com/skyarch-networks","followers_url":"https://api.github.com/users/skyarch-networks/followers","following_url":"https://api.github.com/users/skyarch-networks/following{/other_user}","gists_url":"https://api.github.com/users/skyarch-networks/gists{/gist_id}","starred_url":"https://api.github.com/users/skyarch-networks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skyarch-networks/subscriptions","organizations_url":"https://api.github.com/users/skyarch-networks/orgs","repos_url":"https://api.github.com/users/skyarch-networks/repos","events_url":"https://api.github.com/users/skyarch-networks/events{/privacy}","received_events_url":"https://api.github.com/users/skyarch-networks/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/skyarch-networks/skyhopper","description":"システム自動構築ツール","fork":false,"url":"https://api.github.com/repos/skyarch-networks/skyhopper","forks_url":"https://api.github.com/repos/skyarch-networks/skyhopper/forks","keys_url":"https://api.github.com/repos/skyarch-networks/skyhopper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/skyarch-networks/skyhopper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/skyarch-networks/skyhopper/teams","hooks_url":"https://api.github.com/repos/skyarch-networks/skyhopper/hooks","issue_events_url":"https://api.github.com/repos/skyarch-networks/skyhopper/issues/events{/number}","events_url":"https://api.github.com/repos/skyarch-networks/skyhopper/events","assignees_url":"https://api.github.com/repos/skyarch-networks/skyhopper/assignees{/user}","branches_url":"https://api.github.com/repos/skyarch-networks/skyhopper/branches{/branch}","tags_url":"https://api.github.com/repos/skyarch-networks/skyhopper/tags","blobs_url":"https://api.github.com/repos/skyarch-networks/skyhopper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/skyarch-networks/skyhopper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/skyarch-networks/skyhopper/git/refs{/sha}","trees_url":"https://api.github.com/repos/skyarch-networks/skyhopper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/skyarch-networks/skyhopper/statuses/{sha}","languages_url":"https://api.github.com/repos/skyarch-networks/skyhopper/languages","stargazers_url":"https://api.github.com/repos/skyarch-networks/skyhopper/stargazers","contributors_url":"https://api.github.com/repos/skyarch-networks/skyhopper/contributors","subscribers_url":"https://api.github.com/repos/skyarch-networks/skyhopper/subscribers","subscription_url":"https://api.github.com/repos/skyarch-networks/skyhopper/subscription","commits_url":"https://api.github.com/repos/skyarch-networks/skyhopper/commits{/sha}","git_commits_url":"https://api.github.com/repos/skyarch-networks/skyhopper/git/commits{/sha}","comments_url":"https://api.github.com/repos/skyarch-networks/skyhopper/comments{/number}","issue_comment_url":"https://api.github.com/repos/skyarch-networks/skyhopper/issues/comments{/number}","contents_url":"https://api.github.com/repos/skyarch-networks/skyhopper/contents/{+path}","compare_url":"https://api.github.com/repos/skyarch-networks/skyhopper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/skyarch-networks/skyhopper/merges","archive_url":"https://api.github.com/repos/skyarch-networks/skyhopper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/skyarch-networks/skyhopper/downloads","issues_url":"https://api.github.com/repos/skyarch-networks/skyhopper/issues{/number}","pulls_url":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls{/number}","milestones_url":"https://api.github.com/repos/skyarch-networks/skyhopper/milestones{/number}","notifications_url":"https://api.github.com/repos/skyarch-networks/skyhopper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/skyarch-networks/skyhopper/labels{/name}","releases_url":"https://api.github.com/repos/skyarch-networks/skyhopper/releases{/id}","created_at":"2015-03-06T05:30:44Z","updated_at":"2015-12-09T06:47:16Z","pushed_at":"2015-12-10T02:47:04Z","git_url":"git://github.com/skyarch-networks/skyhopper.git","ssh_url":"git@github.com:skyarch-networks/skyhopper.git","clone_url":"https://github.com/skyarch-networks/skyhopper.git","svn_url":"https://github.com/skyarch-networks/skyhopper","homepage":"","size":6082,"stargazers_count":18,"watchers_count":18,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls/133"},"html":{"href":"https://github.com/skyarch-networks/skyhopper/pull/133"},"issue":{"href":"https://api.github.com/repos/skyarch-networks/skyhopper/issues/133"},"comments":{"href":"https://api.github.com/repos/skyarch-networks/skyhopper/issues/133/comments"},"review_comments":{"href":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls/133/comments"},"review_comment":{"href":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls/133/commits"},"statuses":{"href":"https://api.github.com/repos/skyarch-networks/skyhopper/statuses/db4b4dc74b54f20a7cc7f56eb48be9f04d0a0559"}}}}