{"action":"created","comment":{"url":"https://api.github.com/repos/ezrashim/mycademy/pulls/comments/51081657","id":51081657,"diff_hunk":"@@ -1,21 +1,42 @@\n .container\n   .row\n-    .col.s12.center\n-      %h1= @lesson.title\n-      %fr-view= @lesson.content.html_safe\n+    .col.s12\n+      %h1.center= @lesson.title\n+      = @lesson.content.html_safe\n \n-      - if user_signed_in? && !@enrollment.nil? && @enrollment.leader?\n-        %col.s4= link_to 'Delete Lesson', course_lesson_path(@course, @lesson), method: :delete\n-        %col.s4= link_to 'Update Lesson', edit_course_lesson_path(@course, @lesson)\n-        %col.s4= link_to 'Create Question', new_question_path(lesson_id: @lesson.id)\n+      - if @enrollment.leader?\n+        .row.center\n+          %a.btn-floating.waves-effect.waves-light.teal#delete-lesson{ href: course_lesson_path(@course, @lesson), \"data-method\" => \"delete\" }\n+            %i.material-icons remove\n+          %a.btn-floating.waves-effect.waves-light.teal#edit-lesson{ href: edit_course_lesson_path(@course, @lesson) }\n+            %i.material-icons mode_edit\n \n-    .container\n-      .row.center\n-        .col.s12\n-        %h5 Assignments\n-        - @questions.each do |question|\n-          %ul\n-            %li= link_to question.question ,questions_path(lesson_id: @lesson.id)\n+    .section\n+      .container\n+        .row.center\n+          .col.s12\n+            %h5 Questions\n+            - @questions.each do |question|\n+              %ul.card-panel.hoverable\n+                .row.valign-wrapper\n+                  - if @enrollment.leader?\n+                    .col.s10.valign\n+                      %li= link_to question.question, question_answers_path(question)","path":"app/views/lessons/show.html.haml","position":38,"original_position":38,"commit_id":"481daf5aaf4325b88475f73eaf07a237ad142b66","original_commit_id":"481daf5aaf4325b88475f73eaf07a237ad142b66","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. [85/80]","created_at":"2016-01-28T05:31:21Z","updated_at":"2016-01-28T05:31:21Z","html_url":"https://github.com/ezrashim/mycademy/pull/37#discussion_r51081657","pull_request_url":"https://api.github.com/repos/ezrashim/mycademy/pulls/37","_links":{"self":{"href":"https://api.github.com/repos/ezrashim/mycademy/pulls/comments/51081657"},"html":{"href":"https://github.com/ezrashim/mycademy/pull/37#discussion_r51081657"},"pull_request":{"href":"https://api.github.com/repos/ezrashim/mycademy/pulls/37"}}},"pull_request":{"url":"https://api.github.com/repos/ezrashim/mycademy/pulls/37","id":57457224,"html_url":"https://github.com/ezrashim/mycademy/pull/37","diff_url":"https://github.com/ezrashim/mycademy/pull/37.diff","patch_url":"https://github.com/ezrashim/mycademy/pull/37.patch","issue_url":"https://api.github.com/repos/ezrashim/mycademy/issues/37","number":37,"state":"open","locked":false,"title":"Answer index spec","user":{"login":"ezrashim","id":12078842,"avatar_url":"https://avatars.githubusercontent.com/u/12078842?v=3","gravatar_id":"","url":"https://api.github.com/users/ezrashim","html_url":"https://github.com/ezrashim","followers_url":"https://api.github.com/users/ezrashim/followers","following_url":"https://api.github.com/users/ezrashim/following{/other_user}","gists_url":"https://api.github.com/users/ezrashim/gists{/gist_id}","starred_url":"https://api.github.com/users/ezrashim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezrashim/subscriptions","organizations_url":"https://api.github.com/users/ezrashim/orgs","repos_url":"https://api.github.com/users/ezrashim/repos","events_url":"https://api.github.com/users/ezrashim/events{/privacy}","received_events_url":"https://api.github.com/users/ezrashim/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-28T05:23:58Z","updated_at":"2016-01-28T05:31:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5df174849826f5d991eb692122d30424097dac26","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ezrashim/mycademy/pulls/37/commits","review_comments_url":"https://api.github.com/repos/ezrashim/mycademy/pulls/37/comments","review_comment_url":"https://api.github.com/repos/ezrashim/mycademy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ezrashim/mycademy/issues/37/comments","statuses_url":"https://api.github.com/repos/ezrashim/mycademy/statuses/481daf5aaf4325b88475f73eaf07a237ad142b66","head":{"label":"ezrashim:answer_index_spec","ref":"answer_index_spec","sha":"481daf5aaf4325b88475f73eaf07a237ad142b66","user":{"login":"ezrashim","id":12078842,"avatar_url":"https://avatars.githubusercontent.com/u/12078842?v=3","gravatar_id":"","url":"https://api.github.com/users/ezrashim","html_url":"https://github.com/ezrashim","followers_url":"https://api.github.com/users/ezrashim/followers","following_url":"https://api.github.com/users/ezrashim/following{/other_user}","gists_url":"https://api.github.com/users/ezrashim/gists{/gist_id}","starred_url":"https://api.github.com/users/ezrashim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezrashim/subscriptions","organizations_url":"https://api.github.com/users/ezrashim/orgs","repos_url":"https://api.github.com/users/ezrashim/repos","events_url":"https://api.github.com/users/ezrashim/events{/privacy}","received_events_url":"https://api.github.com/users/ezrashim/received_events","type":"User","site_admin":false},"repo":{"id":49347651,"name":"mycademy","full_name":"ezrashim/mycademy","owner":{"login":"ezrashim","id":12078842,"avatar_url":"https://avatars.githubusercontent.com/u/12078842?v=3","gravatar_id":"","url":"https://api.github.com/users/ezrashim","html_url":"https://github.com/ezrashim","followers_url":"https://api.github.com/users/ezrashim/followers","following_url":"https://api.github.com/users/ezrashim/following{/other_user}","gists_url":"https://api.github.com/users/ezrashim/gists{/gist_id}","starred_url":"https://api.github.com/users/ezrashim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezrashim/subscriptions","organizations_url":"https://api.github.com/users/ezrashim/orgs","repos_url":"https://api.github.com/users/ezrashim/repos","events_url":"https://api.github.com/users/ezrashim/events{/privacy}","received_events_url":"https://api.github.com/users/ezrashim/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ezrashim/mycademy","description":"Mycademy is a personal online teaching platform designed using Test Driven Development. ","fork":false,"url":"https://api.github.com/repos/ezrashim/mycademy","forks_url":"https://api.github.com/repos/ezrashim/mycademy/forks","keys_url":"https://api.github.com/repos/ezrashim/mycademy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ezrashim/mycademy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ezrashim/mycademy/teams","hooks_url":"https://api.github.com/repos/ezrashim/mycademy/hooks","issue_events_url":"https://api.github.com/repos/ezrashim/mycademy/issues/events{/number}","events_url":"https://api.github.com/repos/ezrashim/mycademy/events","assignees_url":"https://api.github.com/repos/ezrashim/mycademy/assignees{/user}","branches_url":"https://api.github.com/repos/ezrashim/mycademy/branches{/branch}","tags_url":"https://api.github.com/repos/ezrashim/mycademy/tags","blobs_url":"https://api.github.com/repos/ezrashim/mycademy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ezrashim/mycademy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ezrashim/mycademy/git/refs{/sha}","trees_url":"https://api.github.com/repos/ezrashim/mycademy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ezrashim/mycademy/statuses/{sha}","languages_url":"https://api.github.com/repos/ezrashim/mycademy/languages","stargazers_url":"https://api.github.com/repos/ezrashim/mycademy/stargazers","contributors_url":"https://api.github.com/repos/ezrashim/mycademy/contributors","subscribers_url":"https://api.github.com/repos/ezrashim/mycademy/subscribers","subscription_url":"https://api.github.com/repos/ezrashim/mycademy/subscription","commits_url":"https://api.github.com/repos/ezrashim/mycademy/commits{/sha}","git_commits_url":"https://api.github.com/repos/ezrashim/mycademy/git/commits{/sha}","comments_url":"https://api.github.com/repos/ezrashim/mycademy/comments{/number}","issue_comment_url":"https://api.github.com/repos/ezrashim/mycademy/issues/comments{/number}","contents_url":"https://api.github.com/repos/ezrashim/mycademy/contents/{+path}","compare_url":"https://api.github.com/repos/ezrashim/mycademy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ezrashim/mycademy/merges","archive_url":"https://api.github.com/repos/ezrashim/mycademy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ezrashim/mycademy/downloads","issues_url":"https://api.github.com/repos/ezrashim/mycademy/issues{/number}","pulls_url":"https://api.github.com/repos/ezrashim/mycademy/pulls{/number}","milestones_url":"https://api.github.com/repos/ezrashim/mycademy/milestones{/number}","notifications_url":"https://api.github.com/repos/ezrashim/mycademy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ezrashim/mycademy/labels{/name}","releases_url":"https://api.github.com/repos/ezrashim/mycademy/releases{/id}","deployments_url":"https://api.github.com/repos/ezrashim/mycademy/deployments","created_at":"2016-01-10T00:42:48Z","updated_at":"2016-01-27T21:16:44Z","pushed_at":"2016-01-28T05:30:55Z","git_url":"git://github.com/ezrashim/mycademy.git","ssh_url":"git@github.com:ezrashim/mycademy.git","clone_url":"https://github.com/ezrashim/mycademy.git","svn_url":"https://github.com/ezrashim/mycademy","homepage":"https://mycademy.herokuapp.com/","size":3292,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"ezrashim:master","ref":"master","sha":"581ef86e09de8b3816fee701023ae7315a2f4210","user":{"login":"ezrashim","id":12078842,"avatar_url":"https://avatars.githubusercontent.com/u/12078842?v=3","gravatar_id":"","url":"https://api.github.com/users/ezrashim","html_url":"https://github.com/ezrashim","followers_url":"https://api.github.com/users/ezrashim/followers","following_url":"https://api.github.com/users/ezrashim/following{/other_user}","gists_url":"https://api.github.com/users/ezrashim/gists{/gist_id}","starred_url":"https://api.github.com/users/ezrashim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezrashim/subscriptions","organizations_url":"https://api.github.com/users/ezrashim/orgs","repos_url":"https://api.github.com/users/ezrashim/repos","events_url":"https://api.github.com/users/ezrashim/events{/privacy}","received_events_url":"https://api.github.com/users/ezrashim/received_events","type":"User","site_admin":false},"repo":{"id":49347651,"name":"mycademy","full_name":"ezrashim/mycademy","owner":{"login":"ezrashim","id":12078842,"avatar_url":"https://avatars.githubusercontent.com/u/12078842?v=3","gravatar_id":"","url":"https://api.github.com/users/ezrashim","html_url":"https://github.com/ezrashim","followers_url":"https://api.github.com/users/ezrashim/followers","following_url":"https://api.github.com/users/ezrashim/following{/other_user}","gists_url":"https://api.github.com/users/ezrashim/gists{/gist_id}","starred_url":"https://api.github.com/users/ezrashim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezrashim/subscriptions","organizations_url":"https://api.github.com/users/ezrashim/orgs","repos_url":"https://api.github.com/users/ezrashim/repos","events_url":"https://api.github.com/users/ezrashim/events{/privacy}","received_events_url":"https://api.github.com/users/ezrashim/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ezrashim/mycademy","description":"Mycademy is a personal online teaching platform designed using Test Driven Development. ","fork":false,"url":"https://api.github.com/repos/ezrashim/mycademy","forks_url":"https://api.github.com/repos/ezrashim/mycademy/forks","keys_url":"https://api.github.com/repos/ezrashim/mycademy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ezrashim/mycademy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ezrashim/mycademy/teams","hooks_url":"https://api.github.com/repos/ezrashim/mycademy/hooks","issue_events_url":"https://api.github.com/repos/ezrashim/mycademy/issues/events{/number}","events_url":"https://api.github.com/repos/ezrashim/mycademy/events","assignees_url":"https://api.github.com/repos/ezrashim/mycademy/assignees{/user}","branches_url":"https://api.github.com/repos/ezrashim/mycademy/branches{/branch}","tags_url":"https://api.github.com/repos/ezrashim/mycademy/tags","blobs_url":"https://api.github.com/repos/ezrashim/mycademy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ezrashim/mycademy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ezrashim/mycademy/git/refs{/sha}","trees_url":"https://api.github.com/repos/ezrashim/mycademy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ezrashim/mycademy/statuses/{sha}","languages_url":"https://api.github.com/repos/ezrashim/mycademy/languages","stargazers_url":"https://api.github.com/repos/ezrashim/mycademy/stargazers","contributors_url":"https://api.github.com/repos/ezrashim/mycademy/contributors","subscribers_url":"https://api.github.com/repos/ezrashim/mycademy/subscribers","subscription_url":"https://api.github.com/repos/ezrashim/mycademy/subscription","commits_url":"https://api.github.com/repos/ezrashim/mycademy/commits{/sha}","git_commits_url":"https://api.github.com/repos/ezrashim/mycademy/git/commits{/sha}","comments_url":"https://api.github.com/repos/ezrashim/mycademy/comments{/number}","issue_comment_url":"https://api.github.com/repos/ezrashim/mycademy/issues/comments{/number}","contents_url":"https://api.github.com/repos/ezrashim/mycademy/contents/{+path}","compare_url":"https://api.github.com/repos/ezrashim/mycademy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ezrashim/mycademy/merges","archive_url":"https://api.github.com/repos/ezrashim/mycademy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ezrashim/mycademy/downloads","issues_url":"https://api.github.com/repos/ezrashim/mycademy/issues{/number}","pulls_url":"https://api.github.com/repos/ezrashim/mycademy/pulls{/number}","milestones_url":"https://api.github.com/repos/ezrashim/mycademy/milestones{/number}","notifications_url":"https://api.github.com/repos/ezrashim/mycademy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ezrashim/mycademy/labels{/name}","releases_url":"https://api.github.com/repos/ezrashim/mycademy/releases{/id}","deployments_url":"https://api.github.com/repos/ezrashim/mycademy/deployments","created_at":"2016-01-10T00:42:48Z","updated_at":"2016-01-27T21:16:44Z","pushed_at":"2016-01-28T05:30:55Z","git_url":"git://github.com/ezrashim/mycademy.git","ssh_url":"git@github.com:ezrashim/mycademy.git","clone_url":"https://github.com/ezrashim/mycademy.git","svn_url":"https://github.com/ezrashim/mycademy","homepage":"https://mycademy.herokuapp.com/","size":3292,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ezrashim/mycademy/pulls/37"},"html":{"href":"https://github.com/ezrashim/mycademy/pull/37"},"issue":{"href":"https://api.github.com/repos/ezrashim/mycademy/issues/37"},"comments":{"href":"https://api.github.com/repos/ezrashim/mycademy/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/ezrashim/mycademy/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/ezrashim/mycademy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ezrashim/mycademy/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/ezrashim/mycademy/statuses/481daf5aaf4325b88475f73eaf07a237ad142b66"}}}}