Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

documentation (user): Document `/poll` in `?` help widget.

N-Shar-mae52268aeeeb3
diff --git a/static/js/info_overlay.js b/static/js/info_overlay.js
index 55e7c0dd4dd..979a973aeb3 100644
--- a/static/js/info_overlay.js
+++ b/static/js/info_overlay.js
@@ -81,6 +81,38 @@ const markdown_help_rows = [
markdown: "/me is busy working",
output_html: '<p><span class="sender_name-in-status">Iago</span> is busy working</p>',
},
+ {
+ markdown: `/poll What did you drink this morning?
+Milk
+Tea
+Coffee`,
+ output_html: `\
+<div class="poll-widget">
+ <h4 class="poll-question-header reduced-font-size">What did you drink this morning?</h4>
+ <i class="fa fa-pencil poll-edit-question"></i>
+ <ul class="poll-widget">
+ <li>
+ <button class="poll-vote">
+ 0
+ </button>
+ <span>Milk</span>
+ </li>
+ <li>
+ <button class="poll-vote">
+ 0
+ </button>
+ <span>Tea</span>
+ </li>
+ <li>
+ <button class="poll-vote">
+ 0
+ </button>
+ <span>Coffee</span>
+ </li>
+ </ul>
+</div>
+`,
+ },
{
markdown: "Some inline `code`",
},
diff --git a/static/styles/widgets.css b/static/styles/widgets.css
index f712c631d17..fab1f7ef6d8 100644
--- a/static/styles/widgets.css
+++ b/static/styles/widgets.css
@@ -36,6 +36,11 @@
h4 {
font-size: 18px;
font-weight: 600;
+
+ /* for example in help `?` widget */
+ &.reduced-font-size {
+ font-size: 16px;
+ }
}
li {