{"action":"created","comment":{"url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/pulls/comments/67936754","id":67936754,"diff_hunk":"@@ -25,24 +29,59 @@\n       <a href=\"#\" onClick=\"checkExpand('template_help_content');\" title=\"<%= l(:close_help) %>\">[x]</a>\n     </div>\n   </div>\n+\n+  <!-- dialog box -->\n+  <div id=\"issue_template_dialog\" style=\"overflow:visible; display: none;\">\n+    <label for=\"template_search_filter\">\n+      <%=h l(:label_filter_template, default: 'Filter template:') %>\n+    </label>\n+    <input type=\"text\" name=\"template_search_filter\"\n+           id=\"template_search_filter\" class=\"autocomplete\">\n+    <div id=\"filtered_templates_list\"></div>\n+  </div>\n+  <!-- dialog box -->\n+\n </div>\n <script type=\"text/javascript\">\n   //<![CDATA[\n-  var token = '<%= form_authenticity_token %>';\n-  var pulldown_url = '<%= url_for(controller: 'issue_templates',\n+  $(document).ready(function() {\n+    var pulldown_url = '<%= url_for(controller: 'issue_templates',\n         action:'set_pulldown', project_id: @project, is_triggered_by_status: is_triggered_by_status) %>';\n-  var tracker =  '<%= @issue.tracker.id %>';\n-  set_pulldown(tracker, pulldown_url, token);\n+    var tracker =  '<%= @issue.tracker.id %>';\n+    set_pulldown(tracker, pulldown_url);\n+\n+    $('#template_area').insertBefore($('#issue_subject').parent());\n \n-  $('#template_area').insertBefore($('#issue_subject').parent());\n-  $(document).ready(function() {\n     $(\"#issue_template\").change(function(){\n       var is_triggered_by_status = '<%= is_triggered_by_status %>';\n       var load_url = '<%= url_for(controller: 'issue_templates', action: 'load',\n         project_id: @project, is_triggered_by_status: is_triggered_by_status) %>';\n       var should_replaced = '<%= setting.should_replaced %>';\n \n-      load_template(load_url, token, undefined, should_replaced, is_triggered_by_status);\n+      load_template(load_url, undefined, should_replaced, is_triggered_by_status);\n+    });\n+\n+    // Show dialog\n+    $('#link_template_dialog').click(function() {\n+      var template_list_url = '<%= url_for(controller: 'issue_templates',\n+        action:'list_templates', project_id: @project, issue_tracker_id: @issue.tracker.id) %>';\n+      var template_list_title = '<%=h l(:issue_template) %>: ' + '<%= @issue.tracker.name %>';","path":"app/views/issue_templates/_issue_select_form.html.erb","position":58,"original_position":58,"commit_id":"444d5505d165a4f454f37ebb9a4a171fe39f6354","original_commit_id":"444d5505d165a4f454f37ebb9a4a171fe39f6354","user":{"login":"akiko-pusu","id":122621,"avatar_url":"https://avatars.githubusercontent.com/u/122621?v=3","gravatar_id":"","url":"https://api.github.com/users/akiko-pusu","html_url":"https://github.com/akiko-pusu","followers_url":"https://api.github.com/users/akiko-pusu/followers","following_url":"https://api.github.com/users/akiko-pusu/following{/other_user}","gists_url":"https://api.github.com/users/akiko-pusu/gists{/gist_id}","starred_url":"https://api.github.com/users/akiko-pusu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akiko-pusu/subscriptions","organizations_url":"https://api.github.com/users/akiko-pusu/orgs","repos_url":"https://api.github.com/users/akiko-pusu/repos","events_url":"https://api.github.com/users/akiko-pusu/events{/privacy}","received_events_url":"https://api.github.com/users/akiko-pusu/received_events","type":"User","site_admin":false},"body":"__[rails_best_practices]__\n* replace instance variable with local variable [:ref](http://rails-bestpractices.com/posts/2010/07/24/replace-instance-variable-with-local-variable/)","created_at":"2016-06-21T19:34:52Z","updated_at":"2016-06-21T19:34:52Z","html_url":"https://github.com/akiko-pusu/redmine_issue_templates/pull/27#discussion_r67936754","pull_request_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/pulls/comments/67936754"},"html":{"href":"https://github.com/akiko-pusu/redmine_issue_templates/pull/27#discussion_r67936754"},"pull_request":{"href":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/pulls/27","id":74671830,"html_url":"https://github.com/akiko-pusu/redmine_issue_templates/pull/27","diff_url":"https://github.com/akiko-pusu/redmine_issue_templates/pull/27.diff","patch_url":"https://github.com/akiko-pusu/redmine_issue_templates/pull/27.patch","issue_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/issues/27","number":27,"state":"open","locked":false,"title":"Release v0.1.2","user":{"login":"akiko-pusu","id":122621,"avatar_url":"https://avatars.githubusercontent.com/u/122621?v=3","gravatar_id":"","url":"https://api.github.com/users/akiko-pusu","html_url":"https://github.com/akiko-pusu","followers_url":"https://api.github.com/users/akiko-pusu/followers","following_url":"https://api.github.com/users/akiko-pusu/following{/other_user}","gists_url":"https://api.github.com/users/akiko-pusu/gists{/gist_id}","starred_url":"https://api.github.com/users/akiko-pusu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akiko-pusu/subscriptions","organizations_url":"https://api.github.com/users/akiko-pusu/orgs","repos_url":"https://api.github.com/users/akiko-pusu/repos","events_url":"https://api.github.com/users/akiko-pusu/events{/privacy}","received_events_url":"https://api.github.com/users/akiko-pusu/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-21T19:34:46Z","updated_at":"2016-06-21T19:34:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"73afbe9c9d100433a6cf288f1c56bb9e466af51f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/pulls/27/commits","review_comments_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/pulls/27/comments","review_comment_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/pulls/comments{/number}","comments_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/issues/27/comments","statuses_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/statuses/444d5505d165a4f454f37ebb9a4a171fe39f6354","head":{"label":"akiko-pusu:develop","ref":"develop","sha":"444d5505d165a4f454f37ebb9a4a171fe39f6354","user":{"login":"akiko-pusu","id":122621,"avatar_url":"https://avatars.githubusercontent.com/u/122621?v=3","gravatar_id":"","url":"https://api.github.com/users/akiko-pusu","html_url":"https://github.com/akiko-pusu","followers_url":"https://api.github.com/users/akiko-pusu/followers","following_url":"https://api.github.com/users/akiko-pusu/following{/other_user}","gists_url":"https://api.github.com/users/akiko-pusu/gists{/gist_id}","starred_url":"https://api.github.com/users/akiko-pusu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akiko-pusu/subscriptions","organizations_url":"https://api.github.com/users/akiko-pusu/orgs","repos_url":"https://api.github.com/users/akiko-pusu/repos","events_url":"https://api.github.com/users/akiko-pusu/events{/privacy}","received_events_url":"https://api.github.com/users/akiko-pusu/received_events","type":"User","site_admin":false},"repo":{"id":58836786,"name":"redmine_issue_templates","full_name":"akiko-pusu/redmine_issue_templates","owner":{"login":"akiko-pusu","id":122621,"avatar_url":"https://avatars.githubusercontent.com/u/122621?v=3","gravatar_id":"","url":"https://api.github.com/users/akiko-pusu","html_url":"https://github.com/akiko-pusu","followers_url":"https://api.github.com/users/akiko-pusu/followers","following_url":"https://api.github.com/users/akiko-pusu/following{/other_user}","gists_url":"https://api.github.com/users/akiko-pusu/gists{/gist_id}","starred_url":"https://api.github.com/users/akiko-pusu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akiko-pusu/subscriptions","organizations_url":"https://api.github.com/users/akiko-pusu/orgs","repos_url":"https://api.github.com/users/akiko-pusu/repos","events_url":"https://api.github.com/users/akiko-pusu/events{/privacy}","received_events_url":"https://api.github.com/users/akiko-pusu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/akiko-pusu/redmine_issue_templates","description":"Repository for Redmine Issue Template (Ready to move Repository from Bitbucket to GitHub)","fork":false,"url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates","forks_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/forks","keys_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/teams","hooks_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/hooks","issue_events_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/issues/events{/number}","events_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/events","assignees_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/assignees{/user}","branches_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/branches{/branch}","tags_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/tags","blobs_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/git/refs{/sha}","trees_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/statuses/{sha}","languages_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/languages","stargazers_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/stargazers","contributors_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/contributors","subscribers_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/subscribers","subscription_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/subscription","commits_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/commits{/sha}","git_commits_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/git/commits{/sha}","comments_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/comments{/number}","issue_comment_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/issues/comments{/number}","contents_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/contents/{+path}","compare_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/merges","archive_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/downloads","issues_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/issues{/number}","pulls_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/pulls{/number}","milestones_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/milestones{/number}","notifications_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/labels{/name}","releases_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/releases{/id}","deployments_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/deployments","created_at":"2016-05-15T00:34:50Z","updated_at":"2016-06-14T23:11:18Z","pushed_at":"2016-06-21T19:34:46Z","git_url":"git://github.com/akiko-pusu/redmine_issue_templates.git","ssh_url":"git@github.com:akiko-pusu/redmine_issue_templates.git","clone_url":"https://github.com/akiko-pusu/redmine_issue_templates.git","svn_url":"https://github.com/akiko-pusu/redmine_issue_templates","homepage":null,"size":532,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":2,"forks":4,"open_issues":2,"watchers":5,"default_branch":"master"}},"base":{"label":"akiko-pusu:master","ref":"master","sha":"c09a67f9d8ca6ade1fc9e56bf8f873e1a18041fc","user":{"login":"akiko-pusu","id":122621,"avatar_url":"https://avatars.githubusercontent.com/u/122621?v=3","gravatar_id":"","url":"https://api.github.com/users/akiko-pusu","html_url":"https://github.com/akiko-pusu","followers_url":"https://api.github.com/users/akiko-pusu/followers","following_url":"https://api.github.com/users/akiko-pusu/following{/other_user}","gists_url":"https://api.github.com/users/akiko-pusu/gists{/gist_id}","starred_url":"https://api.github.com/users/akiko-pusu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akiko-pusu/subscriptions","organizations_url":"https://api.github.com/users/akiko-pusu/orgs","repos_url":"https://api.github.com/users/akiko-pusu/repos","events_url":"https://api.github.com/users/akiko-pusu/events{/privacy}","received_events_url":"https://api.github.com/users/akiko-pusu/received_events","type":"User","site_admin":false},"repo":{"id":58836786,"name":"redmine_issue_templates","full_name":"akiko-pusu/redmine_issue_templates","owner":{"login":"akiko-pusu","id":122621,"avatar_url":"https://avatars.githubusercontent.com/u/122621?v=3","gravatar_id":"","url":"https://api.github.com/users/akiko-pusu","html_url":"https://github.com/akiko-pusu","followers_url":"https://api.github.com/users/akiko-pusu/followers","following_url":"https://api.github.com/users/akiko-pusu/following{/other_user}","gists_url":"https://api.github.com/users/akiko-pusu/gists{/gist_id}","starred_url":"https://api.github.com/users/akiko-pusu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akiko-pusu/subscriptions","organizations_url":"https://api.github.com/users/akiko-pusu/orgs","repos_url":"https://api.github.com/users/akiko-pusu/repos","events_url":"https://api.github.com/users/akiko-pusu/events{/privacy}","received_events_url":"https://api.github.com/users/akiko-pusu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/akiko-pusu/redmine_issue_templates","description":"Repository for Redmine Issue Template (Ready to move Repository from Bitbucket to GitHub)","fork":false,"url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates","forks_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/forks","keys_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/teams","hooks_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/hooks","issue_events_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/issues/events{/number}","events_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/events","assignees_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/assignees{/user}","branches_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/branches{/branch}","tags_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/tags","blobs_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/git/refs{/sha}","trees_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/statuses/{sha}","languages_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/languages","stargazers_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/stargazers","contributors_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/contributors","subscribers_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/subscribers","subscription_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/subscription","commits_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/commits{/sha}","git_commits_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/git/commits{/sha}","comments_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/comments{/number}","issue_comment_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/issues/comments{/number}","contents_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/contents/{+path}","compare_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/merges","archive_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/downloads","issues_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/issues{/number}","pulls_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/pulls{/number}","milestones_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/milestones{/number}","notifications_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/labels{/name}","releases_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/releases{/id}","deployments_url":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/deployments","created_at":"2016-05-15T00:34:50Z","updated_at":"2016-06-14T23:11:18Z","pushed_at":"2016-06-21T19:34:46Z","git_url":"git://github.com/akiko-pusu/redmine_issue_templates.git","ssh_url":"git@github.com:akiko-pusu/redmine_issue_templates.git","clone_url":"https://github.com/akiko-pusu/redmine_issue_templates.git","svn_url":"https://github.com/akiko-pusu/redmine_issue_templates","homepage":null,"size":532,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":2,"forks":4,"open_issues":2,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/pulls/27"},"html":{"href":"https://github.com/akiko-pusu/redmine_issue_templates/pull/27"},"issue":{"href":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/issues/27"},"comments":{"href":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/akiko-pusu/redmine_issue_templates/statuses/444d5505d165a4f454f37ebb9a4a171fe39f6354"}}}}
{"actor":{"display_login":"akiko-pusu"}}