mirror of https://github.com/zulip/zulip.git
20 lines
851 B
Handlebars
20 lines
851 B
Handlebars
<div
|
|
class="compose_banner {{banner_type}} {{classname}}"
|
|
{{#if user_id}}data-user-id="{{user_id}}"{{/if}}
|
|
{{#if stream_id}}data-stream-id="{{stream_id}}"{{/if}}
|
|
{{#if topic_name}}data-topic-name="{{topic_name}}"{{/if}}>
|
|
{{#if banner_text}}
|
|
<p class="banner_content">{{banner_text}}</p>
|
|
{{else}}
|
|
<div class="banner_content">{{> @partial-block}}</div>
|
|
{{/if}}
|
|
{{#if button_text}}
|
|
<button class="compose_banner_action_button{{#if hide_close_button}} right_edge{{/if}}" {{#if scheduling_message}}data-validation-trigger="schedule"{{/if}}>{{button_text}}</button>
|
|
{{/if}}
|
|
{{#if hide_close_button}}
|
|
{{!-- hide_close_button is null by default, and false if explicitly set as false. --}}
|
|
{{else}}
|
|
<a role="button" class="zulip-icon zulip-icon-close compose_banner_close_button"></a>
|
|
{{/if}}
|
|
</div>
|