Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
088e2765
Commit
088e2765
authored
Apr 06, 2017
by
Eric Eastwood
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add HTML emails for Service Desk thank-you and new note
Thanks @smcgivern for the layout tips
parent
a7e227e1
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
0 deletions
+28
-0
app/mailers/emails/ee/service_desk.rb
app/mailers/emails/ee/service_desk.rb
+6
-0
app/views/layouts/service_desk.html.haml
app/views/layouts/service_desk.html.haml
+15
-0
app/views/notify/service_desk_new_note_email.html.haml
app/views/notify/service_desk_new_note_email.html.haml
+5
-0
app/views/notify/service_desk_thank_you_email.html.haml
app/views/notify/service_desk_thank_you_email.html.haml
+2
-0
No files found.
app/mailers/emails/ee/service_desk.rb
View file @
088e2765
module
Emails
module
EE
module
ServiceDesk
extend
ActiveSupport
::
Concern
included
do
layout
'service_desk'
,
only:
[
:service_desk_thank_you_email
,
:service_desk_new_note_email
]
end
def
service_desk_thank_you_email
(
issue_id
)
setup_service_desk_mail
(
issue_id
)
...
...
app/views/layouts/service_desk.html.haml
0 → 100644
View file @
088e2765
%html
{
lang:
"en"
}
%head
%meta
{
content:
"text/html; charset=utf-8"
,
"http-equiv"
=>
"Content-Type"
}
%title
GitLab
=
stylesheet_link_tag
'notify'
=
yield
:head
%body
.content
=
yield
.footer
{
style:
"margin-top: 10px;"
}
%p
—
%br
=
link_to
"Unsubscribe"
,
@sent_notification_url
app/views/notify/service_desk_new_note_email.html.haml
0 → 100644
View file @
088e2765
-
if
current_application_settings
.
email_author_in_body
%div
#{
link_to
@note
.
author_name
,
user_url
(
@note
.
author
)
}
wrote:
%div
=
markdown
(
@note
.
note
,
pipeline: :email
,
author:
@note
.
author
)
app/views/notify/service_desk_thank_you_email.html.haml
0 → 100644
View file @
088e2765
%p
Thank you for your support request! We are tracking your request as ticket ##{@issue.iid}, and will respond as soon as we can.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment