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}}>
|
2023-09-13 20:54:12 +02:00
|
|
|
<div class="main-view-banner-elements-wrapper {{#if button_text}}banner-contains-button{{/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="main-view-banner-action-button{{#if hide_close_button}} right_edge{{/if}}" {{#if scheduling_message}}data-validation-trigger="schedule"{{/if}}>{{button_text}}</button>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
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>
|