summaryrefslogtreecommitdiff
path: root/app/views/projects/_issuable_by_email.html.haml
diff options
context:
space:
mode:
authorIslam Wazery <wazery@ubuntu.com>2017-04-26 15:53:02 +0200
committerOswaldo Ferreira <oswaldo@gitlab.com>2018-02-28 12:17:28 -0300
commit51276e0578df1ead7242a7c20e4b97185348c8e6 (patch)
tree6800d1204ba4929cc7bd9996734b6640597756ab /app/views/projects/_issuable_by_email.html.haml
parent111962891b369710d9604567e94fdbe682d16931 (diff)
downloadgitlab-ce-51276e0578df1ead7242a7c20e4b97185348c8e6.tar.gz
Add mail_to button new issue by email modal30665-add-email-button-to-new-issue-by-email
Diffstat (limited to 'app/views/projects/_issuable_by_email.html.haml')
-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