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

37 lines
1 KiB
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
- referenced_users = local_assigns.fetch(:referenced_users, nil)
2018-03-17 18:26:18 +05:30
- if defined?(@merge_request) && @merge_request.discussion_locked?
.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
2016-06-02 11:05:42 +05:30
.md-header
2018-11-08 19:23:39 +05:30
%ul.nav.nav-tabs.nav-links.clearfix
2018-03-17 18:26:18 +05:30
%li.md-header-tab.active
2020-07-28 23:09:34 +05:30
%button.js-md-write-button
2019-07-07 11:18:12 +05:30
= _("Write")
2018-03-17 18:26:18 +05:30
%li.md-header-tab
2020-07-28 23:09:34 +05:30
%button.js-md-preview-button
2019-07-07 11:18:12 +05:30
= _("Preview")
2018-03-17 18:26:18 +05:30
%li.md-header-toolbar.active
2020-06-23 00:09:42 +05:30
= render 'shared/blob/markdown_buttons', show_fullscreen_button: true
2015-09-11 14:41:01 +05:30
2016-06-02 11:05:42 +05:30
.md-write-holder
= yield
2019-07-07 11:18:12 +05:30
.md.md-preview-holder.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.