2022-08-19 21:36:33 +02:00
|
|
|
<div
|
|
|
|
class="compose_banner {{banner_type}} {{classname}}"
|
2022-08-20 02:51:13 +02:00
|
|
|
{{#if user_id}}data-user-id="{{user_id}}"{{/if}}
|
2022-08-19 21:36:33 +02:00
|
|
|
{{#if stream_id}}data-stream-id="{{stream_id}}"{{/if}}
|
|
|
|
{{#if topic_name}}data-topic-name="{{topic_name}}"{{/if}}>
|
2022-08-19 22:24:06 +02:00
|
|
|
{{#if banner_text}}
|
2022-08-19 21:36:33 +02:00
|
|
|
<p class="banner_content">{{banner_text}}</p>
|
2022-08-19 22:24:06 +02:00
|
|
|
{{else}}
|
|
|
|
<div class="banner_content">{{> @partial-block}}</div>
|
|
|
|
{{/if}}
|
2022-08-19 21:36:33 +02:00
|
|
|
{{#if button_text}}
|
2022-12-12 23:10:06 +01:00
|
|
|
<button class="compose_banner_action_button{{#if hide_close_button}} right_edge{{/if}}" >{{button_text}}</button>
|
2022-08-19 21:36:33 +02:00
|
|
|
{{/if}}
|
2022-08-20 21:07:32 +02:00
|
|
|
{{#if hide_close_button}}
|
|
|
|
{{!-- hide_close_button is null by default, and false if explicitly set as false. --}}
|
|
|
|
{{else}}
|
2022-08-19 21:36:33 +02:00
|
|
|
<a role="button" class="zulip-icon zulip-icon-close compose_banner_close_button"></a>
|
2022-08-20 21:07:32 +02:00
|
|
|
{{/if}}
|
2022-08-19 21:36:33 +02:00
|
|
|
</div>
|