{"action":"created","issue":{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/5463","repository_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy","labels_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/5463/labels{/name}","comments_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/5463/comments","events_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/5463/events","html_url":"https://github.com/openmicroscopy/openmicroscopy/pull/5463","id":252003746,"number":5463,"title":"Base template script injection","user":{"login":"will-moore","id":900055,"avatar_url":"https://avatars2.githubusercontent.com/u/900055?v=4","gravatar_id":"","url":"https://api.github.com/users/will-moore","html_url":"https://github.com/will-moore","followers_url":"https://api.github.com/users/will-moore/followers","following_url":"https://api.github.com/users/will-moore/following{/other_user}","gists_url":"https://api.github.com/users/will-moore/gists{/gist_id}","starred_url":"https://api.github.com/users/will-moore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/will-moore/subscriptions","organizations_url":"https://api.github.com/users/will-moore/orgs","repos_url":"https://api.github.com/users/will-moore/repos","events_url":"https://api.github.com/users/will-moore/events{/privacy}","received_events_url":"https://api.github.com/users/will-moore/received_events","type":"User","site_admin":false},"labels":[{"id":12053304,"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/labels/develop","name":"develop","color":"02e10c","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2017-08-22T15:47:14Z","updated_at":"2017-09-13T13:53:55Z","closed_at":"2017-09-06T12:40:51Z","author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/5463","html_url":"https://github.com/openmicroscopy/openmicroscopy/pull/5463","diff_url":"https://github.com/openmicroscopy/openmicroscopy/pull/5463.diff","patch_url":"https://github.com/openmicroscopy/openmicroscopy/pull/5463.patch"},"body":"# What this PR does\r\n\r\nAllows an html template to be included in the base ```core_html``` template that is used for all webclient pages. See https://trello.com/c/mDE65WQK/132-inject-scripts-ga-etc\r\nThis can be used for adding ```<script>```, ```<link/>``` etc into the ```<head>``` of all pages.\r\n\r\n# Testing this PR\r\n\r\nCreate an html file e.g.  ```base_include.html``` and save it to e.g. ```omero_web_templates``` dir.\r\n```\r\n<script>\r\nalert(\"Hello World\");\r\n</script>\r\n```\r\nThen:\r\n```\r\n$ bin/omero config append omero.web.template_dirs '\"/Users/wmoore/Desktop/omero_web_templates\"'\r\n$ bin/omero config set omero.web.base_include_template 'base_include.html'\r\n```\r\nRestart web....\r\n"},"comment":{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/comments/329174933","html_url":"https://github.com/openmicroscopy/openmicroscopy/pull/5463#issuecomment-329174933","issue_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/5463","id":329174933,"user":{"login":"will-moore","id":900055,"avatar_url":"https://avatars2.githubusercontent.com/u/900055?v=4","gravatar_id":"","url":"https://api.github.com/users/will-moore","html_url":"https://github.com/will-moore","followers_url":"https://api.github.com/users/will-moore/followers","following_url":"https://api.github.com/users/will-moore/following{/other_user}","gists_url":"https://api.github.com/users/will-moore/gists{/gist_id}","starred_url":"https://api.github.com/users/will-moore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/will-moore/subscriptions","organizations_url":"https://api.github.com/users/will-moore/orgs","repos_url":"https://api.github.com/users/will-moore/repos","events_url":"https://api.github.com/users/will-moore/events{/privacy}","received_events_url":"https://api.github.com/users/will-moore/received_events","type":"User","site_admin":false},"created_at":"2017-09-13T13:53:55Z","updated_at":"2017-09-13T13:53:55Z","author_association":"MEMBER","body":"Card created: https://trello.com/c/BQyJ0Ay7/47-django-templates-cleanup"}}
{"actor":{"display_login":"will-moore"}}