summaryrefslogtreecommitdiff
path: root/app/views/layouts/notify.html.haml
blob: e922b505be86a9130ed86c2f437b19dd2feb4a0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
%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.
          = 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

        = render_if_exists 'layouts/email_additional_text'
        = html_footer_message