mirror of
https://github.com/discourse/discourse.git
synced 2025-03-26 05:35:52 +08:00
UX: Users can postpone discobot's tutorial. (#13060)
This commit is contained in:
parent
9118bb2076
commit
de0f2b9546
@ -101,7 +101,18 @@ createWidget("header-notifications", {
|
|||||||
"span.ring-backdrop",
|
"span.ring-backdrop",
|
||||||
{},
|
{},
|
||||||
h("h1.ring-first-notification", {}, [
|
h("h1.ring-first-notification", {}, [
|
||||||
h("span", {}, I18n.t("user.first_notification")),
|
h(
|
||||||
|
"span",
|
||||||
|
{ className: "first-notification" },
|
||||||
|
I18n.t("user.first_notification")
|
||||||
|
),
|
||||||
|
h("span", { className: "read-later" }, [
|
||||||
|
this.attach("link", {
|
||||||
|
action: "readLater",
|
||||||
|
className: "read-later-link",
|
||||||
|
label: "user.skip_new_user_tips.read_later",
|
||||||
|
}),
|
||||||
|
]),
|
||||||
h("span", {}, [
|
h("span", {}, [
|
||||||
I18n.t("user.skip_new_user_tips.not_first_time"),
|
I18n.t("user.skip_new_user_tips.not_first_time"),
|
||||||
" ",
|
" ",
|
||||||
@ -110,7 +121,6 @@ createWidget("header-notifications", {
|
|||||||
className: "skip-new-user-tips",
|
className: "skip-new-user-tips",
|
||||||
label: "user.skip_new_user_tips.skip_link",
|
label: "user.skip_new_user_tips.skip_link",
|
||||||
title: "user.skip_new_user_tips.description",
|
title: "user.skip_new_user_tips.description",
|
||||||
omitSpan: true,
|
|
||||||
}),
|
}),
|
||||||
]),
|
]),
|
||||||
])
|
])
|
||||||
@ -605,6 +615,10 @@ export default createWidget("header", {
|
|||||||
this.scheduleRerender();
|
this.scheduleRerender();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
readLater() {
|
||||||
|
this.headerDismissFirstNotificationMask();
|
||||||
|
},
|
||||||
|
|
||||||
skipNewUserTips() {
|
skipNewUserTips() {
|
||||||
this.headerDismissFirstNotificationMask();
|
this.headerDismissFirstNotificationMask();
|
||||||
ajax(userPath(this.currentUser.username_lower), {
|
ajax(userPath(this.currentUser.username_lower), {
|
||||||
|
@ -529,18 +529,21 @@ table {
|
|||||||
width: 230px;
|
width: 230px;
|
||||||
line-height: $line-height-medium;
|
line-height: $line-height-medium;
|
||||||
|
|
||||||
> span:first-child {
|
.first-notification,
|
||||||
|
.read-later {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-bottom: 36px;
|
margin-bottom: 36px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.skip-new-user-tips {
|
.skip-new-user-tips,
|
||||||
|
.read-later-link {
|
||||||
font-size: $font-down-1;
|
font-size: $font-down-1;
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
&,
|
&,
|
||||||
.skip-new-user-tips {
|
.skip-new-user-tips,
|
||||||
|
.read-later-link {
|
||||||
color: #eee;
|
color: #eee;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1041,6 +1041,7 @@ en:
|
|||||||
description: "Skip new user onboarding tips and badges"
|
description: "Skip new user onboarding tips and badges"
|
||||||
not_first_time: "Not your first time?"
|
not_first_time: "Not your first time?"
|
||||||
skip_link: "Skip these tips"
|
skip_link: "Skip these tips"
|
||||||
|
read_later: "I'll read it later."
|
||||||
theme_default_on_all_devices: "Make this the default theme on all my devices"
|
theme_default_on_all_devices: "Make this the default theme on all my devices"
|
||||||
color_scheme_default_on_all_devices: "Set default color scheme(s) on all my devices"
|
color_scheme_default_on_all_devices: "Set default color scheme(s) on all my devices"
|
||||||
color_scheme: "Color Scheme"
|
color_scheme: "Color Scheme"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user