Skip to content

A platform for community discussion. Free, open, simple.

UX: html-safe dialog.message, clarify poll error (#24388)

Kris91d5b66a9c45
diff --git a/app/assets/javascripts/dialog-holder/addon/components/dialog-holder.hbs b/app/assets/javascripts/dialog-holder/addon/components/dialog-holder.hbs
index 3fbfd731447..16f06d85c9c 100644
--- a/app/assets/javascripts/dialog-holder/addon/components/dialog-holder.hbs
+++ b/app/assets/javascripts/dialog-holder/addon/components/dialog-holder.hbs
@@ -27,7 +27,7 @@
@model={{this.dialog.bodyComponentModel}}
/>
{{else if this.dialog.message}}
- <p>{{this.dialog.message}}</p>
+ <p>{{html-safe this.dialog.message}}</p>
{{/if}}
</div>
{{/if}}
diff --git a/plugins/poll/config/locales/server.en.yml b/plugins/poll/config/locales/server.en.yml
index 18a54f8f32f..b9a2202930a 100644
--- a/plugins/poll/config/locales/server.en.yml
+++ b/plugins/poll/config/locales/server.en.yml
@@ -12,7 +12,7 @@ en:
poll: "poll"
invalid_argument: "Invalid value '%{value}' for argument '%{argument}'."
- multiple_polls_without_name: "There are multiple polls without a name. Use the '<code>name</code>' attribute to uniquely identify your polls."
+ multiple_polls_without_name: "When creating multiple polls, include unique names by adding <code>name=example</code> to your <code>[poll]</code> tags."
multiple_polls_with_same_name: "There are multiple polls with the same name: <strong>%{name}</strong>. Use the '<code>name</code>' attribute to uniquely identify your polls."
default_poll_must_have_at_least_1_option: "Poll must have at least 1 option."