summaryrefslogtreecommitdiff
path: root/app/views/projects/issues/_issue_by_email.html.haml
blob: da65157a10b71e979a359e38b11637d29f897b3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
.issues-footer.text-center
  %button.issue-email-modal-btn{ type: "button", data: { toggle: "modal", target: "#issue-email-modal" } }
    Email a new issue to this project

#issue-email-modal.modal.fade{ tabindex: "-1", role: "dialog" }
  .modal-dialog{ role: "document" }
    .modal-content
      .modal-header
        %button.close{ type: "button", data: { dismiss: "modal" }, aria: { label: "close" } }
          %span{ aria: { hidden: "true" } }= icon("times")
        %h4.modal-title
          Create new issue by email
      .modal-body
        %p
          You can create a new issue inside this project by sending an email to the following email address:
        .email-modal-input-group.input-group
          = text_field_tag :issue_email, email, class: "monospace js-select-on-focus form-control", readonly: true
          .input-group-btn
            = clipboard_button(target: '#issue_email')
        %p
          The subject will be used as the title of the new issue, and the message will be the description.

          = link_to 'Slash commands', help_page_path('user/project/slash_commands'), target: '_blank', tabindex: -1
          and styling with
          = link_to 'Markdown', help_page_path('user/markdown'), target: '_blank', tabindex: -1
          are supported.

        %p
          This is a private email address, generated just for you.

          Anyone who gets ahold of it can create issues as if they were you.
          You should
          = link_to 'reset it', new_issue_address_namespace_project_path(@project.namespace, @project), class: 'incoming-email-token-reset'
          if that ever happens.