{"action":"created","comment":{"url":"https://api.github.com/repos/codex-team/hawk/pulls/comments/157372052","pull_request_review_id":84003775,"id":157372052,"diff_hunk":"@@ -1,5 +1,20 @@\n <div class=\"project\">\n-    <img src=\"{{ project.logo }}\" class=\"project__logo\">\n+        <form  class=\"project__logo\" action=\"/garage/settings/set_icon?id={{ project.id  }}\" method=\"post\" name=\"load_icon\" enctype=\"multipart/form-data\" id=\"file-form-{{ project.id }}\">","path":"hawk/views/garage/settings/project.twig","position":3,"original_position":3,"commit_id":"9bb40fa3e2e84b390241a95bf9c9f586102cf366","original_commit_id":"9bb40fa3e2e84b390241a95bf9c9f586102cf366","user":{"login":"neSpecc","id":3684889,"avatar_url":"https://avatars0.githubusercontent.com/u/3684889?v=4","gravatar_id":"","url":"https://api.github.com/users/neSpecc","html_url":"https://github.com/neSpecc","followers_url":"https://api.github.com/users/neSpecc/followers","following_url":"https://api.github.com/users/neSpecc/following{/other_user}","gists_url":"https://api.github.com/users/neSpecc/gists{/gist_id}","starred_url":"https://api.github.com/users/neSpecc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neSpecc/subscriptions","organizations_url":"https://api.github.com/users/neSpecc/orgs","repos_url":"https://api.github.com/users/neSpecc/repos","events_url":"https://api.github.com/users/neSpecc/events{/privacy}","received_events_url":"https://api.github.com/users/neSpecc/received_events","type":"User","site_admin":false},"body":"тут не надо встраивать форму. В блоке логотипа показывается либо изображение (если уже загружено), либо иконка-плейсхолдер. Далее на этот блок вешается JS событие клика, по которому происходит выбор файла и загрузка. На время загрузки внутри блока показывается лоадер. \r\n\r\nДля этого можно использовать наш модуль транспорта https://github.com/codex-team/transport","created_at":"2017-12-17T15:53:26Z","updated_at":"2017-12-17T15:53:53Z","html_url":"https://github.com/codex-team/hawk/pull/198#discussion_r157372052","pull_request_url":"https://api.github.com/repos/codex-team/hawk/pulls/198","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/codex-team/hawk/pulls/comments/157372052"},"html":{"href":"https://github.com/codex-team/hawk/pull/198#discussion_r157372052"},"pull_request":{"href":"https://api.github.com/repos/codex-team/hawk/pulls/198"}}},"pull_request":{"url":"https://api.github.com/repos/codex-team/hawk/pulls/198","id":157406402,"html_url":"https://github.com/codex-team/hawk/pull/198","diff_url":"https://github.com/codex-team/hawk/pull/198.diff","patch_url":"https://github.com/codex-team/hawk/pull/198.patch","issue_url":"https://api.github.com/repos/codex-team/hawk/issues/198","number":198,"state":"open","locked":false,"title":"Icon loader","user":{"login":"vovaksenov99","id":13554528,"avatar_url":"https://avatars2.githubusercontent.com/u/13554528?v=4","gravatar_id":"","url":"https://api.github.com/users/vovaksenov99","html_url":"https://github.com/vovaksenov99","followers_url":"https://api.github.com/users/vovaksenov99/followers","following_url":"https://api.github.com/users/vovaksenov99/following{/other_user}","gists_url":"https://api.github.com/users/vovaksenov99/gists{/gist_id}","starred_url":"https://api.github.com/users/vovaksenov99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vovaksenov99/subscriptions","organizations_url":"https://api.github.com/users/vovaksenov99/orgs","repos_url":"https://api.github.com/users/vovaksenov99/repos","events_url":"https://api.github.com/users/vovaksenov99/events{/privacy}","received_events_url":"https://api.github.com/users/vovaksenov99/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-12-09T21:57:50Z","updated_at":"2017-12-17T15:53:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"33b8ef0541906364cc62796e95cb936ee946822c","assignee":null,"assignees":[],"requested_reviewers":[{"login":"khaydarov","id":6507765,"avatar_url":"https://avatars2.githubusercontent.com/u/6507765?v=4","gravatar_id":"","url":"https://api.github.com/users/khaydarov","html_url":"https://github.com/khaydarov","followers_url":"https://api.github.com/users/khaydarov/followers","following_url":"https://api.github.com/users/khaydarov/following{/other_user}","gists_url":"https://api.github.com/users/khaydarov/gists{/gist_id}","starred_url":"https://api.github.com/users/khaydarov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khaydarov/subscriptions","organizations_url":"https://api.github.com/users/khaydarov/orgs","repos_url":"https://api.github.com/users/khaydarov/repos","events_url":"https://api.github.com/users/khaydarov/events{/privacy}","received_events_url":"https://api.github.com/users/khaydarov/received_events","type":"User","site_admin":false},{"login":"talyguryn","id":15259299,"avatar_url":"https://avatars0.githubusercontent.com/u/15259299?v=4","gravatar_id":"","url":"https://api.github.com/users/talyguryn","html_url":"https://github.com/talyguryn","followers_url":"https://api.github.com/users/talyguryn/followers","following_url":"https://api.github.com/users/talyguryn/following{/other_user}","gists_url":"https://api.github.com/users/talyguryn/gists{/gist_id}","starred_url":"https://api.github.com/users/talyguryn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talyguryn/subscriptions","organizations_url":"https://api.github.com/users/talyguryn/orgs","repos_url":"https://api.github.com/users/talyguryn/repos","events_url":"https://api.github.com/users/talyguryn/events{/privacy}","received_events_url":"https://api.github.com/users/talyguryn/received_events","type":"User","site_admin":false},{"login":"gohabereg","id":23050529,"avatar_url":"https://avatars0.githubusercontent.com/u/23050529?v=4","gravatar_id":"","url":"https://api.github.com/users/gohabereg","html_url":"https://github.com/gohabereg","followers_url":"https://api.github.com/users/gohabereg/followers","following_url":"https://api.github.com/users/gohabereg/following{/other_user}","gists_url":"https://api.github.com/users/gohabereg/gists{/gist_id}","starred_url":"https://api.github.com/users/gohabereg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gohabereg/subscriptions","organizations_url":"https://api.github.com/users/gohabereg/orgs","repos_url":"https://api.github.com/users/gohabereg/repos","events_url":"https://api.github.com/users/gohabereg/events{/privacy}","received_events_url":"https://api.github.com/users/gohabereg/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/codex-team/hawk/pulls/198/commits","review_comments_url":"https://api.github.com/repos/codex-team/hawk/pulls/198/comments","review_comment_url":"https://api.github.com/repos/codex-team/hawk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codex-team/hawk/issues/198/comments","statuses_url":"https://api.github.com/repos/codex-team/hawk/statuses/9bb40fa3e2e84b390241a95bf9c9f586102cf366","head":{"label":"codex-team:icon-loader","ref":"icon-loader","sha":"9bb40fa3e2e84b390241a95bf9c9f586102cf366","user":{"login":"codex-team","id":16060815,"avatar_url":"https://avatars0.githubusercontent.com/u/16060815?v=4","gravatar_id":"","url":"https://api.github.com/users/codex-team","html_url":"https://github.com/codex-team","followers_url":"https://api.github.com/users/codex-team/followers","following_url":"https://api.github.com/users/codex-team/following{/other_user}","gists_url":"https://api.github.com/users/codex-team/gists{/gist_id}","starred_url":"https://api.github.com/users/codex-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codex-team/subscriptions","organizations_url":"https://api.github.com/users/codex-team/orgs","repos_url":"https://api.github.com/users/codex-team/repos","events_url":"https://api.github.com/users/codex-team/events{/privacy}","received_events_url":"https://api.github.com/users/codex-team/received_events","type":"Organization","site_admin":false},"repo":{"id":93918167,"name":"hawk","full_name":"codex-team/hawk","owner":{"login":"codex-team","id":16060815,"avatar_url":"https://avatars0.githubusercontent.com/u/16060815?v=4","gravatar_id":"","url":"https://api.github.com/users/codex-team","html_url":"https://github.com/codex-team","followers_url":"https://api.github.com/users/codex-team/followers","following_url":"https://api.github.com/users/codex-team/following{/other_user}","gists_url":"https://api.github.com/users/codex-team/gists{/gist_id}","starred_url":"https://api.github.com/users/codex-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codex-team/subscriptions","organizations_url":"https://api.github.com/users/codex-team/orgs","repos_url":"https://api.github.com/users/codex-team/repos","events_url":"https://api.github.com/users/codex-team/events{/privacy}","received_events_url":"https://api.github.com/users/codex-team/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codex-team/hawk","description":"Fast and lightweight errors tracking service","fork":false,"url":"https://api.github.com/repos/codex-team/hawk","forks_url":"https://api.github.com/repos/codex-team/hawk/forks","keys_url":"https://api.github.com/repos/codex-team/hawk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codex-team/hawk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codex-team/hawk/teams","hooks_url":"https://api.github.com/repos/codex-team/hawk/hooks","issue_events_url":"https://api.github.com/repos/codex-team/hawk/issues/events{/number}","events_url":"https://api.github.com/repos/codex-team/hawk/events","assignees_url":"https://api.github.com/repos/codex-team/hawk/assignees{/user}","branches_url":"https://api.github.com/repos/codex-team/hawk/branches{/branch}","tags_url":"https://api.github.com/repos/codex-team/hawk/tags","blobs_url":"https://api.github.com/repos/codex-team/hawk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codex-team/hawk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codex-team/hawk/git/refs{/sha}","trees_url":"https://api.github.com/repos/codex-team/hawk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codex-team/hawk/statuses/{sha}","languages_url":"https://api.github.com/repos/codex-team/hawk/languages","stargazers_url":"https://api.github.com/repos/codex-team/hawk/stargazers","contributors_url":"https://api.github.com/repos/codex-team/hawk/contributors","subscribers_url":"https://api.github.com/repos/codex-team/hawk/subscribers","subscription_url":"https://api.github.com/repos/codex-team/hawk/subscription","commits_url":"https://api.github.com/repos/codex-team/hawk/commits{/sha}","git_commits_url":"https://api.github.com/repos/codex-team/hawk/git/commits{/sha}","comments_url":"https://api.github.com/repos/codex-team/hawk/comments{/number}","issue_comment_url":"https://api.github.com/repos/codex-team/hawk/issues/comments{/number}","contents_url":"https://api.github.com/repos/codex-team/hawk/contents/{+path}","compare_url":"https://api.github.com/repos/codex-team/hawk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codex-team/hawk/merges","archive_url":"https://api.github.com/repos/codex-team/hawk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codex-team/hawk/downloads","issues_url":"https://api.github.com/repos/codex-team/hawk/issues{/number}","pulls_url":"https://api.github.com/repos/codex-team/hawk/pulls{/number}","milestones_url":"https://api.github.com/repos/codex-team/hawk/milestones{/number}","notifications_url":"https://api.github.com/repos/codex-team/hawk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codex-team/hawk/labels{/name}","releases_url":"https://api.github.com/repos/codex-team/hawk/releases{/id}","deployments_url":"https://api.github.com/repos/codex-team/hawk/deployments","created_at":"2017-06-10T05:34:46Z","updated_at":"2017-10-14T03:07:29Z","pushed_at":"2017-12-17T15:17:28Z","git_url":"git://github.com/codex-team/hawk.git","ssh_url":"git@github.com:codex-team/hawk.git","clone_url":"https://github.com/codex-team/hawk.git","svn_url":"https://github.com/codex-team/hawk","homepage":"https://hawk.so","size":1116,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":22,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":22,"watchers":2,"default_branch":"master"}},"base":{"label":"codex-team:master","ref":"master","sha":"4fd0f2952cdecbf45b9287ebb20c9b88ba709ffb","user":{"login":"codex-team","id":16060815,"avatar_url":"https://avatars0.githubusercontent.com/u/16060815?v=4","gravatar_id":"","url":"https://api.github.com/users/codex-team","html_url":"https://github.com/codex-team","followers_url":"https://api.github.com/users/codex-team/followers","following_url":"https://api.github.com/users/codex-team/following{/other_user}","gists_url":"https://api.github.com/users/codex-team/gists{/gist_id}","starred_url":"https://api.github.com/users/codex-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codex-team/subscriptions","organizations_url":"https://api.github.com/users/codex-team/orgs","repos_url":"https://api.github.com/users/codex-team/repos","events_url":"https://api.github.com/users/codex-team/events{/privacy}","received_events_url":"https://api.github.com/users/codex-team/received_events","type":"Organization","site_admin":false},"repo":{"id":93918167,"name":"hawk","full_name":"codex-team/hawk","owner":{"login":"codex-team","id":16060815,"avatar_url":"https://avatars0.githubusercontent.com/u/16060815?v=4","gravatar_id":"","url":"https://api.github.com/users/codex-team","html_url":"https://github.com/codex-team","followers_url":"https://api.github.com/users/codex-team/followers","following_url":"https://api.github.com/users/codex-team/following{/other_user}","gists_url":"https://api.github.com/users/codex-team/gists{/gist_id}","starred_url":"https://api.github.com/users/codex-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codex-team/subscriptions","organizations_url":"https://api.github.com/users/codex-team/orgs","repos_url":"https://api.github.com/users/codex-team/repos","events_url":"https://api.github.com/users/codex-team/events{/privacy}","received_events_url":"https://api.github.com/users/codex-team/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codex-team/hawk","description":"Fast and lightweight errors tracking service","fork":false,"url":"https://api.github.com/repos/codex-team/hawk","forks_url":"https://api.github.com/repos/codex-team/hawk/forks","keys_url":"https://api.github.com/repos/codex-team/hawk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codex-team/hawk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codex-team/hawk/teams","hooks_url":"https://api.github.com/repos/codex-team/hawk/hooks","issue_events_url":"https://api.github.com/repos/codex-team/hawk/issues/events{/number}","events_url":"https://api.github.com/repos/codex-team/hawk/events","assignees_url":"https://api.github.com/repos/codex-team/hawk/assignees{/user}","branches_url":"https://api.github.com/repos/codex-team/hawk/branches{/branch}","tags_url":"https://api.github.com/repos/codex-team/hawk/tags","blobs_url":"https://api.github.com/repos/codex-team/hawk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codex-team/hawk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codex-team/hawk/git/refs{/sha}","trees_url":"https://api.github.com/repos/codex-team/hawk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codex-team/hawk/statuses/{sha}","languages_url":"https://api.github.com/repos/codex-team/hawk/languages","stargazers_url":"https://api.github.com/repos/codex-team/hawk/stargazers","contributors_url":"https://api.github.com/repos/codex-team/hawk/contributors","subscribers_url":"https://api.github.com/repos/codex-team/hawk/subscribers","subscription_url":"https://api.github.com/repos/codex-team/hawk/subscription","commits_url":"https://api.github.com/repos/codex-team/hawk/commits{/sha}","git_commits_url":"https://api.github.com/repos/codex-team/hawk/git/commits{/sha}","comments_url":"https://api.github.com/repos/codex-team/hawk/comments{/number}","issue_comment_url":"https://api.github.com/repos/codex-team/hawk/issues/comments{/number}","contents_url":"https://api.github.com/repos/codex-team/hawk/contents/{+path}","compare_url":"https://api.github.com/repos/codex-team/hawk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codex-team/hawk/merges","archive_url":"https://api.github.com/repos/codex-team/hawk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codex-team/hawk/downloads","issues_url":"https://api.github.com/repos/codex-team/hawk/issues{/number}","pulls_url":"https://api.github.com/repos/codex-team/hawk/pulls{/number}","milestones_url":"https://api.github.com/repos/codex-team/hawk/milestones{/number}","notifications_url":"https://api.github.com/repos/codex-team/hawk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codex-team/hawk/labels{/name}","releases_url":"https://api.github.com/repos/codex-team/hawk/releases{/id}","deployments_url":"https://api.github.com/repos/codex-team/hawk/deployments","created_at":"2017-06-10T05:34:46Z","updated_at":"2017-10-14T03:07:29Z","pushed_at":"2017-12-17T15:17:28Z","git_url":"git://github.com/codex-team/hawk.git","ssh_url":"git@github.com:codex-team/hawk.git","clone_url":"https://github.com/codex-team/hawk.git","svn_url":"https://github.com/codex-team/hawk","homepage":"https://hawk.so","size":1116,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":22,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":22,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codex-team/hawk/pulls/198"},"html":{"href":"https://github.com/codex-team/hawk/pull/198"},"issue":{"href":"https://api.github.com/repos/codex-team/hawk/issues/198"},"comments":{"href":"https://api.github.com/repos/codex-team/hawk/issues/198/comments"},"review_comments":{"href":"https://api.github.com/repos/codex-team/hawk/pulls/198/comments"},"review_comment":{"href":"https://api.github.com/repos/codex-team/hawk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codex-team/hawk/pulls/198/commits"},"statuses":{"href":"https://api.github.com/repos/codex-team/hawk/statuses/9bb40fa3e2e84b390241a95bf9c9f586102cf366"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"neSpecc"}}