- referenced_users = local_assigns.fetch(:referenced_users, nil) - if @merge_request&.discussion_locked? .issuable-note-warning = sprite_icon('lock', css_class: 'icon') %span = _('This merge request is locked.') = _('Only project members can comment.') .md-area.position-relative .md-header.gl-bg-gray-50.gl-px-2.gl-rounded-base.gl-mx-2.gl-mt-2 .gl-display-flex.gl-align-items-center.gl-flex-wrap.gl-justify-content-space-between .md-header-toolbar.gl-display-flex.gl-py-2.gl-flex-wrap = render 'shared/blob/markdown_buttons' .switch-preview.gl-py-2.gl-display-flex.gl-align-items-center.gl-ml-auto = render Pajamas::ButtonComponent.new(category: :tertiary, size: :small, button_options: { class: 'js-md-preview-button', value: 'preview' }) do = _('Preview') = render Pajamas::ButtonComponent.new(icon: 'maximize', category: :tertiary, size: :small, button_options: { 'tabindex': -1, 'aria-label': _("Go full screen"), class: 'has-tooltip js-zen-enter gl-ml-2', data: { container: 'body' } }) .md-write-holder = yield .md.md-preview-holder.gl-px-5.js-md-preview.hide{ data: { url: url } } .referenced-commands.hide - if referenced_users .referenced-users.hide %span = sprite_icon('warning-solid') You are about to add %strong %span.js-referenced-users-count 0 people to the discussion. Proceed with caution.