2018-03-17 18:26:18 +05:30
|
|
|
- name = issuable_type == 'issue' ? 'issue' : 'merge request'
|
|
|
|
|
|
|
|
.issuable-footer.text-center
|
|
|
|
%button.issuable-email-modal-btn{ type: "button", data: { toggle: "modal", target: "#issuable-email-modal" } }
|
|
|
|
Email a new #{name} to this project
|
|
|
|
|
|
|
|
#issuable-email-modal.modal.fade{ tabindex: "-1", role: "dialog" }
|
|
|
|
.modal-dialog{ role: "document" }
|
|
|
|
.modal-content
|
|
|
|
.modal-header
|
|
|
|
%h4.modal-title
|
|
|
|
Create new #{name} by email
|
2018-11-08 19:23:39 +05:30
|
|
|
%button.close{ type: "button", "data-dismiss": "modal", "aria-label" => _('Close') }
|
|
|
|
%span{ "aria-hidden": true } ×
|
2018-03-17 18:26:18 +05:30
|
|
|
.modal-body
|
|
|
|
%p
|
|
|
|
You can create a new #{name} inside this project by sending an email to the following email address:
|
|
|
|
.email-modal-input-group.input-group
|
|
|
|
= text_field_tag :issuable_email, email, class: "monospace js-select-on-focus form-control", readonly: true
|
2018-11-08 19:23:39 +05:30
|
|
|
.input-group-append
|
|
|
|
= clipboard_button(target: '#issuable_email', class: 'btn btn-clipboard input-group-text btn-transparent d-none d-sm-block')
|
2018-11-20 20:47:30 +05:30
|
|
|
|
|
|
|
- if issuable_type == 'issue'
|
2019-03-02 22:35:43 +05:30
|
|
|
- enter_title_text = _('Enter the issue title')
|
2018-11-20 20:47:30 +05:30
|
|
|
- enter_description_text = _('Enter the issue description')
|
|
|
|
- else
|
|
|
|
- enter_title_text = _('Enter the merge request title')
|
|
|
|
- enter_description_text = _('Enter the merge request description')
|
2018-03-27 19:54:05 +05:30
|
|
|
= mail_to email, class: 'btn btn-clipboard btn-transparent',
|
2018-11-20 20:47:30 +05:30
|
|
|
subject: enter_title_text,
|
|
|
|
body: enter_description_text,
|
2018-03-27 19:54:05 +05:30
|
|
|
title: _('Send email'),
|
|
|
|
data: { toggle: 'tooltip', placement: 'bottom' } do
|
|
|
|
= sprite_icon('mail')
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
%p
|
|
|
|
= render 'by_email_description'
|
|
|
|
%p
|
2019-02-15 15:39:39 +05:30
|
|
|
This is a private email address
|
2020-11-24 15:15:51 +05:30
|
|
|
%span<
|
|
|
|
= link_to help_page_path('development/emails', anchor: 'email-namespace'), target: '_blank', rel: 'noopener', aria: { label: 'Learn more about incoming email addresses' } do
|
|
|
|
= sprite_icon('question-o')
|
2019-02-15 15:39:39 +05:30
|
|
|
|
2019-03-02 22:35:43 +05:30
|
|
|
generated just for you.
|
2018-03-17 18:26:18 +05:30
|
|
|
|
|
|
|
Anyone who gets ahold of it can create issues or merge requests as if they were you.
|
|
|
|
You should
|
|
|
|
= link_to 'reset it', new_issuable_address_project_path(@project, issuable_type: issuable_type), class: 'incoming-email-token-reset'
|
|
|
|
if that ever happens.
|