2016-11-16 11:09:09 +00:00
|
|
|
- referenced_users = local_assigns.fetch(:referenced_users, nil)
|
|
|
|
|
2017-09-14 11:01:07 +00:00
|
|
|
- if defined?(@merge_request) && @merge_request.discussion_locked?
|
2017-09-14 12:32:14 +00:00
|
|
|
.issuable-note-warning
|
2017-12-06 16:20:40 +00:00
|
|
|
= sprite_icon('lock', size: 16, css_class: 'icon')
|
2017-09-14 12:32:14 +00:00
|
|
|
%span
|
|
|
|
= _('This merge request is locked.')
|
|
|
|
= _('Only project members can comment.')
|
2017-09-14 11:01:07 +00:00
|
|
|
|
2019-03-29 12:43:06 +00:00
|
|
|
.md-area.position-relative
|
2016-03-30 09:00:43 +00:00
|
|
|
.md-header
|
2018-04-20 03:34:20 +00:00
|
|
|
%ul.nav.nav-tabs.nav-links.clearfix
|
2017-11-16 22:30:43 +00:00
|
|
|
%li.md-header-tab.active
|
2018-10-19 11:35:33 +00:00
|
|
|
%button.js-md-write-button{ tabindex: -1 }
|
2019-03-01 00:44:33 +00:00
|
|
|
= _("Write")
|
2017-11-16 22:30:43 +00:00
|
|
|
%li.md-header-tab
|
2018-10-19 11:35:33 +00:00
|
|
|
%button.js-md-preview-button{ tabindex: -1 }
|
2019-03-01 00:44:33 +00:00
|
|
|
= _("Preview")
|
2017-06-20 13:58:30 +00:00
|
|
|
|
2017-12-18 22:57:21 +00:00
|
|
|
%li.md-header-toolbar.active
|
2020-06-11 15:08:36 +00:00
|
|
|
= render 'shared/blob/markdown_buttons', show_fullscreen_button: true
|
2015-06-02 12:56:50 +00:00
|
|
|
|
2016-03-30 07:28:06 +00:00
|
|
|
.md-write-holder
|
|
|
|
= yield
|
2019-03-23 13:19:36 +00:00
|
|
|
.md.md-preview-holder.js-md-preview.hide{ data: { url: url } }
|
2018-04-20 00:15:38 +00:00
|
|
|
.referenced-commands.hide
|
2015-12-03 00:03:43 +00:00
|
|
|
|
2016-11-16 11:09:09 +00:00
|
|
|
- if referenced_users
|
2018-04-20 00:15:38 +00:00
|
|
|
.referenced-users.hide
|
2015-12-03 21:40:31 +00:00
|
|
|
%span
|
2016-06-03 14:14:04 +00:00
|
|
|
= icon("exclamation-triangle")
|
2015-12-03 17:30:10 +00:00
|
|
|
You are about to add
|
|
|
|
%strong
|
|
|
|
%span.js-referenced-users-count 0
|
|
|
|
people
|
|
|
|
to the discussion. Proceed with caution.
|