{"action":"created","comment":{"url":"https://api.github.com/repos/rubykube/peatio/pulls/comments/158801747","pull_request_review_id":85654490,"id":158801747,"diff_hunk":"@@ -0,0 +1,43 @@\n+<%= link_to t('admin.tickets.open_tickets'), admin_tickets_path %>\n+|&nbsp; &nbsp; &nbsp;\n+<%= link_to t('admin.tickets.closed_tickets'), admin_tickets_path(closed: true) %>\n+\n+<ul class=\"list-group\">\n+  <% @tickets.each do |t| %>\n+    <li class=\"<%= (t.unread?(current_user) || t.comments.unread_by(current_user).any? ? ['unread', 'list-group-item'] : ['list-group-item']) %>\">\n+\n+      <div class=\"row row-middle\">\n+        <div class=\"col-xs-24\">\n+          <div class=\"row row-middle\">\n+            <div class=\"col-xs-14\">\n+              <h4><%= link_to t.title_for_display, admin_ticket_path(t) %></h4>\n+            </div>\n+            <div class=\"col-xs-14\"></div>\n+          </div>\n+          <div class=\"row\">\n+            <div class=\"col-xs-12\">\n+              <p class=\"text-ignore\"><%= t.content %></p>\n+            </div>\n+          </div>\n+          <div class=\"row\">\n+            <div class=\"col-xs-12\">\n+              <span><%= \"#{I18n.t(\"private.tickets.from\")}: #{t.author.email}\" %></span>\n+            </div>\n+            <div class=\"col-xs-4\">\n+              <span><%= time_ago_in_words t.created_at %></span>\n+            </div>\n+            <div class=\"col-xs-4\">\n+              <% unless t.closed? %>\n+                <%= link_to(t('admin.tickets.close'), close_admin_ticket_path(t.id), confirm: t('private.tickets.close_confirm'), method: :patch) %>\n+              <% end %>\n+            </div>\n+            <div class=\"col-xs-4 text-right\">\n+              <%= \"#{t('admin.tickets.comments_count')}(#{t.comments.count})\" %>","path":"app/views/admin/tickets/index.html.erb","position":35,"original_position":35,"commit_id":"839adcdd084e68bae2fe54a79b5f5cf32642bcc4","original_commit_id":"839adcdd084e68bae2fe54a79b5f5cf32642bcc4","user":{"login":"yivo","id":7421323,"avatar_url":"https://avatars0.githubusercontent.com/u/7421323?v=4","gravatar_id":"","url":"https://api.github.com/users/yivo","html_url":"https://github.com/yivo","followers_url":"https://api.github.com/users/yivo/followers","following_url":"https://api.github.com/users/yivo/following{/other_user}","gists_url":"https://api.github.com/users/yivo/gists{/gist_id}","starred_url":"https://api.github.com/users/yivo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yivo/subscriptions","organizations_url":"https://api.github.com/users/yivo/orgs","repos_url":"https://api.github.com/users/yivo/repos","events_url":"https://api.github.com/users/yivo/events{/privacy}","received_events_url":"https://api.github.com/users/yivo/received_events","type":"User","site_admin":false},"body":"@spavlishak No need for interpolation here.","created_at":"2017-12-27T11:40:12Z","updated_at":"2017-12-27T11:56:06Z","html_url":"https://github.com/rubykube/peatio/pull/132#discussion_r158801747","pull_request_url":"https://api.github.com/repos/rubykube/peatio/pulls/132","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/rubykube/peatio/pulls/comments/158801747"},"html":{"href":"https://github.com/rubykube/peatio/pull/132#discussion_r158801747"},"pull_request":{"href":"https://api.github.com/repos/rubykube/peatio/pulls/132"}}},"pull_request":{"url":"https://api.github.com/repos/rubykube/peatio/pulls/132","id":159207088,"html_url":"https://github.com/rubykube/peatio/pull/132","diff_url":"https://github.com/rubykube/peatio/pull/132.diff","patch_url":"https://github.com/rubykube/peatio/pull/132.patch","issue_url":"https://api.github.com/repos/rubykube/peatio/issues/132","number":132,"state":"open","locked":false,"title":"[WIP] [Slim to ERB] Admin pages","user":{"login":"spavlishak","id":24247136,"avatar_url":"https://avatars3.githubusercontent.com/u/24247136?v=4","gravatar_id":"","url":"https://api.github.com/users/spavlishak","html_url":"https://github.com/spavlishak","followers_url":"https://api.github.com/users/spavlishak/followers","following_url":"https://api.github.com/users/spavlishak/following{/other_user}","gists_url":"https://api.github.com/users/spavlishak/gists{/gist_id}","starred_url":"https://api.github.com/users/spavlishak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spavlishak/subscriptions","organizations_url":"https://api.github.com/users/spavlishak/orgs","repos_url":"https://api.github.com/users/spavlishak/repos","events_url":"https://api.github.com/users/spavlishak/events{/privacy}","received_events_url":"https://api.github.com/users/spavlishak/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-12-19T16:10:10Z","updated_at":"2017-12-27T11:56:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e81053118c1c011e71f8c907d10c9456681c8088","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/rubykube/peatio/pulls/132/commits","review_comments_url":"https://api.github.com/repos/rubykube/peatio/pulls/132/comments","review_comment_url":"https://api.github.com/repos/rubykube/peatio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rubykube/peatio/issues/132/comments","statuses_url":"https://api.github.com/repos/rubykube/peatio/statuses/839adcdd084e68bae2fe54a79b5f5cf32642bcc4","head":{"label":"spavlishak:master","ref":"master","sha":"839adcdd084e68bae2fe54a79b5f5cf32642bcc4","user":{"login":"spavlishak","id":24247136,"avatar_url":"https://avatars3.githubusercontent.com/u/24247136?v=4","gravatar_id":"","url":"https://api.github.com/users/spavlishak","html_url":"https://github.com/spavlishak","followers_url":"https://api.github.com/users/spavlishak/followers","following_url":"https://api.github.com/users/spavlishak/following{/other_user}","gists_url":"https://api.github.com/users/spavlishak/gists{/gist_id}","starred_url":"https://api.github.com/users/spavlishak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spavlishak/subscriptions","organizations_url":"https://api.github.com/users/spavlishak/orgs","repos_url":"https://api.github.com/users/spavlishak/repos","events_url":"https://api.github.com/users/spavlishak/events{/privacy}","received_events_url":"https://api.github.com/users/spavlishak/received_events","type":"User","site_admin":false},"repo":{"id":110124459,"name":"peatio","full_name":"spavlishak/peatio","owner":{"login":"spavlishak","id":24247136,"avatar_url":"https://avatars3.githubusercontent.com/u/24247136?v=4","gravatar_id":"","url":"https://api.github.com/users/spavlishak","html_url":"https://github.com/spavlishak","followers_url":"https://api.github.com/users/spavlishak/followers","following_url":"https://api.github.com/users/spavlishak/following{/other_user}","gists_url":"https://api.github.com/users/spavlishak/gists{/gist_id}","starred_url":"https://api.github.com/users/spavlishak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spavlishak/subscriptions","organizations_url":"https://api.github.com/users/spavlishak/orgs","repos_url":"https://api.github.com/users/spavlishak/repos","events_url":"https://api.github.com/users/spavlishak/events{/privacy}","received_events_url":"https://api.github.com/users/spavlishak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/spavlishak/peatio","description":"An open-source assets exchange.","fork":true,"url":"https://api.github.com/repos/spavlishak/peatio","forks_url":"https://api.github.com/repos/spavlishak/peatio/forks","keys_url":"https://api.github.com/repos/spavlishak/peatio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spavlishak/peatio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spavlishak/peatio/teams","hooks_url":"https://api.github.com/repos/spavlishak/peatio/hooks","issue_events_url":"https://api.github.com/repos/spavlishak/peatio/issues/events{/number}","events_url":"https://api.github.com/repos/spavlishak/peatio/events","assignees_url":"https://api.github.com/repos/spavlishak/peatio/assignees{/user}","branches_url":"https://api.github.com/repos/spavlishak/peatio/branches{/branch}","tags_url":"https://api.github.com/repos/spavlishak/peatio/tags","blobs_url":"https://api.github.com/repos/spavlishak/peatio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spavlishak/peatio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spavlishak/peatio/git/refs{/sha}","trees_url":"https://api.github.com/repos/spavlishak/peatio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spavlishak/peatio/statuses/{sha}","languages_url":"https://api.github.com/repos/spavlishak/peatio/languages","stargazers_url":"https://api.github.com/repos/spavlishak/peatio/stargazers","contributors_url":"https://api.github.com/repos/spavlishak/peatio/contributors","subscribers_url":"https://api.github.com/repos/spavlishak/peatio/subscribers","subscription_url":"https://api.github.com/repos/spavlishak/peatio/subscription","commits_url":"https://api.github.com/repos/spavlishak/peatio/commits{/sha}","git_commits_url":"https://api.github.com/repos/spavlishak/peatio/git/commits{/sha}","comments_url":"https://api.github.com/repos/spavlishak/peatio/comments{/number}","issue_comment_url":"https://api.github.com/repos/spavlishak/peatio/issues/comments{/number}","contents_url":"https://api.github.com/repos/spavlishak/peatio/contents/{+path}","compare_url":"https://api.github.com/repos/spavlishak/peatio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spavlishak/peatio/merges","archive_url":"https://api.github.com/repos/spavlishak/peatio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spavlishak/peatio/downloads","issues_url":"https://api.github.com/repos/spavlishak/peatio/issues{/number}","pulls_url":"https://api.github.com/repos/spavlishak/peatio/pulls{/number}","milestones_url":"https://api.github.com/repos/spavlishak/peatio/milestones{/number}","notifications_url":"https://api.github.com/repos/spavlishak/peatio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spavlishak/peatio/labels{/name}","releases_url":"https://api.github.com/repos/spavlishak/peatio/releases{/id}","deployments_url":"https://api.github.com/repos/spavlishak/peatio/deployments","created_at":"2017-11-09T14:19:30Z","updated_at":"2017-11-09T14:19:32Z","pushed_at":"2017-12-25T14:56:39Z","git_url":"git://github.com/spavlishak/peatio.git","ssh_url":"git@github.com:spavlishak/peatio.git","clone_url":"https://github.com/spavlishak/peatio.git","svn_url":"https://github.com/spavlishak/peatio","homepage":"https://peatio.tech","size":6516,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rubykube:master","ref":"master","sha":"a55a617638dd63e19be2f4c88efe3c6971e7601a","user":{"login":"rubykube","id":29372474,"avatar_url":"https://avatars2.githubusercontent.com/u/29372474?v=4","gravatar_id":"","url":"https://api.github.com/users/rubykube","html_url":"https://github.com/rubykube","followers_url":"https://api.github.com/users/rubykube/followers","following_url":"https://api.github.com/users/rubykube/following{/other_user}","gists_url":"https://api.github.com/users/rubykube/gists{/gist_id}","starred_url":"https://api.github.com/users/rubykube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubykube/subscriptions","organizations_url":"https://api.github.com/users/rubykube/orgs","repos_url":"https://api.github.com/users/rubykube/repos","events_url":"https://api.github.com/users/rubykube/events{/privacy}","received_events_url":"https://api.github.com/users/rubykube/received_events","type":"Organization","site_admin":false},"repo":{"id":103532367,"name":"peatio","full_name":"rubykube/peatio","owner":{"login":"rubykube","id":29372474,"avatar_url":"https://avatars2.githubusercontent.com/u/29372474?v=4","gravatar_id":"","url":"https://api.github.com/users/rubykube","html_url":"https://github.com/rubykube","followers_url":"https://api.github.com/users/rubykube/followers","following_url":"https://api.github.com/users/rubykube/following{/other_user}","gists_url":"https://api.github.com/users/rubykube/gists{/gist_id}","starred_url":"https://api.github.com/users/rubykube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubykube/subscriptions","organizations_url":"https://api.github.com/users/rubykube/orgs","repos_url":"https://api.github.com/users/rubykube/repos","events_url":"https://api.github.com/users/rubykube/events{/privacy}","received_events_url":"https://api.github.com/users/rubykube/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rubykube/peatio","description":"An open-source assets exchange.","fork":true,"url":"https://api.github.com/repos/rubykube/peatio","forks_url":"https://api.github.com/repos/rubykube/peatio/forks","keys_url":"https://api.github.com/repos/rubykube/peatio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rubykube/peatio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rubykube/peatio/teams","hooks_url":"https://api.github.com/repos/rubykube/peatio/hooks","issue_events_url":"https://api.github.com/repos/rubykube/peatio/issues/events{/number}","events_url":"https://api.github.com/repos/rubykube/peatio/events","assignees_url":"https://api.github.com/repos/rubykube/peatio/assignees{/user}","branches_url":"https://api.github.com/repos/rubykube/peatio/branches{/branch}","tags_url":"https://api.github.com/repos/rubykube/peatio/tags","blobs_url":"https://api.github.com/repos/rubykube/peatio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rubykube/peatio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rubykube/peatio/git/refs{/sha}","trees_url":"https://api.github.com/repos/rubykube/peatio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rubykube/peatio/statuses/{sha}","languages_url":"https://api.github.com/repos/rubykube/peatio/languages","stargazers_url":"https://api.github.com/repos/rubykube/peatio/stargazers","contributors_url":"https://api.github.com/repos/rubykube/peatio/contributors","subscribers_url":"https://api.github.com/repos/rubykube/peatio/subscribers","subscription_url":"https://api.github.com/repos/rubykube/peatio/subscription","commits_url":"https://api.github.com/repos/rubykube/peatio/commits{/sha}","git_commits_url":"https://api.github.com/repos/rubykube/peatio/git/commits{/sha}","comments_url":"https://api.github.com/repos/rubykube/peatio/comments{/number}","issue_comment_url":"https://api.github.com/repos/rubykube/peatio/issues/comments{/number}","contents_url":"https://api.github.com/repos/rubykube/peatio/contents/{+path}","compare_url":"https://api.github.com/repos/rubykube/peatio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rubykube/peatio/merges","archive_url":"https://api.github.com/repos/rubykube/peatio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rubykube/peatio/downloads","issues_url":"https://api.github.com/repos/rubykube/peatio/issues{/number}","pulls_url":"https://api.github.com/repos/rubykube/peatio/pulls{/number}","milestones_url":"https://api.github.com/repos/rubykube/peatio/milestones{/number}","notifications_url":"https://api.github.com/repos/rubykube/peatio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rubykube/peatio/labels{/name}","releases_url":"https://api.github.com/repos/rubykube/peatio/releases{/id}","deployments_url":"https://api.github.com/repos/rubykube/peatio/deployments","created_at":"2017-09-14T12:57:42Z","updated_at":"2017-12-25T18:35:41Z","pushed_at":"2017-12-26T18:54:05Z","git_url":"git://github.com/rubykube/peatio.git","ssh_url":"git@github.com:rubykube/peatio.git","clone_url":"https://github.com/rubykube/peatio.git","svn_url":"https://github.com/rubykube/peatio","homepage":"https://peatio.tech","size":6272,"stargazers_count":34,"watchers_count":34,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":36,"mirror_url":null,"archived":false,"open_issues_count":31,"license":null,"forks":36,"open_issues":31,"watchers":34,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rubykube/peatio/pulls/132"},"html":{"href":"https://github.com/rubykube/peatio/pull/132"},"issue":{"href":"https://api.github.com/repos/rubykube/peatio/issues/132"},"comments":{"href":"https://api.github.com/repos/rubykube/peatio/issues/132/comments"},"review_comments":{"href":"https://api.github.com/repos/rubykube/peatio/pulls/132/comments"},"review_comment":{"href":"https://api.github.com/repos/rubykube/peatio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rubykube/peatio/pulls/132/commits"},"statuses":{"href":"https://api.github.com/repos/rubykube/peatio/statuses/839adcdd084e68bae2fe54a79b5f5cf32642bcc4"}},"author_association":"NONE"}}
{"actor":{"display_login":"yivo"}}