2022-08-19 21:36:33 +02:00
|
|
|
<div
|
2023-05-20 01:23:33 +02:00
|
|
|
class="main-view-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}}
|
2023-05-15 21:58:45 +02:00
|
|
|
<button class="main-view-banner-action-button{{#if hide_close_button}} right_edge{{/if}}" {{#if scheduling_message}}data-validation-trigger="schedule"{{/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}}
|
2023-05-15 19:57:31 +02:00
|
|
|
<a role="button" class="zulip-icon zulip-icon-close main-view-banner-close-button"></a>
|
2022-08-20 21:07:32 +02:00
|
|
|
{{/if}}
|
2022-08-19 21:36:33 +02:00
|
|
|
</div>
|