{"action":"created","issue":{"url":"https://api.github.com/repos/AgileVentures/WebsiteOne/issues/1306","repository_url":"https://api.github.com/repos/AgileVentures/WebsiteOne","labels_url":"https://api.github.com/repos/AgileVentures/WebsiteOne/issues/1306/labels{/name}","comments_url":"https://api.github.com/repos/AgileVentures/WebsiteOne/issues/1306/comments","events_url":"https://api.github.com/repos/AgileVentures/WebsiteOne/issues/1306/events","html_url":"https://github.com/AgileVentures/WebsiteOne/issues/1306","id":179264054,"number":1306,"title":"too much code in view, not confident?","user":{"login":"tansaku","id":30216,"avatar_url":"https://avatars.githubusercontent.com/u/30216?v=3","gravatar_id":"","url":"https://api.github.com/users/tansaku","html_url":"https://github.com/tansaku","followers_url":"https://api.github.com/users/tansaku/followers","following_url":"https://api.github.com/users/tansaku/following{/other_user}","gists_url":"https://api.github.com/users/tansaku/gists{/gist_id}","starred_url":"https://api.github.com/users/tansaku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tansaku/subscriptions","organizations_url":"https://api.github.com/users/tansaku/orgs","repos_url":"https://api.github.com/users/tansaku/repos","events_url":"https://api.github.com/users/tansaku/events{/privacy}","received_events_url":"https://api.github.com/users/tansaku/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-26T15:40:44Z","updated_at":"2016-09-26T15:41:56Z","closed_at":null,"body":"```html\r\n    <% if current_user && current_user == presenter.user %>\r\n        <li><%= current_user.membership_type %> Member</li>\r\n        <% unless current_user.membership_type == 'Premium' %>\r\n            <li><%= form_tag charges_path(plan: 'premium') do %>\r\n                  <script src=\"https://checkout.stripe.com/checkout.js\" class=\"stripe-button\"\r\n                          data-key=\"<%= Rails.configuration.stripe[:publishable_key] %>\"\r\n                          data-description=\"A month's subscription\"\r\n                          data-amount=\"1000\"\r\n                          data-currency=\"GBP\"\r\n                          data-locale=\"en-US\"\r\n                          data-name=\"Premium Membership\"\r\n                          data-label=\"Upgrade to Premium\"></script>\r\n\r\n              <% end %>\r\n            </li>\r\n        <% end %>\r\n    <% end %>\r\n```\r\n\r\nother issues:\r\n\r\n* [ ] can current_user be modified?\r\n* [ ] extract partial\r\n\r\nNote: this is related to PR: https://github.com/AgileVentures/WebsiteOne/pull/1305"},"comment":{"url":"https://api.github.com/repos/AgileVentures/WebsiteOne/issues/comments/249608380","html_url":"https://github.com/AgileVentures/WebsiteOne/issues/1306#issuecomment-249608380","issue_url":"https://api.github.com/repos/AgileVentures/WebsiteOne/issues/1306","id":249608380,"user":{"login":"tansaku","id":30216,"avatar_url":"https://avatars.githubusercontent.com/u/30216?v=3","gravatar_id":"","url":"https://api.github.com/users/tansaku","html_url":"https://github.com/tansaku","followers_url":"https://api.github.com/users/tansaku/followers","following_url":"https://api.github.com/users/tansaku/following{/other_user}","gists_url":"https://api.github.com/users/tansaku/gists{/gist_id}","starred_url":"https://api.github.com/users/tansaku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tansaku/subscriptions","organizations_url":"https://api.github.com/users/tansaku/orgs","repos_url":"https://api.github.com/users/tansaku/repos","events_url":"https://api.github.com/users/tansaku/events{/privacy}","received_events_url":"https://api.github.com/users/tansaku/received_events","type":"User","site_admin":false},"created_at":"2016-09-26T15:41:56Z","updated_at":"2016-09-26T15:41:56Z","body":"```current_user && current_user == presenter.user``` could be ```my_profile_page?(user)```"}}
{"actor":{"display_login":"tansaku"}}