gitlab-org--gitlab-foss/app/views/projects/_md_preview.html.haml

37 lines
1.1 KiB
Text
Raw Normal View History

- 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
= 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
.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
%li.md-header-tab.active
%button.js-md-write-button{ tabindex: -1 }
= _("Write")
%li.md-header-tab
%button.js-md-preview-button{ tabindex: -1 }
= _("Preview")
2017-06-20 09:58:30 -04:00
2017-12-18 17:57:21 -05:00
%li.md-header-toolbar.active
= render 'projects/blob/markdown_buttons', show_fullscreen_button: true
2016-03-30 03:28:06 -04:00
.md-write-holder
= yield
.md.md-preview-holder.js-md-preview.hide{ data: { url: url } }
2018-04-19 20:15:38 -04:00
.referenced-commands.hide
- 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")
You are about to add
%strong
%span.js-referenced-users-count 0
people
to the discussion. Proceed with caution.