debian-mirror-gitlab/app/views/shared/_md_preview.html.haml

34 lines
1.4 KiB
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
- referenced_users = local_assigns.fetch(:referenced_users, nil)
2023-01-13 00:05:48 +05:30
- if @merge_request&.discussion_locked?
2018-03-17 18:26:18 +05:30
.issuable-note-warning
2020-10-24 23:57:45 +05:30
= sprite_icon('lock', css_class: 'icon')
2018-03-17 18:26:18 +05:30
%span
= _('This merge request is locked.')
= _('Only project members can comment.')
2017-09-10 17:25:29 +05:30
2019-07-07 11:18:12 +05:30
.md-area.position-relative
2023-07-09 08:55:56 +05:30
.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' } })
2015-09-11 14:41:01 +05:30
2016-06-02 11:05:42 +05:30
.md-write-holder
= yield
2023-07-09 08:55:56 +05:30
.md.md-preview-holder.gl-px-5.js-md-preview.hide{ data: { url: url } }
2017-08-17 22:00:37 +05:30
.referenced-commands.hide
2015-12-23 02:04:40 +05:30
2017-08-17 22:00:37 +05:30
- if referenced_users
.referenced-users.hide
2015-12-23 02:04:40 +05:30
%span
2021-02-22 17:27:13 +05:30
= sprite_icon('warning-solid')
2015-09-11 14:41:01 +05:30
You are about to add
%strong
%span.js-referenced-users-count 0
2015-09-25 12:07:36 +05:30
people
2015-09-11 14:41:01 +05:30
to the discussion. Proceed with caution.