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