diff --git a/app/assets/stylesheets/pages/issues.scss b/app/assets/stylesheets/pages/issues.scss index 80f7ef163608531f3966cea8d2434b0a7d0547ae..c01dc7345052024b347194478bc88f236f3053fc 100644 --- a/app/assets/stylesheets/pages/issues.scss +++ b/app/assets/stylesheets/pages/issues.scss @@ -108,3 +108,16 @@ form.edit-issue { text-decoration: underline; } } + +.email-modal-input-group { + margin-bottom: 10px; + + .form-control { + background-color: $white-light; + } + + .btn { + background-color: $background-color; + border: 1px solid $border-gray-light; + } +} diff --git a/app/views/projects/issues/_issue_by_email.html.haml b/app/views/projects/issues/_issue_by_email.html.haml index 395d8b4b256e8587b06d75bfa5b2f53bf11d31e9..0d1204c5e10324854b15aaf364ec8297310117e2 100644 --- a/app/views/projects/issues/_issue_by_email.html.haml +++ b/app/views/projects/issues/_issue_by_email.html.haml @@ -8,10 +8,11 @@ Create new issue by email .modal-body %p - Write an email to - = succeed "." do - %a{ href: "mailto:#{email}" }= email - (This is a private email address, so keep it secret.) + Write an email to the below email address. (This is a private email address, so keep it secret.) + .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(clipboard_target: '#issue_email') %p Send an email to this address to create an issue. %p