about summary refs log tree commit diff
path: root/app/views/notification_mailer/digest.html.haml
blob: a94ace228d84853c16f6c0dfac05cf54edb9414d (plain) (blame)
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
37
38
39
40
41
42
43
44
%table.email-table{ cellspacing: 0, cellpadding: 0 }
  %tbody
    %tr
      %td.email-body
        .email-container
          %table.content-section{ cellspacing: 0, cellpadding: 0 }
            %tbody
              %tr
                %td.content-cell.darker.hero-with-button
                  .email-row
                    .col-6
                      %table.column{ cellspacing: 0, cellpadding: 0 }
                        %tbody
                          %tr
                            %td.column-cell.text-center.padded
                              %h1= t 'notification_mailer.digest.title'
                              %p.lead= t('notification_mailer.digest.body', since: l((@me.user_current_sign_in_at || @since).to_date, format: :short), instance: site_hostname)
                              %table.button{ align: 'center', cellspacing: 0, cellpadding: 0 }
                                %tbody
                                  %tr
                                    %td.button-primary
                                      = link_to web_url do
                                        %span= t 'notification_mailer.digest.action'

- @notifications.each_with_index do |n, i|
  = render 'status', status: n.target_status, i: i

- unless @follows_since.zero?
  %table.email-table{ cellspacing: 0, cellpadding: 0 }
    %tbody
      %tr
        %td.email-body
          .email-container
            %table.content-section{ cellspacing: 0, cellpadding: 0 }
              %tbody
                %tr
                  %td.content-cell.content-start.border-top
                    .email-row
                      .col-6
                        %table.column{ cellspacing: 0, cellpadding: 0 }
                          %tbody
                            %tr
                              %td.column-cell.text-center
                                %p= t('notification_mailer.digest.new_followers_summary', count: @follows_since)