From 51276e0578df1ead7242a7c20e4b97185348c8e6 Mon Sep 17 00:00:00 2001 From: Islam Wazery Date: Wed, 26 Apr 2017 15:53:02 +0200 Subject: Add mail_to button new issue by email modal --- app/views/projects/_issuable_by_email.html.haml | 9 ++++++++- .../unreleased/30665-add-email-button-to-new-issue-by-email.yml | 4 ++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 changelogs/unreleased/30665-add-email-button-to-new-issue-by-email.yml diff --git a/app/views/projects/_issuable_by_email.html.haml b/app/views/projects/_issuable_by_email.html.haml index 749e273b2e2..c137e38ed50 100644 --- a/app/views/projects/_issuable_by_email.html.haml +++ b/app/views/projects/_issuable_by_email.html.haml @@ -18,7 +18,14 @@ .email-modal-input-group.input-group = text_field_tag :issuable_email, email, class: "monospace js-select-on-focus form-control", readonly: true .input-group-btn - = clipboard_button(target: '#issuable_email') + = clipboard_button(target: '#issuable_email', class: 'btn btn-clipboard btn-transparent hidden-xs') + = mail_to email, class: 'btn btn-clipboard btn-transparent', + subject: _("Enter the #{name} title"), + body: _("Enter the #{name} description"), + title: _('Send email'), + data: { toggle: 'tooltip', placement: 'bottom' } do + = sprite_icon('mail') + %p = render 'by_email_description' %p diff --git a/changelogs/unreleased/30665-add-email-button-to-new-issue-by-email.yml b/changelogs/unreleased/30665-add-email-button-to-new-issue-by-email.yml new file mode 100644 index 00000000000..175b3103d90 --- /dev/null +++ b/changelogs/unreleased/30665-add-email-button-to-new-issue-by-email.yml @@ -0,0 +1,4 @@ +--- +title: Add email button to new issue by email +merge_request: 10942 +author: Islam Wazery -- cgit v1.2.1