{"action":"opened","number":322,"pull_request":{"url":"https://api.github.com/repos/Kitware/minerva/pulls/322","id":60715720,"html_url":"https://github.com/Kitware/minerva/pull/322","diff_url":"https://github.com/Kitware/minerva/pull/322.diff","patch_url":"https://github.com/Kitware/minerva/pull/322.patch","issue_url":"https://api.github.com/repos/Kitware/minerva/issues/322","number":322,"state":"open","locked":false,"title":"[WIP] Add grunt init to copy assets","user":{"login":"mgrauer","id":595023,"avatar_url":"https://avatars.githubusercontent.com/u/595023?v=3","gravatar_id":"","url":"https://api.github.com/users/mgrauer","html_url":"https://github.com/mgrauer","followers_url":"https://api.github.com/users/mgrauer/followers","following_url":"https://api.github.com/users/mgrauer/following{/other_user}","gists_url":"https://api.github.com/users/mgrauer/gists{/gist_id}","starred_url":"https://api.github.com/users/mgrauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgrauer/subscriptions","organizations_url":"https://api.github.com/users/mgrauer/orgs","repos_url":"https://api.github.com/users/mgrauer/repos","events_url":"https://api.github.com/users/mgrauer/events{/privacy}","received_events_url":"https://api.github.com/users/mgrauer/received_events","type":"User","site_admin":false},"body":"@katelynnobrien \r\n\r\nThis branch should get you started.\r\n\r\nIf you create a `web_external/assets` directory, when you run `grunt init` (or `npm install` which calls `grunt init`) at the top level under your `girder` dir, this will copy any .png files you put in `assets` to the static built directory for minerva.\r\n\r\nIn a Javascript file, you need to pass the `staticRoot` to your jade template \r\n\r\n        this.$el.html(minerva.templates.layoutHeader({\r\n            staticRoot: girder.staticRoot\r\n        }));\r\n\r\nand in a jade template (that you passed in the `staticRoot` variable to) you could do\r\n\r\n    img(src=\"#{staticRoot}/built/plugins/minerva/assets/awesome-image.png\")\r\n","created_at":"2016-02-25T17:26:43Z","updated_at":"2016-02-25T17:26:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Kitware/minerva/pulls/322/commits","review_comments_url":"https://api.github.com/repos/Kitware/minerva/pulls/322/comments","review_comment_url":"https://api.github.com/repos/Kitware/minerva/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Kitware/minerva/issues/322/comments","statuses_url":"https://api.github.com/repos/Kitware/minerva/statuses/1b5b6039ff0085aaddd78fb08bb7246b1cdc59ff","head":{"label":"Kitware:static_assets","ref":"static_assets","sha":"1b5b6039ff0085aaddd78fb08bb7246b1cdc59ff","user":{"login":"Kitware","id":87549,"avatar_url":"https://avatars.githubusercontent.com/u/87549?v=3","gravatar_id":"","url":"https://api.github.com/users/Kitware","html_url":"https://github.com/Kitware","followers_url":"https://api.github.com/users/Kitware/followers","following_url":"https://api.github.com/users/Kitware/following{/other_user}","gists_url":"https://api.github.com/users/Kitware/gists{/gist_id}","starred_url":"https://api.github.com/users/Kitware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kitware/subscriptions","organizations_url":"https://api.github.com/users/Kitware/orgs","repos_url":"https://api.github.com/users/Kitware/repos","events_url":"https://api.github.com/users/Kitware/events{/privacy}","received_events_url":"https://api.github.com/users/Kitware/received_events","type":"Organization","site_admin":false},"repo":{"id":20766594,"name":"minerva","full_name":"Kitware/minerva","owner":{"login":"Kitware","id":87549,"avatar_url":"https://avatars.githubusercontent.com/u/87549?v=3","gravatar_id":"","url":"https://api.github.com/users/Kitware","html_url":"https://github.com/Kitware","followers_url":"https://api.github.com/users/Kitware/followers","following_url":"https://api.github.com/users/Kitware/following{/other_user}","gists_url":"https://api.github.com/users/Kitware/gists{/gist_id}","starred_url":"https://api.github.com/users/Kitware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kitware/subscriptions","organizations_url":"https://api.github.com/users/Kitware/orgs","repos_url":"https://api.github.com/users/Kitware/repos","events_url":"https://api.github.com/users/Kitware/events{/privacy}","received_events_url":"https://api.github.com/users/Kitware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Kitware/minerva","description":"Minerva: client/server/services for analysis and visualization","fork":false,"url":"https://api.github.com/repos/Kitware/minerva","forks_url":"https://api.github.com/repos/Kitware/minerva/forks","keys_url":"https://api.github.com/repos/Kitware/minerva/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kitware/minerva/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kitware/minerva/teams","hooks_url":"https://api.github.com/repos/Kitware/minerva/hooks","issue_events_url":"https://api.github.com/repos/Kitware/minerva/issues/events{/number}","events_url":"https://api.github.com/repos/Kitware/minerva/events","assignees_url":"https://api.github.com/repos/Kitware/minerva/assignees{/user}","branches_url":"https://api.github.com/repos/Kitware/minerva/branches{/branch}","tags_url":"https://api.github.com/repos/Kitware/minerva/tags","blobs_url":"https://api.github.com/repos/Kitware/minerva/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kitware/minerva/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kitware/minerva/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kitware/minerva/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kitware/minerva/statuses/{sha}","languages_url":"https://api.github.com/repos/Kitware/minerva/languages","stargazers_url":"https://api.github.com/repos/Kitware/minerva/stargazers","contributors_url":"https://api.github.com/repos/Kitware/minerva/contributors","subscribers_url":"https://api.github.com/repos/Kitware/minerva/subscribers","subscription_url":"https://api.github.com/repos/Kitware/minerva/subscription","commits_url":"https://api.github.com/repos/Kitware/minerva/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kitware/minerva/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kitware/minerva/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kitware/minerva/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kitware/minerva/contents/{+path}","compare_url":"https://api.github.com/repos/Kitware/minerva/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kitware/minerva/merges","archive_url":"https://api.github.com/repos/Kitware/minerva/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kitware/minerva/downloads","issues_url":"https://api.github.com/repos/Kitware/minerva/issues{/number}","pulls_url":"https://api.github.com/repos/Kitware/minerva/pulls{/number}","milestones_url":"https://api.github.com/repos/Kitware/minerva/milestones{/number}","notifications_url":"https://api.github.com/repos/Kitware/minerva/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kitware/minerva/labels{/name}","releases_url":"https://api.github.com/repos/Kitware/minerva/releases{/id}","deployments_url":"https://api.github.com/repos/Kitware/minerva/deployments","created_at":"2014-06-12T12:31:22Z","updated_at":"2016-01-12T17:13:23Z","pushed_at":"2016-02-25T17:22:36Z","git_url":"git://github.com/Kitware/minerva.git","ssh_url":"git@github.com:Kitware/minerva.git","clone_url":"https://github.com/Kitware/minerva.git","svn_url":"https://github.com/Kitware/minerva","homepage":"","size":5901,"stargazers_count":10,"watchers_count":10,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":6,"mirror_url":null,"open_issues_count":95,"forks":6,"open_issues":95,"watchers":10,"default_branch":"master"}},"base":{"label":"Kitware:master","ref":"master","sha":"e1df2cc8bc095aab46614c4afd3649c22b8e5d0b","user":{"login":"Kitware","id":87549,"avatar_url":"https://avatars.githubusercontent.com/u/87549?v=3","gravatar_id":"","url":"https://api.github.com/users/Kitware","html_url":"https://github.com/Kitware","followers_url":"https://api.github.com/users/Kitware/followers","following_url":"https://api.github.com/users/Kitware/following{/other_user}","gists_url":"https://api.github.com/users/Kitware/gists{/gist_id}","starred_url":"https://api.github.com/users/Kitware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kitware/subscriptions","organizations_url":"https://api.github.com/users/Kitware/orgs","repos_url":"https://api.github.com/users/Kitware/repos","events_url":"https://api.github.com/users/Kitware/events{/privacy}","received_events_url":"https://api.github.com/users/Kitware/received_events","type":"Organization","site_admin":false},"repo":{"id":20766594,"name":"minerva","full_name":"Kitware/minerva","owner":{"login":"Kitware","id":87549,"avatar_url":"https://avatars.githubusercontent.com/u/87549?v=3","gravatar_id":"","url":"https://api.github.com/users/Kitware","html_url":"https://github.com/Kitware","followers_url":"https://api.github.com/users/Kitware/followers","following_url":"https://api.github.com/users/Kitware/following{/other_user}","gists_url":"https://api.github.com/users/Kitware/gists{/gist_id}","starred_url":"https://api.github.com/users/Kitware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kitware/subscriptions","organizations_url":"https://api.github.com/users/Kitware/orgs","repos_url":"https://api.github.com/users/Kitware/repos","events_url":"https://api.github.com/users/Kitware/events{/privacy}","received_events_url":"https://api.github.com/users/Kitware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Kitware/minerva","description":"Minerva: client/server/services for analysis and visualization","fork":false,"url":"https://api.github.com/repos/Kitware/minerva","forks_url":"https://api.github.com/repos/Kitware/minerva/forks","keys_url":"https://api.github.com/repos/Kitware/minerva/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kitware/minerva/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kitware/minerva/teams","hooks_url":"https://api.github.com/repos/Kitware/minerva/hooks","issue_events_url":"https://api.github.com/repos/Kitware/minerva/issues/events{/number}","events_url":"https://api.github.com/repos/Kitware/minerva/events","assignees_url":"https://api.github.com/repos/Kitware/minerva/assignees{/user}","branches_url":"https://api.github.com/repos/Kitware/minerva/branches{/branch}","tags_url":"https://api.github.com/repos/Kitware/minerva/tags","blobs_url":"https://api.github.com/repos/Kitware/minerva/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kitware/minerva/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kitware/minerva/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kitware/minerva/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kitware/minerva/statuses/{sha}","languages_url":"https://api.github.com/repos/Kitware/minerva/languages","stargazers_url":"https://api.github.com/repos/Kitware/minerva/stargazers","contributors_url":"https://api.github.com/repos/Kitware/minerva/contributors","subscribers_url":"https://api.github.com/repos/Kitware/minerva/subscribers","subscription_url":"https://api.github.com/repos/Kitware/minerva/subscription","commits_url":"https://api.github.com/repos/Kitware/minerva/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kitware/minerva/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kitware/minerva/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kitware/minerva/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kitware/minerva/contents/{+path}","compare_url":"https://api.github.com/repos/Kitware/minerva/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kitware/minerva/merges","archive_url":"https://api.github.com/repos/Kitware/minerva/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kitware/minerva/downloads","issues_url":"https://api.github.com/repos/Kitware/minerva/issues{/number}","pulls_url":"https://api.github.com/repos/Kitware/minerva/pulls{/number}","milestones_url":"https://api.github.com/repos/Kitware/minerva/milestones{/number}","notifications_url":"https://api.github.com/repos/Kitware/minerva/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kitware/minerva/labels{/name}","releases_url":"https://api.github.com/repos/Kitware/minerva/releases{/id}","deployments_url":"https://api.github.com/repos/Kitware/minerva/deployments","created_at":"2014-06-12T12:31:22Z","updated_at":"2016-01-12T17:13:23Z","pushed_at":"2016-02-25T17:22:36Z","git_url":"git://github.com/Kitware/minerva.git","ssh_url":"git@github.com:Kitware/minerva.git","clone_url":"https://github.com/Kitware/minerva.git","svn_url":"https://github.com/Kitware/minerva","homepage":"","size":5901,"stargazers_count":10,"watchers_count":10,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":6,"mirror_url":null,"open_issues_count":95,"forks":6,"open_issues":95,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Kitware/minerva/pulls/322"},"html":{"href":"https://github.com/Kitware/minerva/pull/322"},"issue":{"href":"https://api.github.com/repos/Kitware/minerva/issues/322"},"comments":{"href":"https://api.github.com/repos/Kitware/minerva/issues/322/comments"},"review_comments":{"href":"https://api.github.com/repos/Kitware/minerva/pulls/322/comments"},"review_comment":{"href":"https://api.github.com/repos/Kitware/minerva/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Kitware/minerva/pulls/322/commits"},"statuses":{"href":"https://api.github.com/repos/Kitware/minerva/statuses/1b5b6039ff0085aaddd78fb08bb7246b1cdc59ff"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":13,"deletions":0,"changed_files":1}}