diff options
author | Phil Hughes <me@iamphill.com> | 2016-07-01 09:07:29 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-07-01 09:07:29 +0100 |
commit | d0e8ffbbe63e1b6836dddc1d6333ea59fb39c3a7 (patch) | |
tree | b6e7921a73ffe5f2f56fa16a016cafe1f25a488e | |
parent | 7964ea1bad6607becce3d2028650ef01b167bc60 (diff) | |
download | gitlab-ce-d0e8ffbbe63e1b6836dddc1d6333ea59fb39c3a7.tar.gz |
Uses input field for email address
-rw-r--r-- | app/assets/stylesheets/pages/issues.scss | 13 | ||||
-rw-r--r-- | app/views/projects/issues/_issue_by_email.html.haml | 9 |
2 files changed, 18 insertions, 4 deletions
diff --git a/app/assets/stylesheets/pages/issues.scss b/app/assets/stylesheets/pages/issues.scss index 80f7ef16360..c01dc734505 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 395d8b4b256..0d1204c5e10 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 |