~cytrogen/masto-fe

ref: 23197cebce60708ff9b3965f1ac4446ad03730a0 masto-fe/app/views/notification_mailer/_status.html.haml -rw-r--r-- 2.1 KiB
23197ceb — Claire Reduce dropdown menu margin and padding (#2301) 2 years ago
                                                                                
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
45
- i ||= 0
- highlighted ||= false

%table.email-table{ cellspacing: 0, cellpadding: 0, dir: 'ltr' }
  %tbody
    %tr
      %td.email-body
        .email-container
          %table.content-section{ cellspacing: 0, cellpadding: 0 }
            %tbody
              %tr
                %td.content-cell{ class: i.zero? ? 'content-start' : nil }
                  .email-row
                    .col-6
                      %table.column{ cellspacing: 0, cellpadding: 0 }
                        %tbody
                          %tr
                            %td.column-cell.padded.status{ class: highlighted ? 'status--highlighted' : '' }
                              %table.status-header{ cellspacing: 0, cellpadding: 0 }
                                %tbody
                                  %tr
                                    %td{ align: 'left', width: 48 }
                                      = image_tag full_asset_url(status.account.avatar.url), alt: ''
                                    %td{ align: 'left' }
                                      %bdi= display_name(status.account)
                                      = "@#{status.account.pretty_acct}"

                              - if status.spoiler_text?
                                .auto-dir
                                  %p
                                    = status.spoiler_text

                              .auto-dir
                                = status_content_format(status)

                                - if status.ordered_media_attachments.size > 0
                                  %p
                                    - status.ordered_media_attachments.each do |a|
                                      - if status.local?
                                        = link_to full_asset_url(a.file.url(:original)), full_asset_url(a.file.url(:original))
                                      - else
                                        = link_to a.remote_url, a.remote_url

                              %p.status-footer
                                = link_to l(status.created_at.in_time_zone(time_zone)), web_url("@#{status.account.pretty_acct}/#{status.id}")