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.

external_accounts: Add Atlassian account ID field type.

The Dance52e2e5838c15
diff --git a/web/icons/atlassian.svg b/web/icons/atlassian.svg
new file mode 100644
index 00000000000..b514411cda8
--- /dev/null
+++ b/web/icons/atlassian.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M41.3175 36.5672L25.4402 4.81262C25.1276 4.12502 24.8151 4 24.44 4C24.1275 4 23.7524 4.12502 23.3774 4.75011C21.127 8.31312 20.1269 12.4387 20.1269 16.7518C20.1269 22.7527 23.1898 28.3785 27.6905 37.4423C28.1906 38.4425 28.5656 38.63 29.4407 38.63H40.4423C41.2549 38.63 41.6925 38.3175 41.6925 37.6924C41.6925 37.3798 41.63 37.1923 41.3175 36.5672ZM18.2516 21.565C17.0014 19.6898 16.6264 19.5647 16.3138 19.5647C16.0013 19.5647 15.8138 19.6898 15.2512 20.8149L7.31255 36.6922C7.06251 37.1923 7 37.3798 7 37.6299C7 38.1299 7.43756 38.63 8.3752 38.63H19.5643C20.3144 38.63 20.877 38.0049 21.1895 36.8172C21.5646 35.317 21.6896 34.0043 21.6896 32.4416C21.6896 28.066 19.7518 23.8154 18.2516 21.565Z"/></svg>
diff --git a/zerver/lib/external_accounts.py b/zerver/lib/external_accounts.py
index 2e4055c0956..b701da5b700 100644
--- a/zerver/lib/external_accounts.py
+++ b/zerver/lib/external_accounts.py
@@ -33,6 +33,12 @@ class ExternalAccount:
# and the user should enter the full URL of their link.
# Set url_pattern as "" to make the field a text field.
DEFAULT_EXTERNAL_ACCOUNTS = {
+ "atlassian": ExternalAccount(
+ text="Atlassian",
+ url_pattern="",
+ name=gettext_lazy("Atlassian account ID"),
+ hint="",
+ ),
"behance": ExternalAccount(
text="Behance",
url_pattern="https://www.behance.net/%(username)s",