_md_preview.html.haml 2.0 KB
Newer Older
1
.md-area
P
Phil Hughes 已提交
2
  .md-header
3
    %ul.nav-links.clearfix
4
      %li.active
5
        %a.js-md-write-button{ href: "#md-write-holder", tabindex: -1 }
6 7
          Write
      %li
8
        %a.js-md-preview-button{ href: "#md-preview-holder", tabindex: -1 }
9
          Preview
10

11
      - if defined?(@issue) && @issue.confidential?
12 13 14
        %li.confidential-issue-warning
          = icon('warning')
          %span This is a confidential issue. Your comment will not be visible to the public.
15

P
Phil Hughes 已提交
16
      %li.pull-right
P
Phil Hughes 已提交
17 18 19 20
        .toolbar-group
          = 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" })
21
          = markdown_toolbar_button({icon: "code fw", data: { "md-tag" => "`", "md-block" => "```" }, title: "Insert code" })
P
Phil Hughes 已提交
22 23 24 25 26 27
          = 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" })
        .toolbar-group
          %button.toolbar-btn.js-zen-enter.has-tooltip.hidden-xs{ type: "button", tabindex: -1, aria: { label: "Go full screen" }, title: "Go full screen", data: { container: "body" } }
            =icon("arrows-alt fw")
28

29 30
  .md-write-holder
    = yield
P
Phil Hughes 已提交
31
  .md.md-preview-holder.js-md-preview.hide{class: (preview_class if defined?(preview_class))}
32 33

  - if defined?(referenced_users) && referenced_users
D
Douglas Barbosa Alexandre 已提交
34 35
    %div.referenced-users.hide
      %span
P
Phil Hughes 已提交
36
        = icon("exclamation-triangle")
37 38 39 40 41
        You are about to add
        %strong
          %span.js-referenced-users-count 0
          people
        to the discussion. Proceed with caution.