summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorClement Ho <clemmakesapps@gmail.com>2018-03-01 17:00:42 +0000
committerClement Ho <clemmakesapps@gmail.com>2018-03-01 17:00:42 +0000
commitb19a14473099073dff3e770c00f73ddab4a0a414 (patch)
tree34a07fa1a37526a37eb445540f866df59d9a0e5d /app
parent1beea04f02753e5dd0fbb8327a30590037471d83 (diff)
parent51276e0578df1ead7242a7c20e4b97185348c8e6 (diff)
downloadgitlab-ce-b19a14473099073dff3e770c00f73ddab4a0a414.tar.gz
Merge branch '30665-add-email-button-to-new-issue-by-email' into 'master'
Resolve "Have mailto: link in "Email a new issue to this project"" Closes #30665 See merge request gitlab-org/gitlab-ce!17401
Diffstat (limited to 'app')
-rw-r--r--app/views/projects/_issuable_by_email.html.haml9
1 files changed, 8 insertions, 1 deletions
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