mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
This is done to ensure that variables in HTML string format which should not be escaped in templates, have a consistent _html suffix. The commits that follow do the same style of refactors in other areas. Discussion: https://chat.zulip.org/#narrow/channel/6-frontend/topic/Add.20linter.20rule.20to.20denote.20HTML.20string.20in.20template/near/2232128 Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
38 lines
2.0 KiB
Handlebars
38 lines
2.0 KiB
Handlebars
<div class="micromodal" id="{{modal_unique_id}}" aria-hidden="true">
|
|
<div class="modal__overlay {{#unless close_on_overlay_click}}ignore-overlay-click{{/unless}}" tabindex="-1">
|
|
<div {{#if id}}id="{{id}}" {{/if}}class="modal__container" role="dialog" aria-modal="true" aria-labelledby="dialog_title">
|
|
<header class="modal__header">
|
|
<h1 class="modal__title dialog_heading">
|
|
{{#if heading_html}}
|
|
{{{ heading_html }}}
|
|
{{else}}
|
|
{{ text_heading }}
|
|
{{/if}}
|
|
{{#if link}}
|
|
{{> help_link_widget . }}
|
|
{{/if}}
|
|
</h1>
|
|
<button class="modal__close" aria-label="{{t 'Close modal' }}" data-micromodal-close></button>
|
|
</header>
|
|
<main class="modal__content" data-simplebar data-simplebar-tab-index="-1" {{#if always_visible_scrollbar}}data-simplebar-auto-hide="false"{{/if}}>
|
|
<div class="alert" id="dialog_error"></div>
|
|
{{{ body_html }}}
|
|
</main>
|
|
<footer class="modal__footer">
|
|
{{#if footer_minor_text }}
|
|
<div class="dialog-widget-footer-minor-text">{{footer_minor_text}}</div>
|
|
{{/if}}
|
|
{{#unless single_footer_button}}
|
|
<button class="modal__button dialog_exit_button" aria-label="{{t 'Close this dialog window' }}" data-micromodal-close>{{{ exit_button_html }}}</button>
|
|
{{/unless}}
|
|
<div class="dialog_submit_button_container">
|
|
<button class="modal__button dialog_submit_button"{{#if single_footer_button}} aria-label="{{t 'Close this dialog window' }}" data-micromodal-close{{/if}}>
|
|
<span class="submit-button-text">{{{ submit_button_html }}}</span>
|
|
<div class="modal__spinner"></div>
|
|
</button>
|
|
</div>
|
|
</footer>
|
|
</div>
|
|
</div>
|
|
</div>
|