diff --git a/crates/app/src/public/html/components.html b/crates/app/src/public/html/components.html
index c5e5b66..e4da88d 100644
--- a/crates/app/src/public/html/components.html
+++ b/crates/app/src/public/html/components.html
@@ -650,11 +650,18 @@ show_community=true, secondary=false) -%}
{%- endmacro %} {% macro create_question_form(receiver="0", community="",
-is_global=false) -%}
+header="", is_global=false) -%}
{{ icon "message-circle-heart" }}
- {{ text "requests:label.ask_question" }}
+
+
+ {% if header %}
+ {{ header|markdown|safe }}
+ {% else %}
+ {{ text "requests:label.ask_question" }}
+ {% endif %}
+
{% endif %} {% if pinned|length != 0 %}
diff --git a/crates/app/src/public/html/profile/settings.html b/crates/app/src/public/html/profile/settings.html
index 6211fe7..5e8e338 100644
--- a/crates/app/src/public/html/profile/settings.html
+++ b/crates/app/src/public/html/profile/settings.html
@@ -748,14 +748,7 @@
settings.warning,
"textarea",
],
- ],
- settings,
- );
-
- ui.generate_settings_ui(
- profile_settings,
- [
- [[], "Privacy", "title"],
+ [[], "Questions", "title"],
[
[
"enable_questions",
@@ -764,6 +757,19 @@
"{{ profile.settings.enable_questions }}",
"checkbox",
],
+ [
+ ["motivational_header", "Motivational header"],
+ settings.motivational_header,
+ "input",
+ ],
+ ],
+ settings,
+ );
+
+ ui.generate_settings_ui(
+ profile_settings,
+ [
+ [[], "Privacy", "title"],
[
[
"private_profile",
diff --git a/crates/core/src/model/auth.rs b/crates/core/src/model/auth.rs
index f26bc49..2ad81a4 100644
--- a/crates/core/src/model/auth.rs
+++ b/crates/core/src/model/auth.rs
@@ -133,6 +133,9 @@ pub struct UserSettings {
pub disable_other_theme_css: bool,
#[serde(default)]
pub enable_questions: bool,
+ /// A header shown in the place of "Ask question" if `enable_questions` is true.
+ #[serde(default)]
+ pub motivational_header: String,
}
impl Default for User {