mirror of https://github.com/zulip/zulip.git
[manual] Use the name instead of the domain for the user-visible realm identifier.
Do not push this commit to prod until the historical realm names have been populated. (imported from commit a58191d181d2fb2b8b5e9793ea57707b36812cfc)
This commit is contained in:
parent
6dbf7613a1
commit
a9c7f3a387
|
@ -112,7 +112,7 @@ exports.update_title_count = function (new_message_count) {
|
||||||
var n;
|
var n;
|
||||||
|
|
||||||
var new_title = (new_message_count ? ("(" + new_message_count + ") ") : "")
|
var new_title = (new_message_count ? ("(" + new_message_count + ") ") : "")
|
||||||
+ page_params.domain + " - Zulip";
|
+ page_params.realm_name + " - Zulip";
|
||||||
|
|
||||||
if (document.title === new_title) {
|
if (document.title === new_title) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{% if user_profile.realm.domain %}
|
{% if user_profile.realm.name %}
|
||||||
<title>{{user_profile.realm.domain}} - Zulip</title>
|
<title>{{user_profile.realm.name}} - Zulip</title>
|
||||||
{% else %}
|
{% else %}
|
||||||
<title>Zulip</title>
|
<title>Zulip</title>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -712,6 +712,7 @@ def home(request):
|
||||||
fullname = user_profile.full_name,
|
fullname = user_profile.full_name,
|
||||||
email = user_profile.email,
|
email = user_profile.email,
|
||||||
domain = user_profile.realm.domain,
|
domain = user_profile.realm.domain,
|
||||||
|
realm_name = user_profile.realm.name,
|
||||||
enter_sends = user_profile.enter_sends,
|
enter_sends = user_profile.enter_sends,
|
||||||
referrals = register_ret['referrals'],
|
referrals = register_ret['referrals'],
|
||||||
realm_emoji = register_ret['realm_emoji'],
|
realm_emoji = register_ret['realm_emoji'],
|
||||||
|
|
Loading…
Reference in New Issue