{"action":"created","comment":{"url":"https://api.github.com/repos/andela/workdey/pulls/comments/85846270","pull_request_review_id":6527194,"id":85846270,"diff_hunk":"@@ -19,25 +19,42 @@\n \n       <% elsif @notifications.present? && current_user.user_type == \"tasker\" %>\n         <div class=\"notification-feed col s8\">\n+\n           <% @notifications.each do |object| %>\n             <div class=\"viewed feed\">\n               <img src=\"<%= object.sender.image_url %>\" alt=\"\" />\n               <p class=\"title\"> <%= object.message %> </p>\n-              <a href=\"#modal1\" onclick=\"modal_object(<%= object.sender.to_json %>, <%= object.id %>)\" class=\"btn info_btn modal-trigger\"> view information</a>\n+              <%if object.notifiable_type == 'Quote'%>\n+              <a href=\"#quote_modal\" onclick=\"quote_object(<%= object.sender.to_json %>,<%=object.notifiable.to_json%>, <%= object.id %>)\" class=\"btn info_btn modal-trigger\"> view quote</a>\n+\n+              <%else%>\n+\n+              <%#= render partial: \"show_information\" %>","path":"app/views/notifications/index.html.erb","position":15,"original_position":15,"commit_id":"6805db82c7f8f7255e1bd81d0aecb2180598ced5","original_commit_id":"6805db82c7f8f7255e1bd81d0aecb2180598ced5","user":{"login":"andela-fadebayo","id":9654451,"avatar_url":"https://avatars.githubusercontent.com/u/9654451?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-fadebayo","html_url":"https://github.com/andela-fadebayo","followers_url":"https://api.github.com/users/andela-fadebayo/followers","following_url":"https://api.github.com/users/andela-fadebayo/following{/other_user}","gists_url":"https://api.github.com/users/andela-fadebayo/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-fadebayo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-fadebayo/subscriptions","organizations_url":"https://api.github.com/users/andela-fadebayo/orgs","repos_url":"https://api.github.com/users/andela-fadebayo/repos","events_url":"https://api.github.com/users/andela-fadebayo/events{/privacy}","received_events_url":"https://api.github.com/users/andela-fadebayo/received_events","type":"User","site_admin":false},"body":"What is this else block meant to do? \r\nRemove comment.","created_at":"2016-10-31T22:26:46Z","updated_at":"2016-10-31T22:44:14Z","html_url":"https://github.com/andela/workdey/pull/118#discussion_r85846270","pull_request_url":"https://api.github.com/repos/andela/workdey/pulls/118","_links":{"self":{"href":"https://api.github.com/repos/andela/workdey/pulls/comments/85846270"},"html":{"href":"https://github.com/andela/workdey/pull/118#discussion_r85846270"},"pull_request":{"href":"https://api.github.com/repos/andela/workdey/pulls/118"}}},"pull_request":{"url":"https://api.github.com/repos/andela/workdey/pulls/118","id":91579538,"html_url":"https://github.com/andela/workdey/pull/118","diff_url":"https://github.com/andela/workdey/pull/118.diff","patch_url":"https://github.com/andela/workdey/pull/118.patch","issue_url":"https://api.github.com/repos/andela/workdey/issues/118","number":118,"state":"open","locked":false,"title":"#[133092183] Tasker should be able to accept or reject a quote","user":{"login":"andela-vkironde","id":22389591,"avatar_url":"https://avatars.githubusercontent.com/u/22389591?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-vkironde","html_url":"https://github.com/andela-vkironde","followers_url":"https://api.github.com/users/andela-vkironde/followers","following_url":"https://api.github.com/users/andela-vkironde/following{/other_user}","gists_url":"https://api.github.com/users/andela-vkironde/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-vkironde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-vkironde/subscriptions","organizations_url":"https://api.github.com/users/andela-vkironde/orgs","repos_url":"https://api.github.com/users/andela-vkironde/repos","events_url":"https://api.github.com/users/andela-vkironde/events{/privacy}","received_events_url":"https://api.github.com/users/andela-vkironde/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nCreate a table ```quotes```\r\nCreate a model for the table ```quotes```\r\nCreate a quote notification.\r\nCreate a view to capture Tasker response to a Quote\r\nCreate a view to show artisan information if the quote is accepted.\r\n\r\n#### What are the relevant pivotal tracker stories?\r\n133092183\r\n\r\n#### Screenshots (if appropriate)\r\n<img width=\"1916\" alt=\"1\" src=\"https://cloud.githubusercontent.com/assets/22389591/19849723/cde8da9a-9f65-11e6-8ebe-f943fa221a71.png\">\r\n<img width=\"1910\" alt=\"2\" src=\"https://cloud.githubusercontent.com/assets/22389591/19849722/cde86e20-9f65-11e6-8ec3-e724f4b4c921.png\">\r\n<img width=\"1920\" alt=\"3\" src=\"https://cloud.githubusercontent.com/assets/22389591/19849724/cdef1310-9f65-11e6-8125-c25e17827977.png\">\r\n","created_at":"2016-10-31T09:39:24Z","updated_at":"2016-10-31T22:44:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8d03c2346e7b291d7edef18061a5a0c007d53749","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela/workdey/pulls/118/commits","review_comments_url":"https://api.github.com/repos/andela/workdey/pulls/118/comments","review_comment_url":"https://api.github.com/repos/andela/workdey/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/workdey/issues/118/comments","statuses_url":"https://api.github.com/repos/andela/workdey/statuses/6805db82c7f8f7255e1bd81d0aecb2180598ced5","head":{"label":"andela:ft-tasker-quote-response-133092183","ref":"ft-tasker-quote-response-133092183","sha":"6805db82c7f8f7255e1bd81d0aecb2180598ced5","user":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":42399283,"name":"workdey","full_name":"andela/workdey","owner":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/workdey","description":null,"fork":false,"url":"https://api.github.com/repos/andela/workdey","forks_url":"https://api.github.com/repos/andela/workdey/forks","keys_url":"https://api.github.com/repos/andela/workdey/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/workdey/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/workdey/teams","hooks_url":"https://api.github.com/repos/andela/workdey/hooks","issue_events_url":"https://api.github.com/repos/andela/workdey/issues/events{/number}","events_url":"https://api.github.com/repos/andela/workdey/events","assignees_url":"https://api.github.com/repos/andela/workdey/assignees{/user}","branches_url":"https://api.github.com/repos/andela/workdey/branches{/branch}","tags_url":"https://api.github.com/repos/andela/workdey/tags","blobs_url":"https://api.github.com/repos/andela/workdey/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/workdey/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/workdey/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/workdey/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/workdey/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/workdey/languages","stargazers_url":"https://api.github.com/repos/andela/workdey/stargazers","contributors_url":"https://api.github.com/repos/andela/workdey/contributors","subscribers_url":"https://api.github.com/repos/andela/workdey/subscribers","subscription_url":"https://api.github.com/repos/andela/workdey/subscription","commits_url":"https://api.github.com/repos/andela/workdey/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/workdey/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/workdey/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/workdey/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/workdey/contents/{+path}","compare_url":"https://api.github.com/repos/andela/workdey/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/workdey/merges","archive_url":"https://api.github.com/repos/andela/workdey/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/workdey/downloads","issues_url":"https://api.github.com/repos/andela/workdey/issues{/number}","pulls_url":"https://api.github.com/repos/andela/workdey/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/workdey/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/workdey/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/workdey/labels{/name}","releases_url":"https://api.github.com/repos/andela/workdey/releases{/id}","deployments_url":"https://api.github.com/repos/andela/workdey/deployments","created_at":"2015-09-13T14:40:39Z","updated_at":"2016-10-27T10:45:18Z","pushed_at":"2016-10-31T21:16:17Z","git_url":"git://github.com/andela/workdey.git","ssh_url":"git@github.com:andela/workdey.git","clone_url":"https://github.com/andela/workdey.git","svn_url":"https://github.com/andela/workdey","homepage":"","size":6900,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":3,"default_branch":"master"}},"base":{"label":"andela:master","ref":"master","sha":"c569b4ecf90a1cc73606c4f2aacc24ee666e87c1","user":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":42399283,"name":"workdey","full_name":"andela/workdey","owner":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/workdey","description":null,"fork":false,"url":"https://api.github.com/repos/andela/workdey","forks_url":"https://api.github.com/repos/andela/workdey/forks","keys_url":"https://api.github.com/repos/andela/workdey/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/workdey/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/workdey/teams","hooks_url":"https://api.github.com/repos/andela/workdey/hooks","issue_events_url":"https://api.github.com/repos/andela/workdey/issues/events{/number}","events_url":"https://api.github.com/repos/andela/workdey/events","assignees_url":"https://api.github.com/repos/andela/workdey/assignees{/user}","branches_url":"https://api.github.com/repos/andela/workdey/branches{/branch}","tags_url":"https://api.github.com/repos/andela/workdey/tags","blobs_url":"https://api.github.com/repos/andela/workdey/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/workdey/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/workdey/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/workdey/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/workdey/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/workdey/languages","stargazers_url":"https://api.github.com/repos/andela/workdey/stargazers","contributors_url":"https://api.github.com/repos/andela/workdey/contributors","subscribers_url":"https://api.github.com/repos/andela/workdey/subscribers","subscription_url":"https://api.github.com/repos/andela/workdey/subscription","commits_url":"https://api.github.com/repos/andela/workdey/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/workdey/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/workdey/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/workdey/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/workdey/contents/{+path}","compare_url":"https://api.github.com/repos/andela/workdey/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/workdey/merges","archive_url":"https://api.github.com/repos/andela/workdey/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/workdey/downloads","issues_url":"https://api.github.com/repos/andela/workdey/issues{/number}","pulls_url":"https://api.github.com/repos/andela/workdey/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/workdey/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/workdey/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/workdey/labels{/name}","releases_url":"https://api.github.com/repos/andela/workdey/releases{/id}","deployments_url":"https://api.github.com/repos/andela/workdey/deployments","created_at":"2015-09-13T14:40:39Z","updated_at":"2016-10-27T10:45:18Z","pushed_at":"2016-10-31T21:16:17Z","git_url":"git://github.com/andela/workdey.git","ssh_url":"git@github.com:andela/workdey.git","clone_url":"https://github.com/andela/workdey.git","svn_url":"https://github.com/andela/workdey","homepage":"","size":6900,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/workdey/pulls/118"},"html":{"href":"https://github.com/andela/workdey/pull/118"},"issue":{"href":"https://api.github.com/repos/andela/workdey/issues/118"},"comments":{"href":"https://api.github.com/repos/andela/workdey/issues/118/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/workdey/pulls/118/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/workdey/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/workdey/pulls/118/commits"},"statuses":{"href":"https://api.github.com/repos/andela/workdey/statuses/6805db82c7f8f7255e1bd81d0aecb2180598ced5"}}}}
{"actor":{"display_login":"andela-fadebayo"}}