77985826d9
* Add email_header_and_footer_enabled flag to appearances table * Set email_header_and_footer_enabled default value to false * Add checkbox to appearance to toggle show header and footer in emails * Add email_header_and_footer_enabled to allowed params in controller * Add header and footer messages to the html and text email layouts * Remove the color styling for emails header and footer * Add empty_mailer layout for emails without layout, to have the header and footer applied
34 lines
1.2 KiB
Text
34 lines
1.2 KiB
Text
%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
|
|
= html_header_message
|
|
= yield
|
|
.footer{ style: "margin-top: 10px;" }
|
|
%p
|
|
—
|
|
%br
|
|
- if @target_url
|
|
- if @reply_by_email
|
|
= _('Reply to this email directly or %{view_it_on_gitlab}.').html_safe % { view_it_on_gitlab: link_to(_("view it on GitLab"), @target_url) }
|
|
- else
|
|
#{link_to _("View it on GitLab"), @target_url}.
|
|
%br
|
|
-# Don't link the host in the line below, one link in the email is easier to quickly click than two.
|
|
= _("You're receiving this email because %{reason}.") % { reason: notification_reason_text(@reason) }
|
|
If you'd like to receive fewer emails, you can
|
|
- if @labels_url
|
|
adjust your #{link_to 'label subscriptions', @labels_url}.
|
|
- else
|
|
- if @unsubscribe_url
|
|
= link_to "unsubscribe", @unsubscribe_url
|
|
from this thread or
|
|
adjust your notification settings.
|
|
|
|
= email_action @target_url
|
|
= html_footer_message
|