{"action":"created","comment":{"url":"https://api.github.com/repos/admande/sleeptracker/pulls/comments/51301665","id":51301665,"diff_hunk":"@@ -1,18 +1,39 @@\n-.row\n-  = \"Date: #{l sleeplog.date}\"\n-  = \"Hours #{sleeplog.hours}\"\n-  - unless sleeplog.quality.blank?\n-    = \"Quality: #{sleeplog.quality}\"\n-  - unless sleeplog.notes.blank?\n-    = \"Notes: #{sleeplog.notes}\"\n-  - if sleeplog.in_bed_time\n-    = \"Went to bed at #{l sleeplog.in_bed_time}\"\n-  - if sleeplog.fall_asleep_time\n-    = \"Fell asleep at #{l sleeplog.fall_asleep_time}\"\n-  - if sleeplog.wake_up_time\n-    = \"Woke up at #{l sleeplog.wake_up_time}\"\n-  - if sleeplog.sleeping_pill\n-    = sleeplog.sleeping_pill\n-  - if Diary.where(user: current_user, date: sleeplog.date).present?\n-    - Diary.where(user: current_user, date: sleeplog.date).each_with_index do |diary, index|\n-      %p= link_to \"Diary sentiment: #{(diary.sentiment * 100).round}%\", diary_path(diary)\n+.single_sleeplog\n+  %table.sleeplog_table\n+    %tr\n+      %th= \"#{sleeplog.hours} HOURS\"\n+      %th\n+      %th \n+      %th= \"#{l sleeplog.date}\"\n+    %tr\n+      %th WENT TO BED\n+      %th FELL ASLEEP\n+      %th WOKE UP\n+      %th SLEEPING PILL\n+    %tr\n+    - if sleeplog.in_bed_time\n+      %td= \"#{l sleeplog.in_bed_time}\"\n+    - else\n+      %td --:--\n+    - if sleeplog.fall_asleep_time\n+      %td= \"#{l sleeplog.fall_asleep_time}\"\n+    - else\n+      %td --:--\n+    - if sleeplog.wake_up_time\n+      %td= \"#{l sleeplog.wake_up_time}\"\n+    - else\n+      %td --:--\n+    - if sleeplog.sleeping_pill == true\n+      %td YES\n+    - else\n+      %td NO\n+\n+\n+  -# - unless sleeplog.quality.blank?\n+  -#   = \"Quality: #{sleeplog.quality}\"\n+  -# - unless sleeplog.notes.blank?\n+  -#   = \"Notes: #{sleeplog.notes}\"\n+  -#\n+  -# - if Diary.where(user: current_user, date: sleeplog.date).present?\n+  -#   - Diary.where(user: current_user, date: sleeplog.date).each_with_index do |diary, index|\n+  -#     %p= link_to \"Diary sentiment: #{(diary.sentiment * 100).round}%\", diary_path(diary)","path":"app/views/sleeplogs/_sleeplog.html.haml","position":57,"original_position":57,"commit_id":"ef48dbeb2acfd49baa0f789d0874705101ad8932","original_commit_id":"ef48dbeb2acfd49baa0f789d0874705101ad8932","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Line is too long. [92/80]","created_at":"2016-01-29T19:10:25Z","updated_at":"2016-01-29T19:10:25Z","html_url":"https://github.com/admande/sleeptracker/pull/32#discussion_r51301665","pull_request_url":"https://api.github.com/repos/admande/sleeptracker/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/admande/sleeptracker/pulls/comments/51301665"},"html":{"href":"https://github.com/admande/sleeptracker/pull/32#discussion_r51301665"},"pull_request":{"href":"https://api.github.com/repos/admande/sleeptracker/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/admande/sleeptracker/pulls/32","id":57689104,"html_url":"https://github.com/admande/sleeptracker/pull/32","diff_url":"https://github.com/admande/sleeptracker/pull/32.diff","patch_url":"https://github.com/admande/sleeptracker/pull/32.patch","issue_url":"https://api.github.com/repos/admande/sleeptracker/issues/32","number":32,"state":"open","locked":false,"title":"Style time","user":{"login":"admande","id":14297220,"avatar_url":"https://avatars.githubusercontent.com/u/14297220?v=3","gravatar_id":"","url":"https://api.github.com/users/admande","html_url":"https://github.com/admande","followers_url":"https://api.github.com/users/admande/followers","following_url":"https://api.github.com/users/admande/following{/other_user}","gists_url":"https://api.github.com/users/admande/gists{/gist_id}","starred_url":"https://api.github.com/users/admande/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/admande/subscriptions","organizations_url":"https://api.github.com/users/admande/orgs","repos_url":"https://api.github.com/users/admande/repos","events_url":"https://api.github.com/users/admande/events{/privacy}","received_events_url":"https://api.github.com/users/admande/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-29T19:09:56Z","updated_at":"2016-01-29T19:10:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"30d901204bfe779e588c441a1bf8d0da70a9480e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/admande/sleeptracker/pulls/32/commits","review_comments_url":"https://api.github.com/repos/admande/sleeptracker/pulls/32/comments","review_comment_url":"https://api.github.com/repos/admande/sleeptracker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/admande/sleeptracker/issues/32/comments","statuses_url":"https://api.github.com/repos/admande/sleeptracker/statuses/ef48dbeb2acfd49baa0f789d0874705101ad8932","head":{"label":"admande:styleTime","ref":"styleTime","sha":"ef48dbeb2acfd49baa0f789d0874705101ad8932","user":{"login":"admande","id":14297220,"avatar_url":"https://avatars.githubusercontent.com/u/14297220?v=3","gravatar_id":"","url":"https://api.github.com/users/admande","html_url":"https://github.com/admande","followers_url":"https://api.github.com/users/admande/followers","following_url":"https://api.github.com/users/admande/following{/other_user}","gists_url":"https://api.github.com/users/admande/gists{/gist_id}","starred_url":"https://api.github.com/users/admande/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/admande/subscriptions","organizations_url":"https://api.github.com/users/admande/orgs","repos_url":"https://api.github.com/users/admande/repos","events_url":"https://api.github.com/users/admande/events{/privacy}","received_events_url":"https://api.github.com/users/admande/received_events","type":"User","site_admin":false},"repo":{"id":49395183,"name":"sleeptracker","full_name":"admande/sleeptracker","owner":{"login":"admande","id":14297220,"avatar_url":"https://avatars.githubusercontent.com/u/14297220?v=3","gravatar_id":"","url":"https://api.github.com/users/admande","html_url":"https://github.com/admande","followers_url":"https://api.github.com/users/admande/followers","following_url":"https://api.github.com/users/admande/following{/other_user}","gists_url":"https://api.github.com/users/admande/gists{/gist_id}","starred_url":"https://api.github.com/users/admande/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/admande/subscriptions","organizations_url":"https://api.github.com/users/admande/orgs","repos_url":"https://api.github.com/users/admande/repos","events_url":"https://api.github.com/users/admande/events{/privacy}","received_events_url":"https://api.github.com/users/admande/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/admande/sleeptracker","description":null,"fork":false,"url":"https://api.github.com/repos/admande/sleeptracker","forks_url":"https://api.github.com/repos/admande/sleeptracker/forks","keys_url":"https://api.github.com/repos/admande/sleeptracker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/admande/sleeptracker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/admande/sleeptracker/teams","hooks_url":"https://api.github.com/repos/admande/sleeptracker/hooks","issue_events_url":"https://api.github.com/repos/admande/sleeptracker/issues/events{/number}","events_url":"https://api.github.com/repos/admande/sleeptracker/events","assignees_url":"https://api.github.com/repos/admande/sleeptracker/assignees{/user}","branches_url":"https://api.github.com/repos/admande/sleeptracker/branches{/branch}","tags_url":"https://api.github.com/repos/admande/sleeptracker/tags","blobs_url":"https://api.github.com/repos/admande/sleeptracker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/admande/sleeptracker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/admande/sleeptracker/git/refs{/sha}","trees_url":"https://api.github.com/repos/admande/sleeptracker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/admande/sleeptracker/statuses/{sha}","languages_url":"https://api.github.com/repos/admande/sleeptracker/languages","stargazers_url":"https://api.github.com/repos/admande/sleeptracker/stargazers","contributors_url":"https://api.github.com/repos/admande/sleeptracker/contributors","subscribers_url":"https://api.github.com/repos/admande/sleeptracker/subscribers","subscription_url":"https://api.github.com/repos/admande/sleeptracker/subscription","commits_url":"https://api.github.com/repos/admande/sleeptracker/commits{/sha}","git_commits_url":"https://api.github.com/repos/admande/sleeptracker/git/commits{/sha}","comments_url":"https://api.github.com/repos/admande/sleeptracker/comments{/number}","issue_comment_url":"https://api.github.com/repos/admande/sleeptracker/issues/comments{/number}","contents_url":"https://api.github.com/repos/admande/sleeptracker/contents/{+path}","compare_url":"https://api.github.com/repos/admande/sleeptracker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/admande/sleeptracker/merges","archive_url":"https://api.github.com/repos/admande/sleeptracker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/admande/sleeptracker/downloads","issues_url":"https://api.github.com/repos/admande/sleeptracker/issues{/number}","pulls_url":"https://api.github.com/repos/admande/sleeptracker/pulls{/number}","milestones_url":"https://api.github.com/repos/admande/sleeptracker/milestones{/number}","notifications_url":"https://api.github.com/repos/admande/sleeptracker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/admande/sleeptracker/labels{/name}","releases_url":"https://api.github.com/repos/admande/sleeptracker/releases{/id}","deployments_url":"https://api.github.com/repos/admande/sleeptracker/deployments","created_at":"2016-01-11T01:48:54Z","updated_at":"2016-01-21T22:16:16Z","pushed_at":"2016-01-29T19:09:57Z","git_url":"git://github.com/admande/sleeptracker.git","ssh_url":"git@github.com:admande/sleeptracker.git","clone_url":"https://github.com/admande/sleeptracker.git","svn_url":"https://github.com/admande/sleeptracker","homepage":null,"size":3200,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"admande:master","ref":"master","sha":"86c9960efaa39e024acf950eb0e0cc04bfcbc56a","user":{"login":"admande","id":14297220,"avatar_url":"https://avatars.githubusercontent.com/u/14297220?v=3","gravatar_id":"","url":"https://api.github.com/users/admande","html_url":"https://github.com/admande","followers_url":"https://api.github.com/users/admande/followers","following_url":"https://api.github.com/users/admande/following{/other_user}","gists_url":"https://api.github.com/users/admande/gists{/gist_id}","starred_url":"https://api.github.com/users/admande/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/admande/subscriptions","organizations_url":"https://api.github.com/users/admande/orgs","repos_url":"https://api.github.com/users/admande/repos","events_url":"https://api.github.com/users/admande/events{/privacy}","received_events_url":"https://api.github.com/users/admande/received_events","type":"User","site_admin":false},"repo":{"id":49395183,"name":"sleeptracker","full_name":"admande/sleeptracker","owner":{"login":"admande","id":14297220,"avatar_url":"https://avatars.githubusercontent.com/u/14297220?v=3","gravatar_id":"","url":"https://api.github.com/users/admande","html_url":"https://github.com/admande","followers_url":"https://api.github.com/users/admande/followers","following_url":"https://api.github.com/users/admande/following{/other_user}","gists_url":"https://api.github.com/users/admande/gists{/gist_id}","starred_url":"https://api.github.com/users/admande/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/admande/subscriptions","organizations_url":"https://api.github.com/users/admande/orgs","repos_url":"https://api.github.com/users/admande/repos","events_url":"https://api.github.com/users/admande/events{/privacy}","received_events_url":"https://api.github.com/users/admande/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/admande/sleeptracker","description":null,"fork":false,"url":"https://api.github.com/repos/admande/sleeptracker","forks_url":"https://api.github.com/repos/admande/sleeptracker/forks","keys_url":"https://api.github.com/repos/admande/sleeptracker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/admande/sleeptracker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/admande/sleeptracker/teams","hooks_url":"https://api.github.com/repos/admande/sleeptracker/hooks","issue_events_url":"https://api.github.com/repos/admande/sleeptracker/issues/events{/number}","events_url":"https://api.github.com/repos/admande/sleeptracker/events","assignees_url":"https://api.github.com/repos/admande/sleeptracker/assignees{/user}","branches_url":"https://api.github.com/repos/admande/sleeptracker/branches{/branch}","tags_url":"https://api.github.com/repos/admande/sleeptracker/tags","blobs_url":"https://api.github.com/repos/admande/sleeptracker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/admande/sleeptracker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/admande/sleeptracker/git/refs{/sha}","trees_url":"https://api.github.com/repos/admande/sleeptracker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/admande/sleeptracker/statuses/{sha}","languages_url":"https://api.github.com/repos/admande/sleeptracker/languages","stargazers_url":"https://api.github.com/repos/admande/sleeptracker/stargazers","contributors_url":"https://api.github.com/repos/admande/sleeptracker/contributors","subscribers_url":"https://api.github.com/repos/admande/sleeptracker/subscribers","subscription_url":"https://api.github.com/repos/admande/sleeptracker/subscription","commits_url":"https://api.github.com/repos/admande/sleeptracker/commits{/sha}","git_commits_url":"https://api.github.com/repos/admande/sleeptracker/git/commits{/sha}","comments_url":"https://api.github.com/repos/admande/sleeptracker/comments{/number}","issue_comment_url":"https://api.github.com/repos/admande/sleeptracker/issues/comments{/number}","contents_url":"https://api.github.com/repos/admande/sleeptracker/contents/{+path}","compare_url":"https://api.github.com/repos/admande/sleeptracker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/admande/sleeptracker/merges","archive_url":"https://api.github.com/repos/admande/sleeptracker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/admande/sleeptracker/downloads","issues_url":"https://api.github.com/repos/admande/sleeptracker/issues{/number}","pulls_url":"https://api.github.com/repos/admande/sleeptracker/pulls{/number}","milestones_url":"https://api.github.com/repos/admande/sleeptracker/milestones{/number}","notifications_url":"https://api.github.com/repos/admande/sleeptracker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/admande/sleeptracker/labels{/name}","releases_url":"https://api.github.com/repos/admande/sleeptracker/releases{/id}","deployments_url":"https://api.github.com/repos/admande/sleeptracker/deployments","created_at":"2016-01-11T01:48:54Z","updated_at":"2016-01-21T22:16:16Z","pushed_at":"2016-01-29T19:09:57Z","git_url":"git://github.com/admande/sleeptracker.git","ssh_url":"git@github.com:admande/sleeptracker.git","clone_url":"https://github.com/admande/sleeptracker.git","svn_url":"https://github.com/admande/sleeptracker","homepage":null,"size":3200,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/admande/sleeptracker/pulls/32"},"html":{"href":"https://github.com/admande/sleeptracker/pull/32"},"issue":{"href":"https://api.github.com/repos/admande/sleeptracker/issues/32"},"comments":{"href":"https://api.github.com/repos/admande/sleeptracker/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/admande/sleeptracker/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/admande/sleeptracker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/admande/sleeptracker/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/admande/sleeptracker/statuses/ef48dbeb2acfd49baa0f789d0874705101ad8932"}}}}