{"action":"opened","issue":{"url":"https://api.github.com/repos/c2corg/v6_ui/issues/850","repository_url":"https://api.github.com/repos/c2corg/v6_ui","labels_url":"https://api.github.com/repos/c2corg/v6_ui/issues/850/labels{/name}","comments_url":"https://api.github.com/repos/c2corg/v6_ui/issues/850/comments","events_url":"https://api.github.com/repos/c2corg/v6_ui/issues/850/events","html_url":"https://github.com/c2corg/v6_ui/issues/850","id":187494467,"number":850,"title":"Strange get_document_locale_text() helper","user":{"login":"asaunier","id":1192331,"avatar_url":"https://avatars.githubusercontent.com/u/1192331?v=3","gravatar_id":"","url":"https://api.github.com/users/asaunier","html_url":"https://github.com/asaunier","followers_url":"https://api.github.com/users/asaunier/followers","following_url":"https://api.github.com/users/asaunier/following{/other_user}","gists_url":"https://api.github.com/users/asaunier/gists{/gist_id}","starred_url":"https://api.github.com/users/asaunier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asaunier/subscriptions","organizations_url":"https://api.github.com/users/asaunier/orgs","repos_url":"https://api.github.com/users/asaunier/repos","events_url":"https://api.github.com/users/asaunier/events{/privacy}","received_events_url":"https://api.github.com/users/asaunier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"ginold","id":7814311,"avatar_url":"https://avatars.githubusercontent.com/u/7814311?v=3","gravatar_id":"","url":"https://api.github.com/users/ginold","html_url":"https://github.com/ginold","followers_url":"https://api.github.com/users/ginold/followers","following_url":"https://api.github.com/users/ginold/following{/other_user}","gists_url":"https://api.github.com/users/ginold/gists{/gist_id}","starred_url":"https://api.github.com/users/ginold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ginold/subscriptions","organizations_url":"https://api.github.com/users/ginold/orgs","repos_url":"https://api.github.com/users/ginold/repos","events_url":"https://api.github.com/users/ginold/events{/privacy}","received_events_url":"https://api.github.com/users/ginold/received_events","type":"User","site_admin":false},"assignees":[{"login":"ginold","id":7814311,"avatar_url":"https://avatars.githubusercontent.com/u/7814311?v=3","gravatar_id":"","url":"https://api.github.com/users/ginold","html_url":"https://github.com/ginold","followers_url":"https://api.github.com/users/ginold/followers","following_url":"https://api.github.com/users/ginold/following{/other_user}","gists_url":"https://api.github.com/users/ginold/gists{/gist_id}","starred_url":"https://api.github.com/users/ginold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ginold/subscriptions","organizations_url":"https://api.github.com/users/ginold/orgs","repos_url":"https://api.github.com/users/ginold/repos","events_url":"https://api.github.com/users/ginold/events{/privacy}","received_events_url":"https://api.github.com/users/ginold/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/c2corg/v6_ui/milestones/8","html_url":"https://github.com/c2corg/v6_ui/milestones/Go%20Live","labels_url":"https://api.github.com/repos/c2corg/v6_ui/milestones/8/labels","id":2031429,"number":8,"title":"Go Live","description":"","creator":{"login":"fjacon","id":1583203,"avatar_url":"https://avatars.githubusercontent.com/u/1583203?v=3","gravatar_id":"","url":"https://api.github.com/users/fjacon","html_url":"https://github.com/fjacon","followers_url":"https://api.github.com/users/fjacon/followers","following_url":"https://api.github.com/users/fjacon/following{/other_user}","gists_url":"https://api.github.com/users/fjacon/gists{/gist_id}","starred_url":"https://api.github.com/users/fjacon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fjacon/subscriptions","organizations_url":"https://api.github.com/users/fjacon/orgs","repos_url":"https://api.github.com/users/fjacon/repos","events_url":"https://api.github.com/users/fjacon/events{/privacy}","received_events_url":"https://api.github.com/users/fjacon/received_events","type":"User","site_admin":false},"open_issues":31,"closed_issues":6,"state":"open","created_at":"2016-09-27T10:20:53Z","updated_at":"2016-11-05T12:32:16Z","due_on":"2016-12-05T00:00:00Z","closed_at":null},"comments":0,"created_at":"2016-11-05T12:32:16Z","updated_at":"2016-11-05T12:32:16Z","closed_at":null,"body":"https://github.com/c2corg/v6_ui/blob/master/c2corg_ui/templates/helpers/view.html#L437-L502\r\n\r\n* There's probably a missing ``% endif`` to close https://github.com/c2corg/v6_ui/blob/master/c2corg_ui/templates/helpers/view.html#L439 . at least it is poorly indented and it's hard to figure out where the \"if\" blocks finish.\r\n* Why is there attribute specific code? It would make more sense and be more readable / less confusing to split the code into several helper functions instead of one.\r\n* Code specific to a given document type should be moved to the helpers file of the related document type. For instance: \"weather\" => outings"}}
{"actor":{"display_login":"asaunier"}}