{"action":"created","issue":{"url":"https://api.github.com/repos/UW-Madison-DoIT/angularjs-portal/issues/316","labels_url":"https://api.github.com/repos/UW-Madison-DoIT/angularjs-portal/issues/316/labels{/name}","comments_url":"https://api.github.com/repos/UW-Madison-DoIT/angularjs-portal/issues/316/comments","events_url":"https://api.github.com/repos/UW-Madison-DoIT/angularjs-portal/issues/316/events","html_url":"https://github.com/UW-Madison-DoIT/angularjs-portal/pull/316","id":104342802,"number":316,"title":"MUMMNG-1524: Adds metric units to weather widget","user":{"login":"Daha5","id":7268126,"avatar_url":"https://avatars.githubusercontent.com/u/7268126?v=3","gravatar_id":"","url":"https://api.github.com/users/Daha5","html_url":"https://github.com/Daha5","followers_url":"https://api.github.com/users/Daha5/followers","following_url":"https://api.github.com/users/Daha5/following{/other_user}","gists_url":"https://api.github.com/users/Daha5/gists{/gist_id}","starred_url":"https://api.github.com/users/Daha5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Daha5/subscriptions","organizations_url":"https://api.github.com/users/Daha5/orgs","repos_url":"https://api.github.com/users/Daha5/repos","events_url":"https://api.github.com/users/Daha5/events{/privacy}","received_events_url":"https://api.github.com/users/Daha5/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-01T20:01:09Z","updated_at":"2015-09-02T20:07:32Z","closed_at":"2015-09-02T20:07:32Z","pull_request":{"url":"https://api.github.com/repos/UW-Madison-DoIT/angularjs-portal/pulls/316","html_url":"https://github.com/UW-Madison-DoIT/angularjs-portal/pull/316","diff_url":"https://github.com/UW-Madison-DoIT/angularjs-portal/pull/316.diff","patch_url":"https://github.com/UW-Madison-DoIT/angularjs-portal/pull/316.patch"},"body":"Added a dropdown button that, when clicked, gives the user the choice for weather in imperial units or metric units. \r\n\r\nThe code I added is in the weather widget controller (between lines 46-106 of controllers.js). The functions on lines 77 and 90 are called when the user clicks an item on the dropdown menu, and that does the calculations from Fahrenheit to Celsius, and from Celsius to Fahrenheit.\r\n\r\n\r\nTemperature in degrees Fahrenheit\r\n![weather widget](https://cloud.githubusercontent.com/assets/7268126/9614688/dddba394-50b8-11e5-8ce4-a908a23b28e0.png)\r\n\r\nDropdown button is clicked.\r\n![weather widget2](https://cloud.githubusercontent.com/assets/7268126/9614764/68022804-50b9-11e5-9c2f-77adc417241f.png)\r\n\r\nTemperature is now in degrees Celsius\r\n![weather widget3](https://cloud.githubusercontent.com/assets/7268126/9614767/6d016784-50b9-11e5-9164-deb882391911.png)\r\n\r\nThe reason the images are not showing is because I was running this locally on the angular-mock portal, and I think that's also why the temperature is getting cut off at the bottom."},"comment":{"url":"https://api.github.com/repos/UW-Madison-DoIT/angularjs-portal/issues/comments/137228995","html_url":"https://github.com/UW-Madison-DoIT/angularjs-portal/pull/316#issuecomment-137228995","issue_url":"https://api.github.com/repos/UW-Madison-DoIT/angularjs-portal/issues/316","id":137228995,"user":{"login":"jhanstra","id":1919535,"avatar_url":"https://avatars.githubusercontent.com/u/1919535?v=3","gravatar_id":"","url":"https://api.github.com/users/jhanstra","html_url":"https://github.com/jhanstra","followers_url":"https://api.github.com/users/jhanstra/followers","following_url":"https://api.github.com/users/jhanstra/following{/other_user}","gists_url":"https://api.github.com/users/jhanstra/gists{/gist_id}","starred_url":"https://api.github.com/users/jhanstra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhanstra/subscriptions","organizations_url":"https://api.github.com/users/jhanstra/orgs","repos_url":"https://api.github.com/users/jhanstra/repos","events_url":"https://api.github.com/users/jhanstra/events{/privacy}","received_events_url":"https://api.github.com/users/jhanstra/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T20:07:32Z","updated_at":"2015-09-02T20:07:32Z","body":"UI-wise, the red button is pretty distracting and asymmetrical. Thoughts on making it like the info button icon and remove icon so it's a little more subtle and tucked away?"}}