{"action":"created","comment":{"url":"https://api.github.com/repos/SerafimD/social/pulls/comments/22947789","id":22947789,"diff_hunk":"@@ -1,6 +1,22 @@\n+<% content_for :title do %>\n+  Social: My profile\n+<% end %>\n+\n <% if user_signed_in? %>\n-    <span>Здравствуйте, <%= current_user.email %></span>\n-    <%= link_to 'Выйти', destroy_user_session_path, :method => :delete %>\n+    <span>Здравствуйте, <%= current_user.name %></span><br />\n+    <span>Тип учетной записи: <%= current_user.kind_name %><br />\n+    <%= link_to 'Изменить данные учетной записи', edit_user_registration_path %><br />\n+\n+    <% if current_user.person? %>\n+    <%= render \"person\"  %>       ","path":"app/views/users/profile.html.erb","position":13,"original_position":13,"commit_id":"d917bee155946611b345c4bfb25ab6729f22b56c","original_commit_id":"d917bee155946611b345c4bfb25ab6729f22b56c","user":{"login":"MasalitinMaksim","id":2112332,"avatar_url":"https://avatars.githubusercontent.com/u/2112332?v=3","gravatar_id":"","url":"https://api.github.com/users/MasalitinMaksim","html_url":"https://github.com/MasalitinMaksim","followers_url":"https://api.github.com/users/MasalitinMaksim/followers","following_url":"https://api.github.com/users/MasalitinMaksim/following{/other_user}","gists_url":"https://api.github.com/users/MasalitinMaksim/gists{/gist_id}","starred_url":"https://api.github.com/users/MasalitinMaksim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MasalitinMaksim/subscriptions","organizations_url":"https://api.github.com/users/MasalitinMaksim/orgs","repos_url":"https://api.github.com/users/MasalitinMaksim/repos","events_url":"https://api.github.com/users/MasalitinMaksim/events{/privacy}","received_events_url":"https://api.github.com/users/MasalitinMaksim/received_events","type":"User","site_admin":false},"body":"табуляция (2 пробела)","created_at":"2015-01-14T16:21:39Z","updated_at":"2015-01-14T16:21:39Z","html_url":"https://github.com/SerafimD/social/pull/13#discussion_r22947789","pull_request_url":"https://api.github.com/repos/SerafimD/social/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/SerafimD/social/pulls/comments/22947789"},"html":{"href":"https://github.com/SerafimD/social/pull/13#discussion_r22947789"},"pull_request":{"href":"https://api.github.com/repos/SerafimD/social/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/SerafimD/social/pulls/13","id":27170913,"html_url":"https://github.com/SerafimD/social/pull/13","diff_url":"https://github.com/SerafimD/social/pull/13.diff","patch_url":"https://github.com/SerafimD/social/pull/13.patch","issue_url":"https://api.github.com/repos/SerafimD/social/issues/13","number":13,"state":"open","locked":false,"title":"homework 14","user":{"login":"KateGL","id":8265804,"avatar_url":"https://avatars.githubusercontent.com/u/8265804?v=3","gravatar_id":"","url":"https://api.github.com/users/KateGL","html_url":"https://github.com/KateGL","followers_url":"https://api.github.com/users/KateGL/followers","following_url":"https://api.github.com/users/KateGL/following{/other_user}","gists_url":"https://api.github.com/users/KateGL/gists{/gist_id}","starred_url":"https://api.github.com/users/KateGL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KateGL/subscriptions","organizations_url":"https://api.github.com/users/KateGL/orgs","repos_url":"https://api.github.com/users/KateGL/repos","events_url":"https://api.github.com/users/KateGL/events{/privacy}","received_events_url":"https://api.github.com/users/KateGL/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-12T00:36:36Z","updated_at":"2015-01-14T16:21:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fad5712dbfeab7fbf45229dfaac00dd067bfdf9e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SerafimD/social/pulls/13/commits","review_comments_url":"https://api.github.com/repos/SerafimD/social/pulls/13/comments","review_comment_url":"https://api.github.com/repos/SerafimD/social/pulls/comments/{number}","comments_url":"https://api.github.com/repos/SerafimD/social/issues/13/comments","statuses_url":"https://api.github.com/repos/SerafimD/social/statuses/d917bee155946611b345c4bfb25ab6729f22b56c","head":{"label":"SerafimD:dev_new","ref":"dev_new","sha":"d917bee155946611b345c4bfb25ab6729f22b56c","user":{"login":"SerafimD","id":7853323,"avatar_url":"https://avatars.githubusercontent.com/u/7853323?v=3","gravatar_id":"","url":"https://api.github.com/users/SerafimD","html_url":"https://github.com/SerafimD","followers_url":"https://api.github.com/users/SerafimD/followers","following_url":"https://api.github.com/users/SerafimD/following{/other_user}","gists_url":"https://api.github.com/users/SerafimD/gists{/gist_id}","starred_url":"https://api.github.com/users/SerafimD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SerafimD/subscriptions","organizations_url":"https://api.github.com/users/SerafimD/orgs","repos_url":"https://api.github.com/users/SerafimD/repos","events_url":"https://api.github.com/users/SerafimD/events{/privacy}","received_events_url":"https://api.github.com/users/SerafimD/received_events","type":"User","site_admin":false},"repo":{"id":28327918,"name":"social","full_name":"SerafimD/social","owner":{"login":"SerafimD","id":7853323,"avatar_url":"https://avatars.githubusercontent.com/u/7853323?v=3","gravatar_id":"","url":"https://api.github.com/users/SerafimD","html_url":"https://github.com/SerafimD","followers_url":"https://api.github.com/users/SerafimD/followers","following_url":"https://api.github.com/users/SerafimD/following{/other_user}","gists_url":"https://api.github.com/users/SerafimD/gists{/gist_id}","starred_url":"https://api.github.com/users/SerafimD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SerafimD/subscriptions","organizations_url":"https://api.github.com/users/SerafimD/orgs","repos_url":"https://api.github.com/users/SerafimD/repos","events_url":"https://api.github.com/users/SerafimD/events{/privacy}","received_events_url":"https://api.github.com/users/SerafimD/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SerafimD/social","description":"social network","fork":false,"url":"https://api.github.com/repos/SerafimD/social","forks_url":"https://api.github.com/repos/SerafimD/social/forks","keys_url":"https://api.github.com/repos/SerafimD/social/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SerafimD/social/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SerafimD/social/teams","hooks_url":"https://api.github.com/repos/SerafimD/social/hooks","issue_events_url":"https://api.github.com/repos/SerafimD/social/issues/events{/number}","events_url":"https://api.github.com/repos/SerafimD/social/events","assignees_url":"https://api.github.com/repos/SerafimD/social/assignees{/user}","branches_url":"https://api.github.com/repos/SerafimD/social/branches{/branch}","tags_url":"https://api.github.com/repos/SerafimD/social/tags","blobs_url":"https://api.github.com/repos/SerafimD/social/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SerafimD/social/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SerafimD/social/git/refs{/sha}","trees_url":"https://api.github.com/repos/SerafimD/social/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SerafimD/social/statuses/{sha}","languages_url":"https://api.github.com/repos/SerafimD/social/languages","stargazers_url":"https://api.github.com/repos/SerafimD/social/stargazers","contributors_url":"https://api.github.com/repos/SerafimD/social/contributors","subscribers_url":"https://api.github.com/repos/SerafimD/social/subscribers","subscription_url":"https://api.github.com/repos/SerafimD/social/subscription","commits_url":"https://api.github.com/repos/SerafimD/social/commits{/sha}","git_commits_url":"https://api.github.com/repos/SerafimD/social/git/commits{/sha}","comments_url":"https://api.github.com/repos/SerafimD/social/comments{/number}","issue_comment_url":"https://api.github.com/repos/SerafimD/social/issues/comments/{number}","contents_url":"https://api.github.com/repos/SerafimD/social/contents/{+path}","compare_url":"https://api.github.com/repos/SerafimD/social/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SerafimD/social/merges","archive_url":"https://api.github.com/repos/SerafimD/social/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SerafimD/social/downloads","issues_url":"https://api.github.com/repos/SerafimD/social/issues{/number}","pulls_url":"https://api.github.com/repos/SerafimD/social/pulls{/number}","milestones_url":"https://api.github.com/repos/SerafimD/social/milestones{/number}","notifications_url":"https://api.github.com/repos/SerafimD/social/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SerafimD/social/labels{/name}","releases_url":"https://api.github.com/repos/SerafimD/social/releases{/id}","created_at":"2014-12-22T06:51:59Z","updated_at":"2015-01-08T20:25:42Z","pushed_at":"2015-01-14T15:13:28Z","git_url":"git://github.com/SerafimD/social.git","ssh_url":"git@github.com:SerafimD/social.git","clone_url":"https://github.com/SerafimD/social.git","svn_url":"https://github.com/SerafimD/social","homepage":null,"size":958,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"SerafimD:master","ref":"master","sha":"97f13c030ddb4a7413ab5f5abbc7ea67745db636","user":{"login":"SerafimD","id":7853323,"avatar_url":"https://avatars.githubusercontent.com/u/7853323?v=3","gravatar_id":"","url":"https://api.github.com/users/SerafimD","html_url":"https://github.com/SerafimD","followers_url":"https://api.github.com/users/SerafimD/followers","following_url":"https://api.github.com/users/SerafimD/following{/other_user}","gists_url":"https://api.github.com/users/SerafimD/gists{/gist_id}","starred_url":"https://api.github.com/users/SerafimD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SerafimD/subscriptions","organizations_url":"https://api.github.com/users/SerafimD/orgs","repos_url":"https://api.github.com/users/SerafimD/repos","events_url":"https://api.github.com/users/SerafimD/events{/privacy}","received_events_url":"https://api.github.com/users/SerafimD/received_events","type":"User","site_admin":false},"repo":{"id":28327918,"name":"social","full_name":"SerafimD/social","owner":{"login":"SerafimD","id":7853323,"avatar_url":"https://avatars.githubusercontent.com/u/7853323?v=3","gravatar_id":"","url":"https://api.github.com/users/SerafimD","html_url":"https://github.com/SerafimD","followers_url":"https://api.github.com/users/SerafimD/followers","following_url":"https://api.github.com/users/SerafimD/following{/other_user}","gists_url":"https://api.github.com/users/SerafimD/gists{/gist_id}","starred_url":"https://api.github.com/users/SerafimD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SerafimD/subscriptions","organizations_url":"https://api.github.com/users/SerafimD/orgs","repos_url":"https://api.github.com/users/SerafimD/repos","events_url":"https://api.github.com/users/SerafimD/events{/privacy}","received_events_url":"https://api.github.com/users/SerafimD/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SerafimD/social","description":"social network","fork":false,"url":"https://api.github.com/repos/SerafimD/social","forks_url":"https://api.github.com/repos/SerafimD/social/forks","keys_url":"https://api.github.com/repos/SerafimD/social/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SerafimD/social/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SerafimD/social/teams","hooks_url":"https://api.github.com/repos/SerafimD/social/hooks","issue_events_url":"https://api.github.com/repos/SerafimD/social/issues/events{/number}","events_url":"https://api.github.com/repos/SerafimD/social/events","assignees_url":"https://api.github.com/repos/SerafimD/social/assignees{/user}","branches_url":"https://api.github.com/repos/SerafimD/social/branches{/branch}","tags_url":"https://api.github.com/repos/SerafimD/social/tags","blobs_url":"https://api.github.com/repos/SerafimD/social/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SerafimD/social/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SerafimD/social/git/refs{/sha}","trees_url":"https://api.github.com/repos/SerafimD/social/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SerafimD/social/statuses/{sha}","languages_url":"https://api.github.com/repos/SerafimD/social/languages","stargazers_url":"https://api.github.com/repos/SerafimD/social/stargazers","contributors_url":"https://api.github.com/repos/SerafimD/social/contributors","subscribers_url":"https://api.github.com/repos/SerafimD/social/subscribers","subscription_url":"https://api.github.com/repos/SerafimD/social/subscription","commits_url":"https://api.github.com/repos/SerafimD/social/commits{/sha}","git_commits_url":"https://api.github.com/repos/SerafimD/social/git/commits{/sha}","comments_url":"https://api.github.com/repos/SerafimD/social/comments{/number}","issue_comment_url":"https://api.github.com/repos/SerafimD/social/issues/comments/{number}","contents_url":"https://api.github.com/repos/SerafimD/social/contents/{+path}","compare_url":"https://api.github.com/repos/SerafimD/social/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SerafimD/social/merges","archive_url":"https://api.github.com/repos/SerafimD/social/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SerafimD/social/downloads","issues_url":"https://api.github.com/repos/SerafimD/social/issues{/number}","pulls_url":"https://api.github.com/repos/SerafimD/social/pulls{/number}","milestones_url":"https://api.github.com/repos/SerafimD/social/milestones{/number}","notifications_url":"https://api.github.com/repos/SerafimD/social/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SerafimD/social/labels{/name}","releases_url":"https://api.github.com/repos/SerafimD/social/releases{/id}","created_at":"2014-12-22T06:51:59Z","updated_at":"2015-01-08T20:25:42Z","pushed_at":"2015-01-14T15:13:28Z","git_url":"git://github.com/SerafimD/social.git","ssh_url":"git@github.com:SerafimD/social.git","clone_url":"https://github.com/SerafimD/social.git","svn_url":"https://github.com/SerafimD/social","homepage":null,"size":958,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SerafimD/social/pulls/13"},"html":{"href":"https://github.com/SerafimD/social/pull/13"},"issue":{"href":"https://api.github.com/repos/SerafimD/social/issues/13"},"comments":{"href":"https://api.github.com/repos/SerafimD/social/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/SerafimD/social/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/SerafimD/social/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/SerafimD/social/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/SerafimD/social/statuses/d917bee155946611b345c4bfb25ab6729f22b56c"}}}}