mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
admin: Move 'admin_settings_label' to top-level.
This commit is contained in:
@@ -26,6 +26,21 @@ exports.show_or_hide_menu_item = function () {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var admin_settings_label = {
|
||||||
|
// Organization settings
|
||||||
|
realm_allow_community_topic_editing: i18n.t("Users can edit the topic of any message"),
|
||||||
|
realm_allow_edit_history: i18n.t("Enable message edit history"),
|
||||||
|
realm_mandatory_topics: i18n.t("Require topics in stream messages"),
|
||||||
|
realm_inline_image_preview: i18n.t("Show previews of uploaded and linked images"),
|
||||||
|
realm_inline_url_embed_preview: i18n.t("Show previews of linked websites"),
|
||||||
|
realm_default_twenty_four_hour_time: i18n.t("24-hour time (17:00 instead of 5:00 PM)"),
|
||||||
|
realm_send_welcome_emails: i18n.t("Send emails introducing Zulip to new users"),
|
||||||
|
|
||||||
|
// Organization permissions
|
||||||
|
realm_name_changes_disabled: i18n.t("Prevent users from changing their name"),
|
||||||
|
realm_email_changes_disabled : i18n.t("Prevent users from changing their email address"),
|
||||||
|
};
|
||||||
|
|
||||||
exports.setup_page = function () {
|
exports.setup_page = function () {
|
||||||
var options = {
|
var options = {
|
||||||
custom_profile_field_types: page_params.custom_profile_field_types,
|
custom_profile_field_types: page_params.custom_profile_field_types,
|
||||||
@@ -62,21 +77,7 @@ exports.setup_page = function () {
|
|||||||
realm_default_twenty_four_hour_time: page_params.realm_default_twenty_four_hour_time,
|
realm_default_twenty_four_hour_time: page_params.realm_default_twenty_four_hour_time,
|
||||||
};
|
};
|
||||||
|
|
||||||
options.admin_settings_label = {
|
options.admin_settings_label = admin_settings_label;
|
||||||
// Organization settings
|
|
||||||
realm_allow_community_topic_editing: i18n.t("Users can edit the topic of any message"),
|
|
||||||
realm_allow_edit_history: i18n.t("Enable message edit history"),
|
|
||||||
realm_mandatory_topics: i18n.t("Require topics in stream messages"),
|
|
||||||
realm_inline_image_preview: i18n.t("Show previews of uploaded and linked images"),
|
|
||||||
realm_inline_url_embed_preview: i18n.t("Show previews of linked websites"),
|
|
||||||
realm_default_twenty_four_hour_time: i18n.t("24-hour time (17:00 instead of 5:00 PM)"),
|
|
||||||
realm_send_welcome_emails: i18n.t("Send emails introducing Zulip to new users"),
|
|
||||||
|
|
||||||
// Organization permissions
|
|
||||||
realm_name_changes_disabled: i18n.t("Prevent users from changing their name"),
|
|
||||||
realm_email_changes_disabled : i18n.t("Prevent users from changing their email address"),
|
|
||||||
};
|
|
||||||
|
|
||||||
options.msg_edit_limit_dropdown_values = settings_org.msg_edit_limit_dropdown_values;
|
options.msg_edit_limit_dropdown_values = settings_org.msg_edit_limit_dropdown_values;
|
||||||
options.msg_delete_limit_dropdown_values = settings_org.msg_delete_limit_dropdown_values;
|
options.msg_delete_limit_dropdown_values = settings_org.msg_delete_limit_dropdown_values;
|
||||||
options.bot_creation_policy_values = settings_bots.bot_creation_policy_values;
|
options.bot_creation_policy_values = settings_bots.bot_creation_policy_values;
|
||||||
|
|||||||
Reference in New Issue
Block a user