{"action":"created","comment":{"url":"https://api.github.com/repos/Terunaga/protospace/pulls/comments/43569991","id":43569991,"diff_hunk":"@@ -4,25 +4,26 @@\n       %span.icon-bar\n       %span.icon-bar\n       %span.icon-bar\n-    = link_to \"= image_tag(\"logo.png\", alt: \"PROTO TYPE - SHARE THE PROTOTYPE\", height: \"36px\")\", '/', class: \"navbar-brand\"\n+    = link_to image_tag(\"logo.png\", alt: \"PROTO TYPE - SHARE THE PROTOTYPE\", height: \"36px\"), '/', class: \"navbar-brand\"\n     .navbar-collapse.collapse.navbar-responsive-collapse\n-      //not login\n-      %ul.nav.navbar-nav.navbar-right\n-        %li\n-          .btn.btn-primary.navbar-btn\n-            = link_to 'Get Started', '/login'\n-/ deviseを作ったら、リンクを作り直す\n-      //login\n-      %ul.nav.navbar-nav.navbar-right\n-        %li.dropdown\n-          %a.dropdown-toggle{aria: {expanded: \"false\"}, data: {toggle: \"dropdown\"}, href: \"#\", role: \"button\"}\n-            UserName\n-            %span.caret\n-          %ul.dropdown-menu{role: \"menu\"}\n-            %li\n-              = link_to 'Profile Edit', '#'\n-            %li\n-              = link_to 'Logout', '#'\n-        %li\n-          .btn.btn-primary.navbar-btn\n-            = link_to 'New Proto', new_prototype_path\n+      - if user_signed_in?\n+        %ul.nav.navbar-nav.navbar-right\n+          %li.dropdown\n+            %a.dropdown-toggle{aria: {expanded: \"false\"}, data: {toggle:\"dropdown\"}, href: \"#\", role: \"button\" }\n+              = current_user.username\n+              %span.caret\n+            %ul.dropdown-menu{role: \"menu\"}\n+              %li\n+                = link_to 'My Page', user_path(current_user)\n+              %li\n+                = link_to 'Profile Edit', edit_user_path(current_user)\n+              %li\n+                = link_to 'Logout', destroy_user_session_path, method: :delete\n+          %li\n+            .btn.btn-primary.navbar-btn\n+              = link_to 'New Proto', new_prototype_path\n+      - else\n+        %ul.nav.navbar-nav.navbar-right\n+          %li\n+            .btn.btn-primary.navbar-btn\n+              = link_to 'Get Started', new_user_session_path","path":"app/views/layouts/_header.html.haml","position":47,"original_position":47,"commit_id":"0ffb138d26c49c1a0de3b8448c21560ab66f755a","original_commit_id":"0ffb138d26c49c1a0de3b8448c21560ab66f755a","user":{"login":"sinagaki58","id":11718183,"avatar_url":"https://avatars.githubusercontent.com/u/11718183?v=3","gravatar_id":"","url":"https://api.github.com/users/sinagaki58","html_url":"https://github.com/sinagaki58","followers_url":"https://api.github.com/users/sinagaki58/followers","following_url":"https://api.github.com/users/sinagaki58/following{/other_user}","gists_url":"https://api.github.com/users/sinagaki58/gists{/gist_id}","starred_url":"https://api.github.com/users/sinagaki58/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sinagaki58/subscriptions","organizations_url":"https://api.github.com/users/sinagaki58/orgs","repos_url":"https://api.github.com/users/sinagaki58/repos","events_url":"https://api.github.com/users/sinagaki58/events{/privacy}","received_events_url":"https://api.github.com/users/sinagaki58/received_events","type":"User","site_admin":false},"body":"空行\r\n","created_at":"2015-10-31T09:35:56Z","updated_at":"2015-10-31T09:35:56Z","html_url":"https://github.com/Terunaga/protospace/pull/8#discussion_r43569991","pull_request_url":"https://api.github.com/repos/Terunaga/protospace/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/Terunaga/protospace/pulls/comments/43569991"},"html":{"href":"https://github.com/Terunaga/protospace/pull/8#discussion_r43569991"},"pull_request":{"href":"https://api.github.com/repos/Terunaga/protospace/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/Terunaga/protospace/pulls/8","id":49144831,"html_url":"https://github.com/Terunaga/protospace/pull/8","diff_url":"https://github.com/Terunaga/protospace/pull/8.diff","patch_url":"https://github.com/Terunaga/protospace/pull/8.patch","issue_url":"https://api.github.com/repos/Terunaga/protospace/issues/8","number":8,"state":"open","locked":false,"title":"Devise related branch","user":{"login":"Terunaga","id":13899346,"avatar_url":"https://avatars.githubusercontent.com/u/13899346?v=3","gravatar_id":"","url":"https://api.github.com/users/Terunaga","html_url":"https://github.com/Terunaga","followers_url":"https://api.github.com/users/Terunaga/followers","following_url":"https://api.github.com/users/Terunaga/following{/other_user}","gists_url":"https://api.github.com/users/Terunaga/gists{/gist_id}","starred_url":"https://api.github.com/users/Terunaga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Terunaga/subscriptions","organizations_url":"https://api.github.com/users/Terunaga/orgs","repos_url":"https://api.github.com/users/Terunaga/repos","events_url":"https://api.github.com/users/Terunaga/events{/privacy}","received_events_url":"https://api.github.com/users/Terunaga/received_events","type":"User","site_admin":false},"body":"# WHAT\r\nSet up some initial actions in order to implement the sign-up features.\r\nSpecifically, ran the following commands:\r\n* rails g devise:install\r\n* rails g devise user\r\n*rails g devise:views\r\n\r\nAlso, added the following columns to the users table:\r\n* username\r\n* member\r\n* profile\r\n* works\r\n\r\n# WHY\r\nThese setups are crucial in implementing the sign-up features.","created_at":"2015-10-29T14:17:27Z","updated_at":"2015-10-31T09:35:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"82fa09a5a71a15852d3e63e536648ef3ef8af1ef","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Terunaga/protospace/pulls/8/commits","review_comments_url":"https://api.github.com/repos/Terunaga/protospace/pulls/8/comments","review_comment_url":"https://api.github.com/repos/Terunaga/protospace/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Terunaga/protospace/issues/8/comments","statuses_url":"https://api.github.com/repos/Terunaga/protospace/statuses/0ffb138d26c49c1a0de3b8448c21560ab66f755a","head":{"label":"Terunaga:devise_related_branch","ref":"devise_related_branch","sha":"0ffb138d26c49c1a0de3b8448c21560ab66f755a","user":{"login":"Terunaga","id":13899346,"avatar_url":"https://avatars.githubusercontent.com/u/13899346?v=3","gravatar_id":"","url":"https://api.github.com/users/Terunaga","html_url":"https://github.com/Terunaga","followers_url":"https://api.github.com/users/Terunaga/followers","following_url":"https://api.github.com/users/Terunaga/following{/other_user}","gists_url":"https://api.github.com/users/Terunaga/gists{/gist_id}","starred_url":"https://api.github.com/users/Terunaga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Terunaga/subscriptions","organizations_url":"https://api.github.com/users/Terunaga/orgs","repos_url":"https://api.github.com/users/Terunaga/repos","events_url":"https://api.github.com/users/Terunaga/events{/privacy}","received_events_url":"https://api.github.com/users/Terunaga/received_events","type":"User","site_admin":false},"repo":{"id":44677169,"name":"protospace","full_name":"Terunaga/protospace","owner":{"login":"Terunaga","id":13899346,"avatar_url":"https://avatars.githubusercontent.com/u/13899346?v=3","gravatar_id":"","url":"https://api.github.com/users/Terunaga","html_url":"https://github.com/Terunaga","followers_url":"https://api.github.com/users/Terunaga/followers","following_url":"https://api.github.com/users/Terunaga/following{/other_user}","gists_url":"https://api.github.com/users/Terunaga/gists{/gist_id}","starred_url":"https://api.github.com/users/Terunaga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Terunaga/subscriptions","organizations_url":"https://api.github.com/users/Terunaga/orgs","repos_url":"https://api.github.com/users/Terunaga/repos","events_url":"https://api.github.com/users/Terunaga/events{/privacy}","received_events_url":"https://api.github.com/users/Terunaga/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Terunaga/protospace","description":"","fork":false,"url":"https://api.github.com/repos/Terunaga/protospace","forks_url":"https://api.github.com/repos/Terunaga/protospace/forks","keys_url":"https://api.github.com/repos/Terunaga/protospace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Terunaga/protospace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Terunaga/protospace/teams","hooks_url":"https://api.github.com/repos/Terunaga/protospace/hooks","issue_events_url":"https://api.github.com/repos/Terunaga/protospace/issues/events{/number}","events_url":"https://api.github.com/repos/Terunaga/protospace/events","assignees_url":"https://api.github.com/repos/Terunaga/protospace/assignees{/user}","branches_url":"https://api.github.com/repos/Terunaga/protospace/branches{/branch}","tags_url":"https://api.github.com/repos/Terunaga/protospace/tags","blobs_url":"https://api.github.com/repos/Terunaga/protospace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Terunaga/protospace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Terunaga/protospace/git/refs{/sha}","trees_url":"https://api.github.com/repos/Terunaga/protospace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Terunaga/protospace/statuses/{sha}","languages_url":"https://api.github.com/repos/Terunaga/protospace/languages","stargazers_url":"https://api.github.com/repos/Terunaga/protospace/stargazers","contributors_url":"https://api.github.com/repos/Terunaga/protospace/contributors","subscribers_url":"https://api.github.com/repos/Terunaga/protospace/subscribers","subscription_url":"https://api.github.com/repos/Terunaga/protospace/subscription","commits_url":"https://api.github.com/repos/Terunaga/protospace/commits{/sha}","git_commits_url":"https://api.github.com/repos/Terunaga/protospace/git/commits{/sha}","comments_url":"https://api.github.com/repos/Terunaga/protospace/comments{/number}","issue_comment_url":"https://api.github.com/repos/Terunaga/protospace/issues/comments{/number}","contents_url":"https://api.github.com/repos/Terunaga/protospace/contents/{+path}","compare_url":"https://api.github.com/repos/Terunaga/protospace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Terunaga/protospace/merges","archive_url":"https://api.github.com/repos/Terunaga/protospace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Terunaga/protospace/downloads","issues_url":"https://api.github.com/repos/Terunaga/protospace/issues{/number}","pulls_url":"https://api.github.com/repos/Terunaga/protospace/pulls{/number}","milestones_url":"https://api.github.com/repos/Terunaga/protospace/milestones{/number}","notifications_url":"https://api.github.com/repos/Terunaga/protospace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Terunaga/protospace/labels{/name}","releases_url":"https://api.github.com/repos/Terunaga/protospace/releases{/id}","created_at":"2015-10-21T13:12:39Z","updated_at":"2015-10-26T10:06:35Z","pushed_at":"2015-10-31T07:15:40Z","git_url":"git://github.com/Terunaga/protospace.git","ssh_url":"git@github.com:Terunaga/protospace.git","clone_url":"https://github.com/Terunaga/protospace.git","svn_url":"https://github.com/Terunaga/protospace","homepage":"","size":740,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Terunaga:master","ref":"master","sha":"b793b8973b52269f837d0f26607a7c6d0b5ceb8c","user":{"login":"Terunaga","id":13899346,"avatar_url":"https://avatars.githubusercontent.com/u/13899346?v=3","gravatar_id":"","url":"https://api.github.com/users/Terunaga","html_url":"https://github.com/Terunaga","followers_url":"https://api.github.com/users/Terunaga/followers","following_url":"https://api.github.com/users/Terunaga/following{/other_user}","gists_url":"https://api.github.com/users/Terunaga/gists{/gist_id}","starred_url":"https://api.github.com/users/Terunaga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Terunaga/subscriptions","organizations_url":"https://api.github.com/users/Terunaga/orgs","repos_url":"https://api.github.com/users/Terunaga/repos","events_url":"https://api.github.com/users/Terunaga/events{/privacy}","received_events_url":"https://api.github.com/users/Terunaga/received_events","type":"User","site_admin":false},"repo":{"id":44677169,"name":"protospace","full_name":"Terunaga/protospace","owner":{"login":"Terunaga","id":13899346,"avatar_url":"https://avatars.githubusercontent.com/u/13899346?v=3","gravatar_id":"","url":"https://api.github.com/users/Terunaga","html_url":"https://github.com/Terunaga","followers_url":"https://api.github.com/users/Terunaga/followers","following_url":"https://api.github.com/users/Terunaga/following{/other_user}","gists_url":"https://api.github.com/users/Terunaga/gists{/gist_id}","starred_url":"https://api.github.com/users/Terunaga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Terunaga/subscriptions","organizations_url":"https://api.github.com/users/Terunaga/orgs","repos_url":"https://api.github.com/users/Terunaga/repos","events_url":"https://api.github.com/users/Terunaga/events{/privacy}","received_events_url":"https://api.github.com/users/Terunaga/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Terunaga/protospace","description":"","fork":false,"url":"https://api.github.com/repos/Terunaga/protospace","forks_url":"https://api.github.com/repos/Terunaga/protospace/forks","keys_url":"https://api.github.com/repos/Terunaga/protospace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Terunaga/protospace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Terunaga/protospace/teams","hooks_url":"https://api.github.com/repos/Terunaga/protospace/hooks","issue_events_url":"https://api.github.com/repos/Terunaga/protospace/issues/events{/number}","events_url":"https://api.github.com/repos/Terunaga/protospace/events","assignees_url":"https://api.github.com/repos/Terunaga/protospace/assignees{/user}","branches_url":"https://api.github.com/repos/Terunaga/protospace/branches{/branch}","tags_url":"https://api.github.com/repos/Terunaga/protospace/tags","blobs_url":"https://api.github.com/repos/Terunaga/protospace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Terunaga/protospace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Terunaga/protospace/git/refs{/sha}","trees_url":"https://api.github.com/repos/Terunaga/protospace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Terunaga/protospace/statuses/{sha}","languages_url":"https://api.github.com/repos/Terunaga/protospace/languages","stargazers_url":"https://api.github.com/repos/Terunaga/protospace/stargazers","contributors_url":"https://api.github.com/repos/Terunaga/protospace/contributors","subscribers_url":"https://api.github.com/repos/Terunaga/protospace/subscribers","subscription_url":"https://api.github.com/repos/Terunaga/protospace/subscription","commits_url":"https://api.github.com/repos/Terunaga/protospace/commits{/sha}","git_commits_url":"https://api.github.com/repos/Terunaga/protospace/git/commits{/sha}","comments_url":"https://api.github.com/repos/Terunaga/protospace/comments{/number}","issue_comment_url":"https://api.github.com/repos/Terunaga/protospace/issues/comments{/number}","contents_url":"https://api.github.com/repos/Terunaga/protospace/contents/{+path}","compare_url":"https://api.github.com/repos/Terunaga/protospace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Terunaga/protospace/merges","archive_url":"https://api.github.com/repos/Terunaga/protospace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Terunaga/protospace/downloads","issues_url":"https://api.github.com/repos/Terunaga/protospace/issues{/number}","pulls_url":"https://api.github.com/repos/Terunaga/protospace/pulls{/number}","milestones_url":"https://api.github.com/repos/Terunaga/protospace/milestones{/number}","notifications_url":"https://api.github.com/repos/Terunaga/protospace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Terunaga/protospace/labels{/name}","releases_url":"https://api.github.com/repos/Terunaga/protospace/releases{/id}","created_at":"2015-10-21T13:12:39Z","updated_at":"2015-10-26T10:06:35Z","pushed_at":"2015-10-31T07:15:40Z","git_url":"git://github.com/Terunaga/protospace.git","ssh_url":"git@github.com:Terunaga/protospace.git","clone_url":"https://github.com/Terunaga/protospace.git","svn_url":"https://github.com/Terunaga/protospace","homepage":"","size":740,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Terunaga/protospace/pulls/8"},"html":{"href":"https://github.com/Terunaga/protospace/pull/8"},"issue":{"href":"https://api.github.com/repos/Terunaga/protospace/issues/8"},"comments":{"href":"https://api.github.com/repos/Terunaga/protospace/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/Terunaga/protospace/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/Terunaga/protospace/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Terunaga/protospace/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/Terunaga/protospace/statuses/0ffb138d26c49c1a0de3b8448c21560ab66f755a"}}}}