diff --git a/templates/zephyr/index.html b/templates/zephyr/index.html index 0e6047fb7c..1df9984f56 100644 --- a/templates/zephyr/index.html +++ b/templates/zephyr/index.html @@ -16,6 +16,10 @@ {% rawjstemplate "subscription" %} + + diff --git a/templates/zephyr/stream_creation_prompt.html b/templates/zephyr/stream_creation_prompt.html new file mode 100644 index 0000000000..861379b39c --- /dev/null +++ b/templates/zephyr/stream_creation_prompt.html @@ -0,0 +1,26 @@ + diff --git a/templates/zephyr/subscriptions.html b/templates/zephyr/subscriptions.html index 259d2c2365..afc50c3c16 100644 --- a/templates/zephyr/subscriptions.html +++ b/templates/zephyr/subscriptions.html @@ -23,3 +23,5 @@ + +{% include "zephyr/stream_creation_prompt.html" %} diff --git a/zephyr/jstemplates/new_stream_users.html b/zephyr/jstemplates/new_stream_users.html new file mode 100644 index 0000000000..0fac9e1be8 --- /dev/null +++ b/zephyr/jstemplates/new_stream_users.html @@ -0,0 +1,11 @@ +{{! Client-side Mustache template for rendering users in the stream creation modal.}} +Check all | +Uncheck all +
+ {{#each users}} +
+ {{/each}} +
+ diff --git a/zephyr/static/js/setup.js b/zephyr/static/js/setup.js index 06b77e183e..eb7a4746f5 100644 --- a/zephyr/static/js/setup.js +++ b/zephyr/static/js/setup.js @@ -13,7 +13,7 @@ $(function () { // Compile Handlebars templates. $.each(['message', 'subscription', 'userinfo_popover_title', 'userinfo_popover_content', - 'timeinfo_popover_content', 'invite_subscription'], + 'timeinfo_popover_content', 'invite_subscription', 'new_stream_users'], function (index, name) { templates[name] = Handlebars.compile($('#template_'+name).html()); } diff --git a/zephyr/static/styles/zephyr.css b/zephyr/static/styles/zephyr.css index 334956fed7..310d53082e 100644 --- a/zephyr/static/styles/zephyr.css +++ b/zephyr/static/styles/zephyr.css @@ -813,4 +813,13 @@ table.floating_recipient { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; + +#stream-creation { + max-height: 80%; +} + +#stream-creation .modal-body { + // Setting max-height to a percentage doesn't work. + max-height: 400px; + overflow-y: scroll; }