{"action":"created","issue":{"url":"https://api.github.com/repos/ifmeorg/ifme/issues/968","repository_url":"https://api.github.com/repos/ifmeorg/ifme","labels_url":"https://api.github.com/repos/ifmeorg/ifme/issues/968/labels{/name}","comments_url":"https://api.github.com/repos/ifmeorg/ifme/issues/968/comments","events_url":"https://api.github.com/repos/ifmeorg/ifme/issues/968/events","html_url":"https://github.com/ifmeorg/ifme/issues/968","id":361298013,"node_id":"MDU6SXNzdWUzNjEyOTgwMTM=","number":968,"title":"Improve code quality and readability in /app/views/shared/_stats.html.erb","user":{"login":"julianguyen","id":3010728,"node_id":"MDQ6VXNlcjMwMTA3Mjg=","avatar_url":"https://avatars1.githubusercontent.com/u/3010728?v=4","gravatar_id":"","url":"https://api.github.com/users/julianguyen","html_url":"https://github.com/julianguyen","followers_url":"https://api.github.com/users/julianguyen/followers","following_url":"https://api.github.com/users/julianguyen/following{/other_user}","gists_url":"https://api.github.com/users/julianguyen/gists{/gist_id}","starred_url":"https://api.github.com/users/julianguyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julianguyen/subscriptions","organizations_url":"https://api.github.com/users/julianguyen/orgs","repos_url":"https://api.github.com/users/julianguyen/repos","events_url":"https://api.github.com/users/julianguyen/events{/privacy}","received_events_url":"https://api.github.com/users/julianguyen/received_events","type":"User","site_admin":false},"labels":[{"id":452259007,"node_id":"MDU6TGFiZWw0NTIyNTkwMDc=","url":"https://api.github.com/repos/ifmeorg/ifme/labels/beginner%20friendly","name":"beginner friendly","color":"d4c5f9","default":false},{"id":453015016,"node_id":"MDU6TGFiZWw0NTMwMTUwMTY=","url":"https://api.github.com/repos/ifmeorg/ifme/labels/hacktoberfest","name":"hacktoberfest","color":"FFA500","default":false},{"id":860718389,"node_id":"MDU6TGFiZWw4NjA3MTgzODk=","url":"https://api.github.com/repos/ifmeorg/ifme/labels/ruby%20on%20rails","name":"ruby on rails","color":"c9282a","default":false}],"state":"open","locked":false,"assignee":{"login":"OPARA-PROSPER","id":30195980,"node_id":"MDQ6VXNlcjMwMTk1OTgw","avatar_url":"https://avatars3.githubusercontent.com/u/30195980?v=4","gravatar_id":"","url":"https://api.github.com/users/OPARA-PROSPER","html_url":"https://github.com/OPARA-PROSPER","followers_url":"https://api.github.com/users/OPARA-PROSPER/followers","following_url":"https://api.github.com/users/OPARA-PROSPER/following{/other_user}","gists_url":"https://api.github.com/users/OPARA-PROSPER/gists{/gist_id}","starred_url":"https://api.github.com/users/OPARA-PROSPER/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OPARA-PROSPER/subscriptions","organizations_url":"https://api.github.com/users/OPARA-PROSPER/orgs","repos_url":"https://api.github.com/users/OPARA-PROSPER/repos","events_url":"https://api.github.com/users/OPARA-PROSPER/events{/privacy}","received_events_url":"https://api.github.com/users/OPARA-PROSPER/received_events","type":"User","site_admin":false},"assignees":[{"login":"OPARA-PROSPER","id":30195980,"node_id":"MDQ6VXNlcjMwMTk1OTgw","avatar_url":"https://avatars3.githubusercontent.com/u/30195980?v=4","gravatar_id":"","url":"https://api.github.com/users/OPARA-PROSPER","html_url":"https://github.com/OPARA-PROSPER","followers_url":"https://api.github.com/users/OPARA-PROSPER/followers","following_url":"https://api.github.com/users/OPARA-PROSPER/following{/other_user}","gists_url":"https://api.github.com/users/OPARA-PROSPER/gists{/gist_id}","starred_url":"https://api.github.com/users/OPARA-PROSPER/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OPARA-PROSPER/subscriptions","organizations_url":"https://api.github.com/users/OPARA-PROSPER/orgs","repos_url":"https://api.github.com/users/OPARA-PROSPER/repos","events_url":"https://api.github.com/users/OPARA-PROSPER/events{/privacy}","received_events_url":"https://api.github.com/users/OPARA-PROSPER/received_events","type":"User","site_admin":false}],"milestone":null,"comments":13,"created_at":"2018-09-18T13:12:56Z","updated_at":"2018-10-08T01:53:10Z","closed_at":null,"author_association":"MEMBER","body":"<!--[\r\n  Thank you for contributing! Please use this issue template.\r\n\r\n  Contributor Blurb: https://github.com/ifmeorg/ifme/wiki/Contributor-Blurb\r\n  Join Our Slack: https://github.com/ifmeorg/ifme/wiki/Join-Our-Slack\r\n\r\n  Issue creation is a contribution!\r\n  Need help? Post in the #dev channel on Slack\r\n  Please use the appropriate labels to tag this issue\r\n]-->\r\n\r\n# Description \r\n\r\n<!--[Description of issue, this includes a feature suggestion, bug report, code cleanup, and refactoring idea]-->\r\nWhen working on implementing the redesigns I noticed that `/app/views/shared/_stats.html.erb` was pretty messy to look at (did not have time to clean it up myself). There's a lot of logic in this view when it should be moved to a helper and possibly subviews.\r\n\r\n\r\n\r\n<!--[\r\n  You don't have to work on the issue to file an issue!\r\n  If you want to, assign yourself to the issue\r\n  If you are unable to find your username in the Assignees dropdown, let us know in #dev on Slack\r\n]-->"},"comment":{"url":"https://api.github.com/repos/ifmeorg/ifme/issues/comments/427705745","html_url":"https://github.com/ifmeorg/ifme/issues/968#issuecomment-427705745","issue_url":"https://api.github.com/repos/ifmeorg/ifme/issues/968","id":427705745,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzcwNTc0NQ==","user":{"login":"julianguyen","id":3010728,"node_id":"MDQ6VXNlcjMwMTA3Mjg=","avatar_url":"https://avatars1.githubusercontent.com/u/3010728?v=4","gravatar_id":"","url":"https://api.github.com/users/julianguyen","html_url":"https://github.com/julianguyen","followers_url":"https://api.github.com/users/julianguyen/followers","following_url":"https://api.github.com/users/julianguyen/following{/other_user}","gists_url":"https://api.github.com/users/julianguyen/gists{/gist_id}","starred_url":"https://api.github.com/users/julianguyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julianguyen/subscriptions","organizations_url":"https://api.github.com/users/julianguyen/orgs","repos_url":"https://api.github.com/users/julianguyen/repos","events_url":"https://api.github.com/users/julianguyen/events{/privacy}","received_events_url":"https://api.github.com/users/julianguyen/received_events","type":"User","site_admin":false},"created_at":"2018-10-08T01:53:10Z","updated_at":"2018-10-08T01:53:10Z","author_association":"MEMBER","body":"@OPARA-PROSPER Of course, take your time and feel free to ask questions on Slack too.\r\n\r\nHere are some articles I found on refactoring Rails views which may be helpful learning material:\r\nhttps://brandonhilkert.com/blog/refactoring-logic-from-a-rails-view/\r\nhttps://allenan.com/refactoring-rails-views/\r\nhttps://medium.com/@scottm/refactoring-views-with-ruby-on-rails-activesupport-helpers-7d8b71c81ce2"}}
{"actor":{"display_login":"julianguyen"}}