diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-18 14:18:50 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-18 14:18:50 +0300 |
commit | 8c7f4e9d5f36cff46365a7f8c4b9c21578c1e781 (patch) | |
tree | a77e7fe7a93de11213032ed4ab1f33a3db51b738 /app/views/shared/_md_preview.html.haml | |
parent | 00b35af3db1abfe813a778f643dad221aad51fca (diff) |
Add latest changes from gitlab-org/gitlab@13-1-stable-ee
Diffstat (limited to 'app/views/shared/_md_preview.html.haml')
-rw-r--r-- | app/views/shared/_md_preview.html.haml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/app/views/shared/_md_preview.html.haml b/app/views/shared/_md_preview.html.haml new file mode 100644 index 00000000000..f5f24b2f0ce --- /dev/null +++ b/app/views/shared/_md_preview.html.haml @@ -0,0 +1,36 @@ +- referenced_users = local_assigns.fetch(:referenced_users, nil) + +- if defined?(@merge_request) && @merge_request.discussion_locked? + .issuable-note-warning + = sprite_icon('lock', size: 16, css_class: 'icon') + %span + = _('This merge request is locked.') + = _('Only project members can comment.') + +.md-area.position-relative + .md-header + %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") + + %li.md-header-toolbar.active + = render 'shared/blob/markdown_buttons', show_fullscreen_button: true + + .md-write-holder + = yield + .md.md-preview-holder.js-md-preview.hide{ data: { url: url } } + .referenced-commands.hide + + - if referenced_users + .referenced-users.hide + %span + = icon("exclamation-triangle") + You are about to add + %strong + %span.js-referenced-users-count 0 + people + to the discussion. Proceed with caution. |