diff --git a/version.py b/version.py new file mode 100644 index 0000000000..4b0d3eedbc --- /dev/null +++ b/version.py @@ -0,0 +1 @@ +ZULIP_VERSION = "1.4.1+git" diff --git a/zerver/tests/tests.py b/zerver/tests/tests.py index 15c5e9c27c..ce957792e1 100644 --- a/zerver/tests/tests.py +++ b/zerver/tests/tests.py @@ -1957,6 +1957,7 @@ class HomeTest(ZulipTestCase): "unread_count", "unsubbed_info", "user_id", + "zulip_version", ] email = "hamlet@zulip.com" diff --git a/zerver/views/__init__.py b/zerver/views/__init__.py index 5838882c65..8ac3609018 100644 --- a/zerver/views/__init__.py +++ b/zerver/views/__init__.py @@ -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,