{"action":"created","issue":{"url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/6672","repository_url":"https://api.github.com/repos/OrchardCMS/Orchard","labels_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/6672/labels{/name}","comments_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/6672/comments","events_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/6672/events","html_url":"https://github.com/OrchardCMS/Orchard/issues/6672","id":144142168,"number":6672,"title":"Scripts and styles referenced by layout snippets are emitted in the admin UI","user":{"login":"DanielStolt","id":3889090,"avatar_url":"https://avatars.githubusercontent.com/u/3889090?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielStolt","html_url":"https://github.com/DanielStolt","followers_url":"https://api.github.com/users/DanielStolt/followers","following_url":"https://api.github.com/users/DanielStolt/following{/other_user}","gists_url":"https://api.github.com/users/DanielStolt/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielStolt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielStolt/subscriptions","organizations_url":"https://api.github.com/users/DanielStolt/orgs","repos_url":"https://api.github.com/users/DanielStolt/repos","events_url":"https://api.github.com/users/DanielStolt/events{/privacy}","received_events_url":"https://api.github.com/users/DanielStolt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"sfmskywalker","id":938393,"avatar_url":"https://avatars.githubusercontent.com/u/938393?v=3","gravatar_id":"","url":"https://api.github.com/users/sfmskywalker","html_url":"https://github.com/sfmskywalker","followers_url":"https://api.github.com/users/sfmskywalker/followers","following_url":"https://api.github.com/users/sfmskywalker/following{/other_user}","gists_url":"https://api.github.com/users/sfmskywalker/gists{/gist_id}","starred_url":"https://api.github.com/users/sfmskywalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfmskywalker/subscriptions","organizations_url":"https://api.github.com/users/sfmskywalker/orgs","repos_url":"https://api.github.com/users/sfmskywalker/repos","events_url":"https://api.github.com/users/sfmskywalker/events{/privacy}","received_events_url":"https://api.github.com/users/sfmskywalker/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/OrchardCMS/Orchard/milestones/34","html_url":"https://github.com/OrchardCMS/Orchard/milestones/Orchard%201.10.1","labels_url":"https://api.github.com/repos/OrchardCMS/Orchard/milestones/34/labels","id":1508038,"number":34,"title":"Orchard 1.10.1","description":"Issues that need to be fixed in order to ship Orchard 1.10.1\r\n","creator":{"login":"sebastienros","id":1165805,"avatar_url":"https://avatars.githubusercontent.com/u/1165805?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastienros","html_url":"https://github.com/sebastienros","followers_url":"https://api.github.com/users/sebastienros/followers","following_url":"https://api.github.com/users/sebastienros/following{/other_user}","gists_url":"https://api.github.com/users/sebastienros/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastienros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastienros/subscriptions","organizations_url":"https://api.github.com/users/sebastienros/orgs","repos_url":"https://api.github.com/users/sebastienros/repos","events_url":"https://api.github.com/users/sebastienros/events{/privacy}","received_events_url":"https://api.github.com/users/sebastienros/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":20,"state":"open","created_at":"2016-01-15T00:17:13Z","updated_at":"2016-03-31T23:33:56Z","due_on":"2016-04-14T07:00:00Z","closed_at":null},"comments":11,"created_at":"2016-03-29T03:05:05Z","updated_at":"2016-04-01T00:03:42Z","closed_at":null,"body":"If a layout snippet file references one or more scripts or stylesheets (either via `Require()` or `Include()` those will end up being rendered in the snippet element editor in the admin UI.\r\n\r\nHere is an example of when this happens - this particular snippet references stylesheets that are part of the theme and meant for the front-end, which change the styling of fieldsets and their labels:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/3889090/14096794/b0720b66-f56b-11e5-80c0-9ed6e7f669f0.png)\r\n\r\nThis is what it looks like in the rendered markup:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/3889090/14096800/bc3790b0-f56b-11e5-9129-db6722e3dda8.png)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/comments/204180678","html_url":"https://github.com/OrchardCMS/Orchard/issues/6672#issuecomment-204180678","issue_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/6672","id":204180678,"user":{"login":"sfmskywalker","id":938393,"avatar_url":"https://avatars.githubusercontent.com/u/938393?v=3","gravatar_id":"","url":"https://api.github.com/users/sfmskywalker","html_url":"https://github.com/sfmskywalker","followers_url":"https://api.github.com/users/sfmskywalker/followers","following_url":"https://api.github.com/users/sfmskywalker/following{/other_user}","gists_url":"https://api.github.com/users/sfmskywalker/gists{/gist_id}","starred_url":"https://api.github.com/users/sfmskywalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfmskywalker/subscriptions","organizations_url":"https://api.github.com/users/sfmskywalker/orgs","repos_url":"https://api.github.com/users/sfmskywalker/repos","events_url":"https://api.github.com/users/sfmskywalker/events{/privacy}","received_events_url":"https://api.github.com/users/sfmskywalker/received_events","type":"User","site_admin":false},"created_at":"2016-04-01T00:03:42Z","updated_at":"2016-04-01T00:03:42Z","body":"Ah right, yes that would work nicely."}}