{"action":"created","issue":{"url":"https://api.github.com/repos/zulip/zulip/issues/157","labels_url":"https://api.github.com/repos/zulip/zulip/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/zulip/zulip/issues/157/comments","events_url":"https://api.github.com/repos/zulip/zulip/issues/157/events","html_url":"https://github.com/zulip/zulip/issues/157","id":110309473,"number":157,"title":"Show current narrow in page title","user":{"login":"bgilbert","id":361374,"avatar_url":"https://avatars.githubusercontent.com/u/361374?v=3","gravatar_id":"","url":"https://api.github.com/users/bgilbert","html_url":"https://github.com/bgilbert","followers_url":"https://api.github.com/users/bgilbert/followers","following_url":"https://api.github.com/users/bgilbert/following{/other_user}","gists_url":"https://api.github.com/users/bgilbert/gists{/gist_id}","starred_url":"https://api.github.com/users/bgilbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgilbert/subscriptions","organizations_url":"https://api.github.com/users/bgilbert/orgs","repos_url":"https://api.github.com/users/bgilbert/repos","events_url":"https://api.github.com/users/bgilbert/events{/privacy}","received_events_url":"https://api.github.com/users/bgilbert/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zulip/zulip/labels/bite%20size","name":"bite size","color":"bfe5bf"},{"url":"https://api.github.com/repos/zulip/zulip/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/zulip/zulip/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-07T20:27:34Z","updated_at":"2015-10-20T02:55:06Z","closed_at":null,"body":"If a user has multiple browser tabs open to different narrows, there's no way to tell the tabs apart without manually switching to each tab in turn.  This could be fixed by describing the narrow in the page title."},"comment":{"url":"https://api.github.com/repos/zulip/zulip/issues/comments/149413005","html_url":"https://github.com/zulip/zulip/issues/157#issuecomment-149413005","issue_url":"https://api.github.com/repos/zulip/zulip/issues/157","id":149413005,"user":{"login":"timabbott","id":2746074,"avatar_url":"https://avatars.githubusercontent.com/u/2746074?v=3","gravatar_id":"","url":"https://api.github.com/users/timabbott","html_url":"https://github.com/timabbott","followers_url":"https://api.github.com/users/timabbott/followers","following_url":"https://api.github.com/users/timabbott/following{/other_user}","gists_url":"https://api.github.com/users/timabbott/gists{/gist_id}","starred_url":"https://api.github.com/users/timabbott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timabbott/subscriptions","organizations_url":"https://api.github.com/users/timabbott/orgs","repos_url":"https://api.github.com/users/timabbott/repos","events_url":"https://api.github.com/users/timabbott/events{/privacy}","received_events_url":"https://api.github.com/users/timabbott/received_events","type":"User","site_admin":false},"created_at":"2015-10-20T02:55:06Z","updated_at":"2015-10-20T02:55:06Z","body":"So currently we have title as e.g. \"example.com - Zulip\" where example.com is the name of the realm.  \r\n\r\nIncluding the realm domain in the title is good for the case where a user has accounts on multiple Zulip realms, which probably will be less the common case in the new everyone-runs-their-own-Zulip-server world, but is probably still something we should think about.  I'd probably favor a title that looks like:\r\n\r\n<stream name or other narrow description if any> - example.com - Zulip\r\n\r\nif that doesn't wind up being too verbose; if it does, maybe I'd only show the `example.com` in the case that it's a multi-realm server.\r\n\r\nIn terms of how to describe the narrow, you may want to look at the logic in static/js/tab_bar.js for how we display the describe for a narrow; it might make sense to reuse that logic for the title bar."}}