{"action":"closed","issue":{"url":"https://api.github.com/repos/go-lab/ils/issues/43","labels_url":"https://api.github.com/repos/go-lab/ils/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/go-lab/ils/issues/43/comments","events_url":"https://api.github.com/repos/go-lab/ils/issues/43/events","html_url":"https://github.com/go-lab/ils/issues/43","id":54175858,"number":43,"title":"Adapt the context names","user":{"login":"MJRodriguezTriana","id":8037223,"avatar_url":"https://avatars.githubusercontent.com/u/8037223?v=3","gravatar_id":"","url":"https://api.github.com/users/MJRodriguezTriana","html_url":"https://github.com/MJRodriguezTriana","followers_url":"https://api.github.com/users/MJRodriguezTriana/followers","following_url":"https://api.github.com/users/MJRodriguezTriana/following{/other_user}","gists_url":"https://api.github.com/users/MJRodriguezTriana/gists{/gist_id}","starred_url":"https://api.github.com/users/MJRodriguezTriana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MJRodriguezTriana/subscriptions","organizations_url":"https://api.github.com/users/MJRodriguezTriana/orgs","repos_url":"https://api.github.com/users/MJRodriguezTriana/repos","events_url":"https://api.github.com/users/MJRodriguezTriana/events{/privacy}","received_events_url":"https://api.github.com/users/MJRodriguezTriana/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/go-lab/ils/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"MJRodriguezTriana","id":8037223,"avatar_url":"https://avatars.githubusercontent.com/u/8037223?v=3","gravatar_id":"","url":"https://api.github.com/users/MJRodriguezTriana","html_url":"https://github.com/MJRodriguezTriana","followers_url":"https://api.github.com/users/MJRodriguezTriana/followers","following_url":"https://api.github.com/users/MJRodriguezTriana/following{/other_user}","gists_url":"https://api.github.com/users/MJRodriguezTriana/gists{/gist_id}","starred_url":"https://api.github.com/users/MJRodriguezTriana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MJRodriguezTriana/subscriptions","organizations_url":"https://api.github.com/users/MJRodriguezTriana/orgs","repos_url":"https://api.github.com/users/MJRodriguezTriana/repos","events_url":"https://api.github.com/users/MJRodriguezTriana/events{/privacy}","received_events_url":"https://api.github.com/users/MJRodriguezTriana/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-01-13T10:34:25Z","updated_at":"2015-01-19T10:16:00Z","closed_at":"2015-01-19T10:16:00Z","body":"Following @larsbollen suggestions we will use the following var names to get the context :\r\n-  \"graasp\"; // for those cases where the app has been called from http://graasp.eu/spaces/... (teacher's view) or http://localhost:9091/spaces/... (for local testing)\r\n- \"preview\"; // for those cases where the app has been called from http://www.golabz.eu/apps/... OR when the referrer is empty -> it has been rendered directly through Shindig without being embedded elsewhere (the \"URL-trick\" to quickly test a gagdet)\r\n-  \"standalone_ils\"; // for those cases where the app has been called from http://graasp.eu/ils/... (student's view) or  http://localhost:9091/ils/... (for local testing)\r\n-  \"direct\"; // for those cases where the referrer is empty (I kept it because I realised that you were distinguishing this situation and it could be useful for you)\r\n- \"standalone_html\" // for those cases where no Graasp or Shindig is involved, but the tool/app is running in a plain HTML context\r\n-  \"unknown\"; // if the referrer doesn't correspond to the previous cases"}}