Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
settings: Update quota notice text and style.
Maneesh Shukla574932d4e3cc
diff --git a/web/src/attachments_ui.ts b/web/src/attachments_ui.tsindex af86d028932..a56044c32cd 100644--- a/web/src/attachments_ui.ts+++ b/web/src/attachments_ui.ts@@ -70,8 +70,16 @@ function set_upload_space_stats(): void {}const args = {show_upgrade_message: realm.realm_plan_type === 2,- percent_used: percentage_used_space(upload_space_used),- upload_quota: bytes_to_size(mib_to_bytes(realm.realm_upload_quota_mib), true),+ upload_quota_string: $t(+ {+ defaultMessage:+ "Your organization is using {percent_used}% of your {upload_quota} file storage quota.",+ },+ {+ percent_used: percentage_used_space(upload_space_used),+ upload_quota: bytes_to_size(mib_to_bytes(realm.realm_upload_quota_mib), true),+ },+ ),};const rendered_upload_stats_html = render_settings_upload_space_stats(args);$("#attachment-stats-holder").html(rendered_upload_stats_html);diff --git a/web/styles/settings.css b/web/styles/settings.cssindex efcc2d6096a..44a7012f476 100644--- a/web/styles/settings.css+++ b/web/styles/settings.css@@ -1683,7 +1683,16 @@ $option_title_width: 180px;#attachment-stats-holder {position: relative;margin-top: 13px;- display: inline-block;+ display: block;++ .upgrade-tip {+ width: auto;+ }++ .tip::before {+ content: "\f135";+ margin-right: 8px;+ }}.admin_exports_table {diff --git a/web/templates/settings/upload_space_stats.hbs b/web/templates/settings/upload_space_stats.hbsindex d0aba8bf002..9788c5d26c7 100644--- a/web/templates/settings/upload_space_stats.hbs+++ b/web/templates/settings/upload_space_stats.hbs@@ -1,9 +1,11 @@<span>- {{t "Organization using {percent_used}% of {upload_quota}." }}{{#if show_upgrade_message}}- {{#tr}}- <z-link>Upgrade</z-link> for more space.- {{#*inline "z-link"}}<a href="/upgrade/" target="_blank" rel="noopener noreferrer">{{> @partial-block }}</a>{{/inline}}- {{/tr}}+ <a href="/upgrade/" class="upgrade-tip" target="_blank" rel="noopener noreferrer">+ {{upload_quota_string}} {{t "Upgrade for more space." }}+ </a>+ {{else}}+ <div class="tip">+ {{upload_quota_string}}+ </div>{{/if}}</span>