mirror of
https://github.com/zulip/zulip.git
synced 2025-10-29 11:03:54 +00:00
Add Zulip version number to page_params.
This commit is contained in:
1
version.py
Normal file
1
version.py
Normal file
@@ -0,0 +1 @@
|
||||
ZULIP_VERSION = "1.4.1+git"
|
||||
@@ -1957,6 +1957,7 @@ class HomeTest(ZulipTestCase):
|
||||
"unread_count",
|
||||
"unsubbed_info",
|
||||
"user_id",
|
||||
"zulip_version",
|
||||
]
|
||||
|
||||
email = "hamlet@zulip.com"
|
||||
|
||||
@@ -51,6 +51,7 @@ from zerver.lib.i18n import get_language_list, get_language_name, \
|
||||
get_language_list_for_templates
|
||||
from zerver.lib.response import json_success, json_error
|
||||
from zerver.lib.utils import statsd, generate_random_token
|
||||
from version import ZULIP_VERSION
|
||||
from zproject.backends import password_auth_enabled, dev_auth_enabled, google_auth_enabled
|
||||
|
||||
from confirmation.models import Confirmation, RealmCreationKey, check_key_is_valid
|
||||
@@ -877,6 +878,7 @@ def home(request):
|
||||
# Pass parameters to the client-side JavaScript code.
|
||||
# These end up in a global JavaScript Object named 'page_params'.
|
||||
page_params = dict(
|
||||
zulip_version = ZULIP_VERSION,
|
||||
share_the_love = settings.SHARE_THE_LOVE,
|
||||
development_environment = settings.DEVELOPMENT,
|
||||
debug_mode = settings.DEBUG,
|
||||
|
||||
Reference in New Issue
Block a user