{"action":"created","comment":{"url":"https://api.github.com/repos/andela/wg-rogue-one/pulls/comments/193732119","pull_request_review_id":126762044,"id":193732119,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MzczMjExOQ==","diff_hunk":"@@ -45,5 +46,6 @@ def formfield(self, **kwargs):\n         Use our custom field\n         '''\n         defaults = {'form_class': Html5FormDateField}\n+\n         defaults.update(kwargs)\n         return super(Html5DateField, self).formfield(**defaults)","path":"wger/utils/fields.py","position":14,"original_position":14,"commit_id":"532eac565349f75d2bfcac720e58429bcf092b5b","original_commit_id":"532eac565349f75d2bfcac720e58429bcf092b5b","user":{"login":"peterwade153","id":32728156,"node_id":"MDQ6VXNlcjMyNzI4MTU2","avatar_url":"https://avatars0.githubusercontent.com/u/32728156?v=4","gravatar_id":"","url":"https://api.github.com/users/peterwade153","html_url":"https://github.com/peterwade153","followers_url":"https://api.github.com/users/peterwade153/followers","following_url":"https://api.github.com/users/peterwade153/following{/other_user}","gists_url":"https://api.github.com/users/peterwade153/gists{/gist_id}","starred_url":"https://api.github.com/users/peterwade153/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterwade153/subscriptions","organizations_url":"https://api.github.com/users/peterwade153/orgs","repos_url":"https://api.github.com/users/peterwade153/repos","events_url":"https://api.github.com/users/peterwade153/events{/privacy}","received_events_url":"https://api.github.com/users/peterwade153/received_events","type":"User","site_admin":false},"body":"these two fields are similar, maybe you should look at them\r\n","created_at":"2018-06-07T12:44:44Z","updated_at":"2018-06-07T12:44:44Z","html_url":"https://github.com/andela/wg-rogue-one/pull/13#discussion_r193732119","pull_request_url":"https://api.github.com/repos/andela/wg-rogue-one/pulls/13","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/andela/wg-rogue-one/pulls/comments/193732119"},"html":{"href":"https://github.com/andela/wg-rogue-one/pull/13#discussion_r193732119"},"pull_request":{"href":"https://api.github.com/repos/andela/wg-rogue-one/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/andela/wg-rogue-one/pulls/13","id":192989509,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyOTg5NTA5","html_url":"https://github.com/andela/wg-rogue-one/pull/13","diff_url":"https://github.com/andela/wg-rogue-one/pull/13.diff","patch_url":"https://github.com/andela/wg-rogue-one/pull/13.patch","issue_url":"https://api.github.com/repos/andela/wg-rogue-one/issues/13","number":13,"state":"open","locked":false,"title":"#157731630 Creates a get exercises on hover over image body part feature","user":{"login":"dondrzzy","id":25340897,"node_id":"MDQ6VXNlcjI1MzQwODk3","avatar_url":"https://avatars1.githubusercontent.com/u/25340897?v=4","gravatar_id":"","url":"https://api.github.com/users/dondrzzy","html_url":"https://github.com/dondrzzy","followers_url":"https://api.github.com/users/dondrzzy/followers","following_url":"https://api.github.com/users/dondrzzy/following{/other_user}","gists_url":"https://api.github.com/users/dondrzzy/gists{/gist_id}","starred_url":"https://api.github.com/users/dondrzzy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dondrzzy/subscriptions","organizations_url":"https://api.github.com/users/dondrzzy/orgs","repos_url":"https://api.github.com/users/dondrzzy/repos","events_url":"https://api.github.com/users/dondrzzy/events{/privacy}","received_events_url":"https://api.github.com/users/dondrzzy/received_events","type":"User","site_admin":false},"body":"### What does this PR do?\r\nThis PR creates a feature that enables users to hover over a body part in the image\r\nand display the exercises for that body part.\r\n\r\nAdd event handlers to `wger/exercises/templates/muscles/overview.html`\r\nto get the required target on mouse hover over image, and display the relevant body exercises\r\nAdd flip-front and flip-back button to enable users flip the image to the back side,\r\nin case you want to hover over the back muscles\r\nAdd default svg css to `wger/core/static/css/workout-manager.css` to hide the overlapping svg\r\nimages with the targeted ids and position the image over the background image.\r\nAdd a new file muscles.js with the muscles svg image variables to `wger/exercises/static/js/muscles.js`\r\n\r\n#### Description of Task to be completed?\r\nThe user should be able to move the mouse over a body part on the image and get exercises for that body part.\r\n\r\n#### How should this be manually tested?\r\n1: Clone the application and install the requirements in your virtual environment.\r\n2: Update the database settings in the `settings.py` file with your postgres user, password and database name.\r\n3: Run the application with `python manage.py runserver`.\r\n4: Register and login. \r\n5: Hover over `Exercises` in the navbar menu and select `Muscle overview`.\r\n6: Hover over the body parts in the image. Sample image shown below: \r\n<img width=\"1186\" alt=\"screen shot 2018-06-06 at 14 51 14\" src=\"https://user-images.githubusercontent.com/25340897/41036575-2c7d565e-6999-11e8-9e51-5a48338939a2.png\">\r\n\r\n7: Expected response: The application should display the exercises related to the muscle you hovered over.\r\n8: The application should also auto highlight the muscle name related to the muscle you hovered over. Sample response shown below.\r\n\r\n<img width=\"1152\" alt=\"screen shot 2018-06-06 at 14 47 17\" src=\"https://user-images.githubusercontent.com/25340897/41036393-91f254f4-6998-11e8-9f1a-b09df8b4d7dc.png\">\r\nThe exercises are displayed in the far right section.\r\n\r\n9: Click the `front` or `back` buttons to flip the image.\r\n\r\n#### Any background context you want to provide?\r\nThis feature was not available.\r\n\r\n#### What are the relevant pivotal tracker stories?\r\n#157731630\r\n","created_at":"2018-06-06T11:58:37Z","updated_at":"2018-06-07T12:44:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4734b5b49099e7b27d0d510d1b8473f3146948f5","assignee":null,"assignees":[],"requested_reviewers":[{"login":"hariclerry","id":12033494,"node_id":"MDQ6VXNlcjEyMDMzNDk0","avatar_url":"https://avatars3.githubusercontent.com/u/12033494?v=4","gravatar_id":"","url":"https://api.github.com/users/hariclerry","html_url":"https://github.com/hariclerry","followers_url":"https://api.github.com/users/hariclerry/followers","following_url":"https://api.github.com/users/hariclerry/following{/other_user}","gists_url":"https://api.github.com/users/hariclerry/gists{/gist_id}","starred_url":"https://api.github.com/users/hariclerry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hariclerry/subscriptions","organizations_url":"https://api.github.com/users/hariclerry/orgs","repos_url":"https://api.github.com/users/hariclerry/repos","events_url":"https://api.github.com/users/hariclerry/events{/privacy}","received_events_url":"https://api.github.com/users/hariclerry/received_events","type":"User","site_admin":false},{"login":"tibetegya","id":13131669,"node_id":"MDQ6VXNlcjEzMTMxNjY5","avatar_url":"https://avatars1.githubusercontent.com/u/13131669?v=4","gravatar_id":"","url":"https://api.github.com/users/tibetegya","html_url":"https://github.com/tibetegya","followers_url":"https://api.github.com/users/tibetegya/followers","following_url":"https://api.github.com/users/tibetegya/following{/other_user}","gists_url":"https://api.github.com/users/tibetegya/gists{/gist_id}","starred_url":"https://api.github.com/users/tibetegya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tibetegya/subscriptions","organizations_url":"https://api.github.com/users/tibetegya/orgs","repos_url":"https://api.github.com/users/tibetegya/repos","events_url":"https://api.github.com/users/tibetegya/events{/privacy}","received_events_url":"https://api.github.com/users/tibetegya/received_events","type":"User","site_admin":false},{"login":"King-Benx","id":17830204,"node_id":"MDQ6VXNlcjE3ODMwMjA0","avatar_url":"https://avatars0.githubusercontent.com/u/17830204?v=4","gravatar_id":"","url":"https://api.github.com/users/King-Benx","html_url":"https://github.com/King-Benx","followers_url":"https://api.github.com/users/King-Benx/followers","following_url":"https://api.github.com/users/King-Benx/following{/other_user}","gists_url":"https://api.github.com/users/King-Benx/gists{/gist_id}","starred_url":"https://api.github.com/users/King-Benx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/King-Benx/subscriptions","organizations_url":"https://api.github.com/users/King-Benx/orgs","repos_url":"https://api.github.com/users/King-Benx/repos","events_url":"https://api.github.com/users/King-Benx/events{/privacy}","received_events_url":"https://api.github.com/users/King-Benx/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela/wg-rogue-one/pulls/13/commits","review_comments_url":"https://api.github.com/repos/andela/wg-rogue-one/pulls/13/comments","review_comment_url":"https://api.github.com/repos/andela/wg-rogue-one/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/wg-rogue-one/issues/13/comments","statuses_url":"https://api.github.com/repos/andela/wg-rogue-one/statuses/532eac565349f75d2bfcac720e58429bcf092b5b","head":{"label":"andela:ft-exercises-muscle-hover-#157731630","ref":"ft-exercises-muscle-hover-#157731630","sha":"532eac565349f75d2bfcac720e58429bcf092b5b","user":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","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":134270535,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQyNzA1MzU=","name":"wg-rogue-one","full_name":"andela/wg-rogue-one","owner":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","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/wg-rogue-one","description":null,"fork":false,"url":"https://api.github.com/repos/andela/wg-rogue-one","forks_url":"https://api.github.com/repos/andela/wg-rogue-one/forks","keys_url":"https://api.github.com/repos/andela/wg-rogue-one/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/wg-rogue-one/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/wg-rogue-one/teams","hooks_url":"https://api.github.com/repos/andela/wg-rogue-one/hooks","issue_events_url":"https://api.github.com/repos/andela/wg-rogue-one/issues/events{/number}","events_url":"https://api.github.com/repos/andela/wg-rogue-one/events","assignees_url":"https://api.github.com/repos/andela/wg-rogue-one/assignees{/user}","branches_url":"https://api.github.com/repos/andela/wg-rogue-one/branches{/branch}","tags_url":"https://api.github.com/repos/andela/wg-rogue-one/tags","blobs_url":"https://api.github.com/repos/andela/wg-rogue-one/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/wg-rogue-one/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/wg-rogue-one/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/wg-rogue-one/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/wg-rogue-one/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/wg-rogue-one/languages","stargazers_url":"https://api.github.com/repos/andela/wg-rogue-one/stargazers","contributors_url":"https://api.github.com/repos/andela/wg-rogue-one/contributors","subscribers_url":"https://api.github.com/repos/andela/wg-rogue-one/subscribers","subscription_url":"https://api.github.com/repos/andela/wg-rogue-one/subscription","commits_url":"https://api.github.com/repos/andela/wg-rogue-one/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/wg-rogue-one/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/wg-rogue-one/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/wg-rogue-one/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/wg-rogue-one/contents/{+path}","compare_url":"https://api.github.com/repos/andela/wg-rogue-one/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/wg-rogue-one/merges","archive_url":"https://api.github.com/repos/andela/wg-rogue-one/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/wg-rogue-one/downloads","issues_url":"https://api.github.com/repos/andela/wg-rogue-one/issues{/number}","pulls_url":"https://api.github.com/repos/andela/wg-rogue-one/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/wg-rogue-one/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/wg-rogue-one/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/wg-rogue-one/labels{/name}","releases_url":"https://api.github.com/repos/andela/wg-rogue-one/releases{/id}","deployments_url":"https://api.github.com/repos/andela/wg-rogue-one/deployments","created_at":"2018-05-21T13:08:07Z","updated_at":"2018-05-29T12:29:00Z","pushed_at":"2018-06-07T10:20:52Z","git_url":"git://github.com/andela/wg-rogue-one.git","ssh_url":"git@github.com:andela/wg-rogue-one.git","clone_url":"https://github.com/andela/wg-rogue-one.git","svn_url":"https://github.com/andela/wg-rogue-one","homepage":null,"size":30537,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"andela:develop","ref":"develop","sha":"1cdc7eac03241441bb3560973596b2eff0db36be","user":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","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":134270535,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQyNzA1MzU=","name":"wg-rogue-one","full_name":"andela/wg-rogue-one","owner":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","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/wg-rogue-one","description":null,"fork":false,"url":"https://api.github.com/repos/andela/wg-rogue-one","forks_url":"https://api.github.com/repos/andela/wg-rogue-one/forks","keys_url":"https://api.github.com/repos/andela/wg-rogue-one/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/wg-rogue-one/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/wg-rogue-one/teams","hooks_url":"https://api.github.com/repos/andela/wg-rogue-one/hooks","issue_events_url":"https://api.github.com/repos/andela/wg-rogue-one/issues/events{/number}","events_url":"https://api.github.com/repos/andela/wg-rogue-one/events","assignees_url":"https://api.github.com/repos/andela/wg-rogue-one/assignees{/user}","branches_url":"https://api.github.com/repos/andela/wg-rogue-one/branches{/branch}","tags_url":"https://api.github.com/repos/andela/wg-rogue-one/tags","blobs_url":"https://api.github.com/repos/andela/wg-rogue-one/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/wg-rogue-one/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/wg-rogue-one/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/wg-rogue-one/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/wg-rogue-one/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/wg-rogue-one/languages","stargazers_url":"https://api.github.com/repos/andela/wg-rogue-one/stargazers","contributors_url":"https://api.github.com/repos/andela/wg-rogue-one/contributors","subscribers_url":"https://api.github.com/repos/andela/wg-rogue-one/subscribers","subscription_url":"https://api.github.com/repos/andela/wg-rogue-one/subscription","commits_url":"https://api.github.com/repos/andela/wg-rogue-one/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/wg-rogue-one/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/wg-rogue-one/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/wg-rogue-one/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/wg-rogue-one/contents/{+path}","compare_url":"https://api.github.com/repos/andela/wg-rogue-one/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/wg-rogue-one/merges","archive_url":"https://api.github.com/repos/andela/wg-rogue-one/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/wg-rogue-one/downloads","issues_url":"https://api.github.com/repos/andela/wg-rogue-one/issues{/number}","pulls_url":"https://api.github.com/repos/andela/wg-rogue-one/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/wg-rogue-one/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/wg-rogue-one/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/wg-rogue-one/labels{/name}","releases_url":"https://api.github.com/repos/andela/wg-rogue-one/releases{/id}","deployments_url":"https://api.github.com/repos/andela/wg-rogue-one/deployments","created_at":"2018-05-21T13:08:07Z","updated_at":"2018-05-29T12:29:00Z","pushed_at":"2018-06-07T10:20:52Z","git_url":"git://github.com/andela/wg-rogue-one.git","ssh_url":"git@github.com:andela/wg-rogue-one.git","clone_url":"https://github.com/andela/wg-rogue-one.git","svn_url":"https://github.com/andela/wg-rogue-one","homepage":null,"size":30537,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/wg-rogue-one/pulls/13"},"html":{"href":"https://github.com/andela/wg-rogue-one/pull/13"},"issue":{"href":"https://api.github.com/repos/andela/wg-rogue-one/issues/13"},"comments":{"href":"https://api.github.com/repos/andela/wg-rogue-one/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/wg-rogue-one/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/wg-rogue-one/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/wg-rogue-one/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/andela/wg-rogue-one/statuses/532eac565349f75d2bfcac720e58429bcf092b5b"}},"author_association":"NONE"}}
{"actor":{"display_login":"peterwade153"}}