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
|
|
|
|
2015-06-02 08:56:50 -04:00
|
|
|
.md-area
|
2016-03-30 05:00:43 -04:00
|
|
|
.md-header
|
2016-04-16 04:43:49 -04:00
|
|
|
%ul.nav-links.clearfix
|
2017-11-16 17:30:43 -05:00
|
|
|
%li.md-header-tab.active
|
2016-04-09 20:02:36 -04:00
|
|
|
%a.js-md-write-button{ href: "#md-write-holder", tabindex: -1 }
|
2015-06-02 08:56:50 -04:00
|
|
|
Write
|
2017-11-16 17:30:43 -05:00
|
|
|
%li.md-header-tab
|
2016-04-09 20:02:36 -04:00
|
|
|
%a.js-md-preview-button{ href: "#md-preview-holder", tabindex: -1 }
|
2015-06-02 08:56:50 -04:00
|
|
|
Preview
|
2017-06-20 09:58:30 -04:00
|
|
|
|
2017-11-16 17:30:43 -05:00
|
|
|
%li.md-header-toolbar
|
|
|
|
= markdown_toolbar_button({ icon: "bold", data: { "md-tag" => "**" }, title: "Add bold text" })
|
|
|
|
= markdown_toolbar_button({ icon: "italic", data: { "md-tag" => "*" }, title: "Add italic text" })
|
|
|
|
= markdown_toolbar_button({ icon: "quote", data: { "md-tag" => "> ", "md-prepend" => true }, title: "Insert a quote" })
|
|
|
|
= markdown_toolbar_button({ icon: "code", data: { "md-tag" => "`", "md-block" => "```" }, title: "Insert code" })
|
|
|
|
= markdown_toolbar_button({ icon: "list-bulleted", data: { "md-tag" => "* ", "md-prepend" => true }, title: "Add a bullet list" })
|
|
|
|
= markdown_toolbar_button({ icon: "list-numbered", data: { "md-tag" => "1. ", "md-prepend" => true }, title: "Add a numbered list" })
|
|
|
|
= markdown_toolbar_button({ icon: "task-done", data: { "md-tag" => "* [ ] ", "md-prepend" => true }, title: "Add a task list" })
|
2017-12-05 06:56:03 -05:00
|
|
|
%button.toolbar-btn.toolbar-fullscreen-btn.js-zen-enter.has-tooltip{ type: "button", tabindex: -1, "aria-label": "Go full screen", title: "Go full screen", data: { container: "body" } }
|
2017-11-16 17:30:43 -05:00
|
|
|
= sprite_icon("screen-full")
|
2015-06-02 08:56:50 -04:00
|
|
|
|
2016-03-30 03:28:06 -04:00
|
|
|
.md-write-holder
|
|
|
|
= yield
|
2016-11-16 06:09:09 -05:00
|
|
|
.md.md-preview-holder.js-md-preview.hide.md-preview{ data: { url: url } }
|
|
|
|
.referenced-commands.hide
|
2015-12-02 19:03:43 -05:00
|
|
|
|
2016-11-16 06:09:09 -05:00
|
|
|
- if referenced_users
|
2016-12-23 04:37:12 -05: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.
|