Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
images: Move error/loading images into subdirectories.
Khushiyantbfd38b329797
diff --git a/static/html/5xx.html b/static/html/5xx.htmlindex 72708247013..164fd73e269 100644--- a/static/html/5xx.html+++ b/static/html/5xx.html@@ -27,7 +27,7 @@<div class="container"><div class="row-fluid">- <img src="/static/images/500art.svg" alt=""/>+ <img src="/static/images/errors/500art.svg" alt=""/><div class="errorbox"><div class="errorcontent"><h1 class="lead">Internal server error</h1>diff --git a/static/images/400art.svg b/static/images/errors/400art.svgsimilarity index 100%rename from static/images/400art.svgrename to static/images/errors/400art.svgdiff --git a/static/images/500art.svg b/static/images/errors/500art.svgsimilarity index 100%rename from static/images/500art.svgrename to static/images/errors/500art.svgdiff --git a/static/images/timeout_hourglass.png b/static/images/errors/timeout_hourglass.pngsimilarity index 100%rename from static/images/timeout_hourglass.pngrename to static/images/errors/timeout_hourglass.pngdiff --git a/static/images/loader-black.svg b/static/images/loading/loader-black.svgsimilarity index 100%rename from static/images/loader-black.svgrename to static/images/loading/loader-black.svgdiff --git a/static/images/loader-white.svg b/static/images/loading/loader-white.svgsimilarity index 100%rename from static/images/loader-white.svgrename to static/images/loading/loader-white.svgdiff --git a/static/images/loading-ellipsis.svg b/static/images/loading/loading-ellipsis.svgsimilarity index 100%rename from static/images/loading-ellipsis.svgrename to static/images/loading/loading-ellipsis.svgdiff --git a/static/images/tail-spin.svg b/static/images/loading/tail-spin.svgsimilarity index 100%rename from static/images/tail-spin.svgrename to static/images/loading/tail-spin.svgdiff --git a/static/js/loading.ts b/static/js/loading.tsindex 4a3890e6ba6..fd77cc3bbf8 100644--- a/static/js/loading.ts+++ b/static/js/loading.ts@@ -70,9 +70,9 @@ export function destroy_indicator($container: JQuery): void {export function show_button_spinner($elt: JQuery, using_dark_theme: boolean): void {if (!using_dark_theme) {- $elt.attr("src", "/static/images/loader-black.svg");+ $elt.attr("src", "/static/images/loading/loader-black.svg");} else {- $elt.attr("src", "/static/images/loader-white.svg");+ $elt.attr("src", "/static/images/loading/loader-white.svg");}$elt.css("display", "inline-block");}diff --git a/static/templates/more_topics_spinner.hbs b/static/templates/more_topics_spinner.hbsindex ed06c163ce8..38919ac6b3b 100644--- a/static/templates/more_topics_spinner.hbs+++ b/static/templates/more_topics_spinner.hbs@@ -1,3 +1,3 @@<li class="searching-for-more-topics">- <img src="/static/images/loading-ellipsis.svg" alt="" />+ <img src="/static/images/loading/loading-ellipsis.svg" alt="" /></li>diff --git a/static/templates/settings/image_upload_widget.hbs b/static/templates/settings/image_upload_widget.hbsindex ca58de1f197..060d06c4099 100644--- a/static/templates/settings/image_upload_widget.hbs+++ b/static/templates/settings/image_upload_widget.hbs@@ -17,7 +17,7 @@{{ upload_text }}</span><span class="upload-spinner-background">- <img class="image_upload_spinner" src="/static/images/tail-spin.svg" alt="" />+ <img class="image_upload_spinner" src="/static/images/loading/tail-spin.svg" alt="" /></span></div><img class="image-block" src="{{ image }}"/>diff --git a/templates/404.html b/templates/404.htmlindex 64f01bb8551..7b0b07a1c45 100644--- a/templates/404.html+++ b/templates/404.html@@ -6,7 +6,7 @@<div class="error_page"><div class="container"><div class="row-fluid">- <img src="/static/images/400art.svg" alt=""/>+ <img src="/static/images/errors/400art.svg" alt=""/><div class="errorbox"><div class="errorcontent">{% if status_code == 405 %}diff --git a/templates/500.html b/templates/500.htmlindex 4a52e61f7ab..eac6168c004 100644--- a/templates/500.html+++ b/templates/500.html@@ -11,7 +11,7 @@<div class="error_page"><div class="container"><div class="row-fluid">- <img src="/static/images/500art.svg" alt=""/>+ <img src="/static/images/errors/500art.svg" alt=""/><div class="errorbox"><div class="errorcontent"><h1 class="lead">Internal server error</h1>diff --git a/templates/confirmation/link_does_not_exist.html b/templates/confirmation/link_does_not_exist.htmlindex eaca703024e..bdfad5d3040 100644--- a/templates/confirmation/link_does_not_exist.html+++ b/templates/confirmation/link_does_not_exist.html@@ -3,7 +3,7 @@{% block portico_content %}<div class="error_page"><div class="container">- <img src="/static/images/400art.svg" alt=""/>+ <img src="/static/images/errors/400art.svg" alt=""/><div class="errorbox"><div class="errorcontent"><h1 class="lead">{{ _("Whoops. We couldn't find your confirmation link in the system.") }}</h1>diff --git a/templates/confirmation/link_expired.html b/templates/confirmation/link_expired.htmlindex d11be1bab88..892441e5ca5 100644--- a/templates/confirmation/link_expired.html+++ b/templates/confirmation/link_expired.html@@ -4,7 +4,7 @@<div class="error_page"><div class="container"><div class="row-fluid">- <img class="hourglass-img" src="/static/images/timeout_hourglass.png" alt=""/>+ <img class="hourglass-img" src="/static/images/errors/timeout_hourglass.png" alt=""/><div class="errorbox"><div class="errorcontent"><h1 class="lead">{{ _("Whoops. The confirmation link has expired or been deactivated.") }}</h1>diff --git a/templates/confirmation/link_malformed.html b/templates/confirmation/link_malformed.htmlindex 070ded03a05..6b98c340568 100644--- a/templates/confirmation/link_malformed.html+++ b/templates/confirmation/link_malformed.html@@ -3,7 +3,7 @@{% block portico_content %}<div class="error_page"><div class="container">- <img src="/static/images/500art.svg" alt=""/>+ <img src="/static/images/errors/500art.svg" alt=""/><div class="errorbox"><div class="errorcontent"><h1 class="lead">{{ _("Whoops. The confirmation link is malformed.") }}</h1>diff --git a/templates/corporate/apps.html b/templates/corporate/apps.htmlindex 543fb00ef26..6bebb7ca824 100644--- a/templates/corporate/apps.html+++ b/templates/corporate/apps.html@@ -32,7 +32,7 @@</div><div class="image"><div class="flex">- <img src="/static/images/loader-white.svg" alt="" />+ <img src="/static/images/loading/loader-white.svg" alt="" /></div></div></div>diff --git a/templates/corporate/support_request.html b/templates/corporate/support_request.htmlindex 3795fa3ac03..38b28e02645 100644--- a/templates/corporate/support_request.html+++ b/templates/corporate/support_request.html@@ -31,7 +31,7 @@<div class="register-button-box"><button class="register-button support-submit-button" type="submit"><span>{{ _('Submit') }}</span>- <object class="loader" type="image/svg+xml" data="/static/images/loader-white.svg"></object>+ <object class="loader" type="image/svg+xml" data="/static/images/loading/loader-white.svg"></object></button></div></fieldset>diff --git a/templates/zerver/auth_subdomain.html b/templates/zerver/auth_subdomain.htmlindex 9aeef4bf6a1..1d526eee350 100644--- a/templates/zerver/auth_subdomain.html+++ b/templates/zerver/auth_subdomain.html@@ -5,7 +5,7 @@<div class="error_page"><div class="container"><div class="row-fluid">- <img src="/static/images/500art.svg" alt=""/>+ <img src="/static/images/errors/500art.svg" alt=""/><div class="errorbox"><div class="errorcontent"><h1 class="lead">Authentication subdomain</h1>diff --git a/templates/zerver/config_error.html b/templates/zerver/config_error.htmlindex 5d563479fe9..a2378bd31e1 100644--- a/templates/zerver/config_error.html+++ b/templates/zerver/config_error.html@@ -5,7 +5,7 @@<div class="error_page" style="padding-bottom: 60px;"><div class="container"><div class="row-fluid">- <img src="/static/images/500art.svg" alt=""/>+ <img src="/static/images/errors/500art.svg" alt=""/><div class="errorbox config-error"><div class="errorcontent"><h1 class="lead">Configuration error</h1>diff --git a/templates/zerver/insecure_desktop_app.html b/templates/zerver/insecure_desktop_app.htmlindex 2ffb26c1444..e50c989a64d 100644--- a/templates/zerver/insecure_desktop_app.html+++ b/templates/zerver/insecure_desktop_app.html@@ -5,7 +5,7 @@<div class="error_page"><div class="container"><div class="row-fluid">- <img src="/static/images/400art.svg" alt=""/>+ <img src="/static/images/errors/400art.svg" alt=""/><div class="errorbox config-error"><div class="errorcontent"><h1 class="lead">{{ _('Update required') }}</h1>diff --git a/templates/zerver/login.html b/templates/zerver/login.htmlindex 85049ec9a14..d1888c74682 100644--- a/templates/zerver/login.html+++ b/templates/zerver/login.html@@ -118,7 +118,7 @@ page can be easily identified in it's respective JavaScript file. -->{% endif %}<button type="submit" name="button" class="full-width">- <img class="loader" src="/static/images/loader-white.svg" alt="" />+ <img class="loader" src="/static/images/loading/loader-white.svg" alt="" /><span class="text">{{ _("Log in") }}</span></button></form>diff --git a/templates/zerver/rate_limit_exceeded.html b/templates/zerver/rate_limit_exceeded.htmlindex 8288e0e3f33..879e94e4d23 100644--- a/templates/zerver/rate_limit_exceeded.html+++ b/templates/zerver/rate_limit_exceeded.html@@ -5,7 +5,7 @@<div class="error_page"><div class="container"><div class="row-fluid">- <img src="/static/images/500art.svg" alt=""/>+ <img src="/static/images/errors/500art.svg" alt=""/><div class="errorbox"><div class="errorcontent"><h1 class="lead">{{ _("Rate limit exceeded.") }}</h1>diff --git a/templates/zerver/register.html b/templates/zerver/register.htmlindex 3e63790ce23..6ede09f5072 100644--- a/templates/zerver/register.html+++ b/templates/zerver/register.html@@ -262,7 +262,7 @@ Form is validated both client-side using jquery-validation (see signup.js) and s<div class="register-button-box"><button class="register-button" type="submit"><span>{{ _('Sign up') }}</span>- <object class="loader" type="image/svg+xml" data="/static/images/loader-white.svg"></object>+ <object class="loader" type="image/svg+xml" data="/static/images/loading/loader-white.svg"></object></button><input type="hidden" name="next" value="{{ next }}" /></div>diff --git a/templates/zerver/unsupported_browser.html b/templates/zerver/unsupported_browser.htmlindex d80c340dbf3..b603ded518b 100644--- a/templates/zerver/unsupported_browser.html+++ b/templates/zerver/unsupported_browser.html@@ -5,7 +5,7 @@<div class="error_page unsupported_browser_page"><div class="container"><div class="row-fluid">- <img src="/static/images/400art.svg" alt=""/>+ <img src="/static/images/errors/400art.svg" alt=""/><div class="errorbox config-error"><div class="errorcontent"><h1 class="lead">{{ _('Unsupported browser') }}</h1>