Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

images: Move /team images into landing-page directory.

Alya Abbott7e3388dd9eea
diff --git a/static/images/team/tim.png b/static/images/landing-page/team/tim.png
similarity index 100%
rename from static/images/team/tim.png
rename to static/images/landing-page/team/tim.png
diff --git a/templates/zerver/team.html b/templates/zerver/team.html
index 7abe52a29f3..82530d3a2ce 100644
--- a/templates/zerver/team.html
+++ b/templates/zerver/team.html
@@ -34,7 +34,7 @@
<!-- Tim -->
<div class="profile bdfl">
<div class="profile-picture">
- <img src="/static/images/team/tim.png" alt="" />
+ <img src="/static/images/landing-page/team/tim.png" alt="" />
</div>
<div class="profile-information">
<div class="profile-name">Tim Abbott</div>
diff --git a/zerver/lib/dev_ldap_directory.py b/zerver/lib/dev_ldap_directory.py
index 124e3e16bb4..cf5bbcbcd85 100644
--- a/zerver/lib/dev_ldap_directory.py
+++ b/zerver/lib/dev_ldap_directory.py
@@ -24,7 +24,7 @@ def generate_dev_ldap_dir(mode: str, num_users: int = 8) -> Dict[str, Dict[str,
ldap_data.append((name, email, phone_number, birthdate))
profile_images = []
- for path in glob.glob(os.path.join(static_path("images/team"), "*")):
+ for path in glob.glob(os.path.join(static_path("images/landing-page/team"), "*")):
with open(path, "rb") as f:
profile_images.append(f.read())
ldap_dir = {}
diff --git a/zerver/tests/fixtures/ldap/directory.json b/zerver/tests/fixtures/ldap/directory.json
index bf1d5f387e1..1cc0767bf8b 100644
--- a/zerver/tests/fixtures/ldap/directory.json
+++ b/zerver/tests/fixtures/ldap/directory.json
@@ -13,7 +13,7 @@
"sn": ["Hamlet"],
"homePhone": ["123456789"],
"birthDate": ["1900-09-08"],
- "jpegPhoto": "file:static/images/team/tim.png"
+ "jpegPhoto": "file:static/images/landing-page/team/tim.png"
},
"uid=cordelia,ou=users,dc=zulip,dc=com": {
@@ -38,7 +38,7 @@
"uid": ["newuser"],
"sn": ["shortname"],
"homePhone": ["a-new-number"],
- "jpegPhoto": "file:static/images/team/tim.png"
+ "jpegPhoto": "file:static/images/landing-page/team/tim.png"
},
"uid=newuser_splitname,ou=users,dc=zulip,dc=com": {
diff --git a/zerver/tests/test_auth_backends.py b/zerver/tests/test_auth_backends.py
index 4e2a2252b60..6025c4f27a1 100644
--- a/zerver/tests/test_auth_backends.py
+++ b/zerver/tests/test_auth_backends.py
@@ -6047,7 +6047,9 @@ class TestLDAP(ZulipLDAPTestCase):
assert url is not None
response = self.client_get(url)
self.assertEqual(response.status_code, 200)
- with open(os.path.join(settings.DEPLOY_ROOT, "static/images/team/tim.png"), "rb") as f:
+ with open(
+ os.path.join(settings.DEPLOY_ROOT, "static/images/landing-page/team/tim.png"), "rb"
+ ) as f:
tim = f.read()
self.assert_streaming_content(response, resize_avatar(tim, DEFAULT_AVATAR_SIZE))