2017-08-17 22:00:37 +05:30
|
|
|
- referenced_users = local_assigns.fetch(:referenced_users, nil)
|
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
- if defined?(@issue) && @issue.confidential?
|
|
|
|
.confidential-issue-warning
|
|
|
|
= confidential_icon(@issue)
|
|
|
|
%span This is a confidential issue. Your comment will not be visible to the public.
|
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
.md-area
|
2016-06-02 11:05:42 +05:30
|
|
|
.md-header
|
|
|
|
%ul.nav-links.clearfix
|
2015-09-11 14:41:01 +05:30
|
|
|
%li.active
|
2016-06-02 11:05:42 +05:30
|
|
|
%a.js-md-write-button{ href: "#md-write-holder", tabindex: -1 }
|
2015-09-11 14:41:01 +05:30
|
|
|
Write
|
|
|
|
%li
|
2016-06-02 11:05:42 +05:30
|
|
|
%a.js-md-preview-button{ href: "#md-preview-holder", tabindex: -1 }
|
2015-09-11 14:41:01 +05:30
|
|
|
Preview
|
2016-06-16 23:09:34 +05:30
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
%li.pull-right
|
2016-08-24 12:49:21 +05:30
|
|
|
.toolbar-group
|
2017-08-17 22:00:37 +05:30
|
|
|
= markdown_toolbar_button({ icon: "bold fw", data: { "md-tag" => "**" }, title: "Add bold text" })
|
|
|
|
= markdown_toolbar_button({ icon: "italic fw", data: { "md-tag" => "*" }, title: "Add italic text" })
|
|
|
|
= markdown_toolbar_button({ icon: "quote-right fw", data: { "md-tag" => "> ", "md-prepend" => true }, title: "Insert a quote" })
|
|
|
|
= markdown_toolbar_button({ icon: "code fw", data: { "md-tag" => "`", "md-block" => "```" }, title: "Insert code" })
|
|
|
|
= markdown_toolbar_button({ icon: "list-ul fw", data: { "md-tag" => "* ", "md-prepend" => true }, title: "Add a bullet list" })
|
|
|
|
= markdown_toolbar_button({ icon: "list-ol fw", data: { "md-tag" => "1. ", "md-prepend" => true }, title: "Add a numbered list" })
|
|
|
|
= markdown_toolbar_button({ icon: "check-square-o fw", data: { "md-tag" => "* [ ] ", "md-prepend" => true }, title: "Add a task list" })
|
2016-08-24 12:49:21 +05:30
|
|
|
.toolbar-group
|
2017-08-17 22:00:37 +05:30
|
|
|
%button.toolbar-btn.js-zen-enter.has-tooltip{ type: "button", tabindex: -1, aria: { label: "Go full screen" }, title: "Go full screen", data: { container: "body" } }
|
|
|
|
= icon("arrows-alt fw")
|
2015-09-11 14:41:01 +05:30
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
.md-write-holder
|
|
|
|
= yield
|
2017-08-17 22:00:37 +05:30
|
|
|
.md.md-preview-holder.js-md-preview.hide.md-preview{ data: { url: url } }
|
|
|
|
.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
|
2016-08-24 12:49:21 +05:30
|
|
|
= icon("exclamation-triangle")
|
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.
|