mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Differentiate staff-writes-only banner (#18364)
This commit is contained in:
parent
4c4cc20c61
commit
69d74ae508
@ -77,6 +77,7 @@ export default Component.extend({
|
|||||||
|
|
||||||
@discourseComputed(
|
@discourseComputed(
|
||||||
"site.isReadOnly",
|
"site.isReadOnly",
|
||||||
|
"site.isStaffWritesOnly",
|
||||||
"siteSettings.login_required",
|
"siteSettings.login_required",
|
||||||
"siteSettings.disable_emails",
|
"siteSettings.disable_emails",
|
||||||
"siteSettings.global_notice",
|
"siteSettings.global_notice",
|
||||||
@ -85,6 +86,7 @@ export default Component.extend({
|
|||||||
)
|
)
|
||||||
notices(
|
notices(
|
||||||
isReadOnly,
|
isReadOnly,
|
||||||
|
isStaffWritesOnly,
|
||||||
loginRequired,
|
loginRequired,
|
||||||
disableEmails,
|
disableEmails,
|
||||||
globalNotice,
|
globalNotice,
|
||||||
@ -111,7 +113,14 @@ export default Component.extend({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isReadOnly) {
|
if (isStaffWritesOnly) {
|
||||||
|
notices.push(
|
||||||
|
Notice.create({
|
||||||
|
text: I18n.t("staff_writes_only_mode.enabled"),
|
||||||
|
id: "alert-staff-writes-only",
|
||||||
|
})
|
||||||
|
);
|
||||||
|
} else if (isReadOnly) {
|
||||||
notices.push(
|
notices.push(
|
||||||
Notice.create({
|
Notice.create({
|
||||||
text: I18n.t("read_only_mode.enabled"),
|
text: I18n.t("read_only_mode.enabled"),
|
||||||
|
@ -1838,6 +1838,8 @@ en:
|
|||||||
enabled: "This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now."
|
enabled: "This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now."
|
||||||
login_disabled: "Login is disabled while the site is in read only mode."
|
login_disabled: "Login is disabled while the site is in read only mode."
|
||||||
logout_disabled: "Logout is disabled while the site is in read only mode."
|
logout_disabled: "Logout is disabled while the site is in read only mode."
|
||||||
|
staff_writes_only_mode:
|
||||||
|
enabled: "This site is in staff only mode. Please continue to browse, but replying, likes, and other actions are limited to staff members only."
|
||||||
too_few_topics_and_posts_notice_MF: >-
|
too_few_topics_and_posts_notice_MF: >-
|
||||||
Let's <a href="https://blog.discourse.org/2014/08/building-a-discourse-community/">start the discussion!</a>
|
Let's <a href="https://blog.discourse.org/2014/08/building-a-discourse-community/">start the discussion!</a>
|
||||||
There {currentTopics, plural, one {is <strong>#</strong> topic} other {are <strong>#</strong> topics}} and
|
There {currentTopics, plural, one {is <strong>#</strong> topic} other {are <strong>#</strong> topics}} and
|
||||||
|
Loading…
Reference in New Issue
Block a user